Topic 6

Date: 3/26/2014
Lightweight Directory Access Protocol (LDAP)
Practical guide to Linux systems administration


The Server configuration file (/etc/ldap/slapd.conf)


# Include Schemas
include         /etc/ldap/schema/core.schema
include         /etc/ldap/schema/cosine.schema
include         /etc/ldap/schema/nis.schema
include         /etc/ldap/schema/inetorgperson.schema

# Where the dynamically loaded modules are stored
modulepath      /usr/lib/ldap
moduleload      back_bdb

# ldbm database definitions
database        bdb 

suffix          "dc=example,dc=com"
rootdn          "cn=Manager,dc=example,dc=com"
rootpw          thisp

# Root password can be created with:
# perl  -e "print crypt(thisp, ac,)" > pass.txt
#rootpw          {crypt}acunRNwFPEdHQ 

# Where the database file are physically stored 
directory       "/var/lib/ldap"

# slapd process ID file
pidfile         /var/run/slapd/slapd.pid

# Below can be added additional databases, indexing, and security ACL 

  • Re-start slapd daemon every time /etc/ldap/slapd.conf is updated:
    
    service slapd stop
    service slapd start
    



  • Take me to the Course Website