Created
May 12, 2014 15:43
-
-
Save RJ/042544c7a1665daaf398 to your computer and use it in GitHub Desktop.
Setting up LDAP server for testing our ldap auth against
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
as root: | |
apt-get install slapd ldap-utils cpu | |
edit, /etc/cpu/cpu.conf replace these lines: | |
LDAP_URI = ldap://localhost | |
BIND_DN = cn=admin,dc=nodomain | |
BIND_PASS = irccloud | |
USER_BASE = dc=nodomain | |
GROUP_BASE = dc=nodomain | |
#USER_OBJECT_CLASS = account,posixAccount,shadowAccount,top | |
USER_OBJECT_CLASS = inetOrgPerson,posixAccount,shadowAccount,top | |
GROUP_OBJECT_CLASS = posixGroup,top | |
add a user to ldap: | |
cpu useradd -f Richard -E Jones -e rj@example.com -c "Richard Jones" -m richard -p richard |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment