Apache Directory Studio (For Admins)¶
Executables (both Apache Directory Studio and Java) can be found here.
Once the installation succeeds, open the Apache Directory Studio.
1. Creating the LDAP Connection¶
- Go to File → new → ldap browser → ldap connection → next.
- Enter your details:
- Connection Name: LDAP Server
- Hostname: hostname.YOUR-DOMAIN.edu.gh
- Port: 389
- Encrypted Method: Use STARTTLS
- Provider: Apache Directory LDAP Client API
- Click Next.
- Authentication Method: Simple Authentication
- Bind Dn: cn=admin,dc=YOUR-DOMAIN,dc=edu,dc=gh
- Bind Password: (your password)
- Click "Check Authentication" to make sure your credentials work. For the first time, it asks to trust the self-signed certificate.
- Select "Always trust this Certificate" and click OK.
- Then click Finish.
To connect, double-click the connection just created from Connections list.
Once connected, you can browse through the directory using the LDAP Browser.
When modifying entries, you may use an LDIF file or the GUI.
2. Using GUI to Create an OU¶
- Select the root location for the OU (e.g., dc=YOUR DOMAIN,dc=edu,dc=gh).
- Select "New Entry" on the Right-click Menu.
- Then "Create entry from Scratch" → Next.
- Select "OrganizationalUnit" and click "Add" and "Next."
- Type "OU" as the RDN and the desired value in front of it, then click "Next" and "Finish."
3. Adding a User Group¶
- Select the root location for the OU (e.g., ou=Group,dc=YOUR-DOMAIN,dc=edu,dc=gh).
- Select "New Entry" on the Right-click Menu.
- Then "Create entry from Scratch" → Next.
- Select "groupofNames" and click "Add" and "Next."
- Type "CN" as the RDN and the desired value in front of it, then click "Next."
- You will be prompted with a user add window as DN Editor. Select a user from the browser and click OK.
4. Adding a New User¶
- Select the root location for the OU (e.g., ou=People,dc=YOUR-DOMAIN,dc=ac,dc=lk).
- Select "New Entry" on the Right-click Menu.
- Then "Create entry from Scratch" → Next.
- Select "inetOrgPerson" and click "Add."
- Select "eduPerson" and click "Add" and "Next."
- Type "uid" as the RDN and the desired username value in front of it, then "Next."
- Enter desired values for "cn" (First Name) and "sn" (last Name).
- Enter a new attribute from the right-click menu as "userPassword" and click "Finish." When it asks, enter the new user's password and select "Plaintext" as the hash method and click OK.
- You may add any other attribute as well.
- Then click "Finish."
More documentation can be found on the Apache Directory Studio User's Guide.