Skip to content

Instantly share code, notes, and snippets.

@kamituel
Created January 14, 2013 09:14
Show Gist options
  • Save kamituel/4528783 to your computer and use it in GitHub Desktop.
Save kamituel/4528783 to your computer and use it in GitHub Desktop.
/etc/openldap/slapd.conf
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args
database bdb
suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
directory /var/lib/ldap
# Indices to maintain for this database
index objectClass eq,pres
index ou,cn,mail,surname,givenname eq,pres,sub
index uidNumber,gidNumber,loginShell eq,pres
index uid,memberUid eq,pres,sub
index nisMapName,nisMapEntry eq,pres,sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment