Open main menu

CDOT Wiki β

Changes

OpenLDAP Installation and Test

13 bytes removed, 01:14, 23 November 2016
no edit summary
== OpenLDAP Server and client Configuration File ==
=== OpenLDAP Server Configuration directory ===
Please note that the following procedure only works for CentOS Linux starting from <font color='red'>version 7.0</font>.
* Top of the configure directory for the OpenLDAP server slapd: /etc/openldap/slapd.d/cn=config
* olcRootPW - add (for olcRootDN)
=== Start slapd and add additional schema ===
After installing the openldap-servers rpm package, you should be able to start the OpenLDAP server slapd with the following command:
<pre>
</pre>
===Check current "naming context" of the OpenLDAP directory ===
<pre>
[root@localhost cn=config]# ldapsearch -x -b '' -s base namingContexts
</pre>
=== OpenLDAP client configuration ===# /etc/openldap/ldap.conf## This is the configuration file for the ldap clients. The following are ldap client programs:### ldapadd### ldapcompare### ldapdelete### ldapmodify### ldapmodrdn### ldappasswd### ldapsearch### ldapwhoami## You could set/modify the following directives:### BASE### URL# /etc/ldap.conf## This is the configuration file for the LDAP nameservice switch library and the LDAP PAM module## You could set/modify the following directives:### base### host - IP or hostname of the LDAP server. If you use hostname, it must be resolvable without using LDAP. Multiple hosts may be specified, each separated by a space.
== Important LDAP Commands and Sample LDIF files ==
# numResponses: 2
# numEntries: 1
 
== OpenLDAP client configuration ==
# /etc/openldap/ldap.conf
## This is the configuration file for the ldap clients. The following are ldap client programs:
### ldapadd
### ldapcompare
### ldapdelete
### ldapmodify
### ldapmodrdn
### ldappasswd
### ldapsearch
### ldapwhoami
## You could set/modify the following directives:
### BASE
### URL
# /etc/ldap.conf
## This is the configuration file for the LDAP nameservice switch library and the LDAP PAM module
## You could set/modify the following directives:
### base
### host - IP or hostname of the LDAP server. If you use hostname, it must be resolvable without using LDAP. Multiple hosts may be specified, each separated by a space.
== Using OpenLDAD for Apache Basic Authentication ==
1,760
edits