I am setting up a new samba/openldap server. SLES 10 OS. I am trying to populate the database and receive an error.
using command:
ldapadd -x -h localhost -D "cn=Manager,dc=hrhtest2,dc=org" -f test3.ldif -W
get error:
adding new entry "cn=Domain Admins,ou=Groups,dc=hrhtest2,dc=org" ldap_add: Internal (implementation specific) error (80) additional info: no structuralObjectClass operational attribute
test3.ldif:
dn: cn=Domain Admins,ou=Groups,dc=hrhtest2,dc=org objectClass: posixGroup objectClass: sambaGroupMapping gidNumber: 512 cn: Domain Admins memberUid: Administrator description: Netbios Domain Administrators sambaSID: S-1-5-21-924382055-1192225092-1506617496-512 sambaGroupType: 2 displayName: Domain Admins
Thanks in advance....
trdavis@hendricks.org
----------------------------------------------------------------------------------------------------
CONFIDENTIALITY NOTICE
This e-mail and the files transmitted with it are intended solely for the use of addressee. If you are not the intended recipient, or a person responsible for delivering this e-mail to the intended recipient, you are hereby notified that you have received this e-mail in error and that any use, dissemination, distribution, forwarding, printing, or copying of this email is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately by replying to this e-mail and deleting it from your computer.
On 04/01/07, Todd R Davis TRDavis@hendricks.org wrote:
I am setting up a new samba/openldap server. SLES 10 OS. I am trying to populate the database and receive an error.
using command:
ldapadd -x -h localhost -D "cn=Manager,dc=hrhtest2,dc=org" -f test3.ldif -W
get error:
adding new entry "cn=Domain Admins,ou=Groups,dc=hrhtest2,dc=org" ldap_add: Internal (implementation specific) error (80) additional info: no structuralObjectClass operational attribute
Check if you have all (that you need) schema files included in your slapd.conf
Regards, Michal
test3.ldif:
dn: cn=Domain Admins,ou=Groups,dc=hrhtest2,dc=org objectClass: posixGroup objectClass: sambaGroupMapping gidNumber: 512 cn: Domain Admins memberUid: Administrator description: Netbios Domain Administrators sambaSID: S-1-5-21-924382055-1192225092-1506617496-512 sambaGroupType: 2 displayName: Domain Admins
Thanks in advance....
trdavis@hendricks.org
CONFIDENTIALITY NOTICE
This e-mail and the files transmitted with it are intended solely for the use of addressee. If you are not the intended recipient, or a person responsible for delivering this e-mail to the intended recipient, you are hereby notified that you have received this e-mail in error and that any use, dissemination, distribution, forwarding, printing, or copying of this email is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately by replying to this e-mail and deleting it from your computer.
Todd R Davis wrote:
I am setting up a new samba/openldap server. SLES 10 OS. I am trying to populate the database and receive an error.
using command:
ldapadd -x -h localhost -D "cn=Manager,dc=hrhtest2,dc=org" -f test3.ldif -W
get error:
adding new entry "cn=Domain Admins,ou=Groups,dc=hrhtest2,dc=org" ldap_add: Internal (implementation specific) error (80) additional info: no structuralObjectClass operational attribute
test3.ldif:
dn: cn=Domain Admins,ou=Groups,dc=hrhtest2,dc=org objectClass: posixGroup objectClass: sambaGroupMapping gidNumber: 512 cn: Domain Admins memberUid: Administrator description: Netbios Domain Administrators sambaSID: S-1-5-21-924382055-1192225092-1506617496-512 sambaGroupType: 2 displayName: Domain Admins
http://www.openldap.org/faq/data/cache/1385.html
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.n.c. Via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it ------------------------------------------ Office: +39.02.23998309 Mobile: +39.333.4963172 Email: pierangelo.masarati@sys-net.it ------------------------------------------
Resending my previous response (which didn't make the list due to moderation) without the offending text, so that others hopefully find this answer.
On Thursday 04 January 2007 23:14, Pierangelo Masarati wrote:
Todd R Davis wrote:
I am setting up a new samba/openldap server. SLES 10 OS. I am trying to populate the database and receive an error.
using command:
ldapadd -x -h localhost -D "cn=Manager,dc=hrhtest2,dc=org" -f test3.ldif -W
get error:
adding new entry "cn=Domain Admins,ou=Groups,dc=hrhtest2,dc=org" ldap_add: Internal (implementation specific) error (80) additional info: no structuralObjectClass operational attribute
test3.ldif:
dn: cn=Domain Admins,ou=Groups,dc=hrhtest2,dc=org objectClass: posixGroup objectClass: sambaGroupMapping gidNumber: 512 cn: Domain Admins memberUid: Administrator description: Netbios Domain Administrators sambaSID: S-1-5-21-924382055-1192225092-1506617496-512 sambaGroupType: 2 displayName: Domain Admins
While the error is described there, it may be worthwhile noting that this specific problem is reported quite often by people running SUSE and trying to ue smbldap-tools or similar.
This is because SUSE uses rfc2307bis by default (where posixGroup is AUXILIARY), but most tools for samba+ldap assume rfc2307 (where posixGroup is STRUCTURAL).
The easiest fix here is to change the rfc2307bis.schema to nis.schema in slapd.conf, restart slapd, and all should work (IIRC from the various times I have helped people on #ldap resolve this).
Regards, Buchan
openldap-software@openldap.org