Topic 7

Date: 3/1/2017
Lightweight Directory Access Protocol (LDAP)
Linux System 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:
    
    systemctl stop  slapd
    systemctl start slapd
    



  • Take me to the Course Website