[Samba] adding OU to domain

Rowland Penny rowlandpenny at googlemail.com
Wed Feb 11 02:03:51 MST 2015


On 11/02/15 00:27, Robert Watson wrote:
> is there a way, besides using RSAT, of adding OU to a samba AD?  Don't see
> any options with samba-tool.
> thanks, Robert

ldbmodify & an ldif:

Create an ldif i.e. /tmp/ou.ldif:

dn: ou=ouname,dc=example,dc=com
changetype: add
objectClass: top
objectClass: organizationalunit

Now add it with:

ldbmodify --url=/var/lib/samba/private/sam.ldb /tmp/ou.ldif

Rowland



More information about the samba mailing list