B07.Enterprise-MIS‎ > ‎LDAP‎ > ‎

CentOS 6.3+

LDAP stands for Lightweight Directory Access Protocol, used for implementing the industry standard directory services.

# yum install openldap-servers openldap-clients



Directory


  • /etc/openldap


Bootup and Shutdown






LDAP Client - ldap.conf



#
# LDAP Defaults
#

# See ldap.conf(5) for details
# This file should be world readable but not world writable.

BASE    dc=wisdomfish,dc=org
#URI    ldap://ldap.example.com ldap://ldap-master.example.com:666
URI     ldap://192.168.1.16

#SIZELIMIT      12
#TIMELIMIT      15
#DEREF          never

TLS_CACERTDIR /etc/openldap/cacerts



LDAP Server - slapd.conf






LDIF



#slapadd -n 2 -l root.ldif
  • slapadd - Add entries to a SLAPD database
[root@Vigor16 openldap]# slapadd -n 2 -l root.ldif
str2entry: entry -1 has multiple DNs "dc=wisdomfish,dc=org" and "ou=staff,dc=wisdomfish,dc=org"
slapadd: could not parse entry (line=1)
_#################### 100.00% eta   none elapsed            none fast!         
Closing DB...




Webmin modules


  • LDAP Client
  • LDAP Server
  • LDAP Users and Groups

LDAP Client







Comments