Initial Entries #
There are multiple ways to manage OpenLDAP Server.
This article will use Apache Directory Studio to do.
Use your favorite editor and create some LDIF files that contains below, dc=motofans,dc=club
should be replaced with the info of your OpenLDAP server.
Create Group DN #
dn: ou=group,dc=motofans,dc=club
objectClass: organizationalUnit
ou: group
Create Users DN #
dn: ou=people,dc=motofans,dc=club
objectClass: organizationalUnit
ou: people
Create the users #
The userPassword
is encoding by Base64.
dn: cn=test,ou=people,dc=motofans,dc=club
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: top
cn: test
sn: test
displayName: test
mail: test@motofans.club
uid: test
userPassword:: cGFzc3dvcmQ=
Create the Ocserv Group adn Add users #
Add some uniqueMember
to the groupOfUniqueNames
of ocserv. Then the overlay will render the “memberOf” attribute for your user.
dn: cn=ocserv,ou=group,dc=motofans,dc=club
objectClass: groupOfUniqueNames
objectClass: top
cn: ocserv
uniqueMember: cn=test,ou=people,dc=motofans,dc=club
Import these LDIF files by Apache Directory Studio to initial entries.