OpenLDAP Setup Overview
409
25.6. OpenLDAP Setup Overview
This section provides a quick overview for installing and configuring an OpenLDAP directory. For more
details, refer to the following URLs:
•
http://www.openldap.org/doc/admin/quickstart.html
— The
Quick-Start Guide
on the OpenLDAP
website.
•
http://www.tldp.org/HOWTO/LDAP-HOWTO/index.html
— The
LDAP Linux HOWTO
from the Linux
Documentation Project.
The basic steps for creating an LDAP server are as follows:
1. Install the
openldap
,
openldap-servers
, and
openldap-clients
RPMs.
2. Edit the
/etc/openldap/slapd.conf
file to specify the LDAP domain and server. Refer to
Section 25.6.1, “Editing
/etc/openldap/slapd.conf
”
for more information.
3. Start
slapd
with the command:
/sbin/service ldap start
After configuring LDAP, use
chkconfig
,
/usr/sbin/ntsysv
, or the
Services Configuration
Tool
to configure LDAP to start at boot time. For more information about configuring services,
refer to
Chapter 16, Controlling Access to Services
.
4. Add entries to an LDAP directory with
ldapadd
.
5. Use
ldapsearch
to determine if
slapd
is accessing the information correctly.
6. At this point, the LDAP directory should be functioning properly and can be configured with LDAP-
enabled applications.
25.6.1. Editing
/etc/openldap/slapd.conf
To use the
slapd
LDAP server, modify its configuration file,
/etc/openldap/slapd.conf
, to
specify the correct domain and server.
The
suffix
line names the domain for which the LDAP server provides information and should be
changed from:
suffix "dc=your-domain,dc=com"
Edit it accordingly so that it reflects a fully qualified domain name. For example:
suffix "dc=example,dc=com"
The
rootdn
entry is the Distinguished Name (DN) for a user who is unrestricted by access controls
or administrative limit parameters set for operations on the LDAP directory. The
rootdn
user can be
thought of as the root user for the LDAP directory. In the configuration file, change the
rootdn
line
from its default value as in the following example:
Содержание ENTERPRISE LINUX 5 - VIRTUAL SERVER ADMINISTRATION
Страница 22: ...xxii ...
Страница 28: ......
Страница 36: ...10 ...
Страница 40: ...14 ...
Страница 96: ...70 ...
Страница 116: ...90 ...
Страница 144: ...118 ...
Страница 146: ......
Страница 158: ...132 ...
Страница 165: ...Installing and Removing Packages 139 Figure 11 7 Installing and removing packages simultaneously ...
Страница 166: ...140 ...
Страница 172: ...146 ...
Страница 178: ......
Страница 228: ...202 ...
Страница 264: ...238 ...
Страница 318: ...292 ...
Страница 330: ...304 ...
Страница 388: ...362 ...
Страница 428: ...402 ...
Страница 452: ......
Страница 458: ...432 ...
Страница 476: ...450 ...
Страница 478: ...452 ...
Страница 494: ...468 ...
Страница 498: ...472 ...
Страница 530: ...504 ...
Страница 536: ...510 ...
Страница 544: ...Chapter 36 Log Files 518 Figure 36 7 Log file contents after five seconds ...
Страница 546: ......
Страница 550: ...524 ...
Страница 576: ......
Страница 584: ...558 ...
Страница 608: ......
Страница 776: ...750 ...
Страница 796: ...770 ...
Страница 800: ...774 ...
Страница 804: ......
Страница 806: ...780 ...
Страница 808: ...782 ...
Страница 816: ...790 ...
Страница 820: ...794 ...
Страница 822: ...796 ...
Страница 830: ...804 ...
Страница 836: ...810 ...
Страница 844: ...818 ...
Страница 848: ...822 ...