[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Question on implementing OpenLDAP



Hi Jason!


> [...]

[root@nitro schema]# ldapadd -x -D "cn=Manager,dc=mycompany,dc=com" -W
Enter LDAP Password:
dn: uid=jwilliams,ou=InformationTechnology,dc=mycompany,dc=com
objectclass: top
objectclass: posixAccount
uid: jwilliams
cn: Jason Williams
cn: Williams, Jason
uidNumber: 500
gidNumber: 100
homeDirectory: /home/jwilliams
userPassword: password
gecos: Jason Williams
adding new entry "uid=jwilliams,ou=InformationTechnology,dc=mycompany,dc=com"
ldapadd: update failed: uid=jwilliams,ou=InformationTechnology,dc=mycompany,dc=com
ldap_add: Undefined attribute type (17)
additional info: uidNumber: attribute type undefined


Ok, so I figured it was something with the schema. [...]

That's right: You have to include the nis.schema too. This defines the objectClass "posixAccount" and the attribute "uidNumber". A line like this in your slapd.conf should fix the problem:


include /usr/local/openldap/etc/openldap/schema/nis.schema


Chris