[Samba] adding OU to domain

Rowland Penny
2015-02-11T09:03:51Z

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