Web lists-archives.com

[Samba] ldbadd: objectclass top is not a valid objectClass


Trying to add an OU via ldbadd but I get the following error:

root@araucaria:~# ldbadd --url=/var/lib/samba/private/sam.ldb /root/ou.ldif
ERR: No such attribute : "objectclass top  is not a valid objectClass in schema" on DN OU=A1,DC=ad,DC=a1,DC=ind,DC=br at block before line 4
Add failed after processing 0 records

root@araucaria:~# cat /root/ou.ldif
dn: OU=A1,DC=ad,DC=a1,DC=ind,DC=br
objectClass: top
objectClass: organizationalunit
description: A1 Engenharia

DC=ad,DC=a1,DC=ind,DC=br already exists.

Any hint?

*Marcio Merlone*
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba