I am trying to add a posixAccount entry to my Netscape Directory Server. We have been using Netscape Messaging Server but want to move to sendmail/pop - which needs posixAccount. I get an object class violation, but I dont know why -- [root@ldap bin]# cat addfile dn: uid=testuser,o=example.net objectclass: top objectclass: person objectclass: OrganizationalPerson objectclass: InetOrgPerson objectclass: posixAccount uid: testuser userpassword: pass123 cn: test user sn: user givenname: test uidnumber: 150 gidnumber: 150 homePhone: 555-5555 [root@ldap bin]# ./ldapmodify -a -D cn="Directory Manager" -w apassword -f addfile adding new entry uid=testuser,o=example.net ldap_add: Object class violation Here is what the documentation says about an object class violation: Possible cause: The objectclass being created is unknown to the directory server. An attribute in the new objectclass is unrecognized by the directory server. Solution: update the slapd.oc.conf/slapd.at.conf to recognize the new objectclass/attributes (see manual). Make sure that you are running the latest Directory Server. However, the objectclasses/attributes ARE in slapd.oc.conf/slapd.at.conf , and we're running the latest nds - 4.12 When I was looking at the slapd.oc.conf I noticed this comment: # posixAccount is an auxiliary class. You may use account as a structural # class So I tried this: dn: uid=testuser,o=example.net objectclass: top objectclass: account objectclass: posixAccount uid: testuser userpassword: pass123 cn: test user sn: user givenname: test uidnumber: 150 gidnumber: 150 homePhone: 555-5555 with the same result: adding new entry uid=testuser,o=example.net ldap_add: Object class violation I am at a loss - what am I doing wrong? Jim
