I am using Apache Directory Studio (version 2.0.0 on both OpenSUSE(12) and on Windows 7), trying to add the posixAccount attribute to users and the posixGroup attribute to groups. I have followed the suggestion from the following links:
http://bit.ly/1EISJWs
http://bit.ly/1EblT5R
to enable the NIS schema, by setting m-disabled to FALSE. However, following a restart of both the LDAP server and ApacheDS itself, I still cannot add posixAccount or posixGroup attributes to existing entries - they are not available in the list of attributes to add.
My current workaround is to used ldapadd via the command line, as follows:
ldapadd -h <LDAP_SERVER_IP_ADDRESS>:<LDAP_PORT> -x -D "uid=username,ou=users,o=organisationName" -w userPassword -f /path/to/ldap_config_update
where the file "ldap_config_update" contains something like:
dn: uid=dtrotter,ou=groups,o=organisationName
givenName: Derek
sn: Trotter
uidNumber: 1000
gigNubmer: 1025
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
objectClass: posixAccount
uid: dtrotter
cn: Del Boy
userPassword: plonker123!
It would be nice to know how to achieve this via the ApacheDS GUI.
I was struggling with this as well. Finally worked for me. Apparently there is a stale cache issue going on. In order to have posixGroup available, you have to:
Enable the NIS schema as explained here
Close the connection
Reconnect
When adding a new entry, make sure to hit the Refresh button beside the object class text field.
posixGroup and other NIS classes should finally become available
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With