Skip to content

Instantly share code, notes, and snippets.

@RJ
Created May 12, 2014 15:43
Show Gist options
  • Save RJ/042544c7a1665daaf398 to your computer and use it in GitHub Desktop.
Save RJ/042544c7a1665daaf398 to your computer and use it in GitHub Desktop.
Setting up LDAP server for testing our ldap auth against
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