[Samba] deleting an OU

Rowland Penny rowlandpenny at googlemail.com
Tue Feb 10 13:48:26 MST 2015


On 10/02/15 20:32, Felipe_G0NZ4LEZ_S4NTI4G0(); wrote:
> Guys, How can I deleting an organizational unit? For creating I use: ldbmodify a file newOU.ldif and it works. But, how I delete it? My regards, Thanks.

Fairly easy, 'ldbdel --url=<path/to/sam.ldb> OU-DN'

i.e. if the your rootdse is 'dc=example,dc=com' and the OU is off this 
and called 'unix', sam.ldb is in /var/lib/samba/private/

ldbdel --url=/var/lib/samba/private/sam.ldb ou=unix,dc=example,dc=com

Rowland




More information about the samba mailing list