source: server/other/openldap.xml@ 957e607d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 957e607d was 957e607d, checked in by Randy McMurchy <randy@…>, 20 years ago

Changed various packages to use BLFS version of Cyrus SASL in dependency lists

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2563 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 9.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7<!ENTITY openldap-download-http "http://gd.tuwien.ac.at/infosys/network/OpenLDAP/openldap-release/openldap-&openldap-version;.tgz">
8<!ENTITY openldap-download-ftp "ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-&openldap-version;.tgz">
9<!ENTITY openldap-size "2.0 MB">
10<!ENTITY openldap-buildsize "116 MB">
11<!ENTITY openldap-time "7.52 SBU">
12
13]>
14
15<sect1 id="openldap" xreflabel="OpenLDAP-&openldap-version;">
16<?dbhtml filename="openldap.html"?>
17<title>Open<acronym>LDAP</acronym>-&openldap-version;</title>
18
19<sect2>
20<title>Introduction to <application>Open<acronym>LDAP</acronym></application></title>
21
22<para>The <application>Open<acronym>LDAP</acronym></application> package
23provides an open source implementation of the Lightweight Directory
24Access Protocol.</para>
25
26<sect3><title>Package information</title>
27<itemizedlist spacing='compact'>
28<listitem><para>Download (HTTP): <ulink url="&openldap-download-http;"/></para></listitem>
29<listitem><para>Download (FTP): <ulink url="&openldap-download-ftp;"/></para></listitem>
30<listitem><para>Download size: &openldap-size;</para></listitem>
31<listitem><para>Estimated Disk space required: &openldap-buildsize;</para></listitem>
32<listitem><para>Estimated build time: &openldap-time;</para></listitem></itemizedlist>
33</sect3>
34
35<sect3><title><application>Open<acronym>LDAP</acronym></application> dependencies</title>
36<sect4><title>Required</title>
37<para><xref linkend="db"/>
38</para></sect4>
39<sect4><title>Optional</title>
40<para>
41<xref linkend="openssl"/>,
42<xref linkend="gdbm"/>,
43<xref linkend="tcpwrappers"/>,
44<xref linkend="cyrus-sasl"/> and
45<xref linkend="heimdal"/> or
46<xref linkend="mitkrb"/>
47</para></sect4>
48</sect3>
49
50</sect2>
51
52<sect2>
53<title>Installation of <application>Open<acronym>LDAP</acronym></application></title>
54
55<para>Install <application>Open<acronym>LDAP</acronym></application> by
56running the following commands:</para>
57
58<screen><userinput><command>./configure --prefix=/usr --libexecdir=/usr/sbin \
59 --sysconfdir=/etc --localstatedir=/var/lib \
60 --disable-debug --enable-ldbm &amp;&amp;
61make depend &amp;&amp;
62make &amp;&amp;
63make test &amp;&amp;
64make install</command></userinput></screen>
65
66</sect2>
67
68<sect2>
69<title>Command explanations</title>
70
71<para><parameter>--sysconfdir=/etc</parameter>: Sets the configuration file directory to
72avoid the default of <filename class="directory">/usr/etc</filename>.</para>
73
74<para><parameter>--libexecdir=/usr/sbin</parameter>: Puts the server executables in
75<filename class="directory">/usr/sbin</filename> instead of <filename
76class="directory">/usr/libexec</filename>.</para>
77
78<para><option>--enable-ldbm</option>: Build <command>slapd</command>
79with primary database back end using either <application>Berkeley
80DB</application> or
81<application><acronym>GNU</acronym> Database Manager</application>.</para>
82
83<para><option>--disable-debug</option>: Disable debugging code.</para>
84
85<para><command>make test</command>: Validate correct build of the package.</para>
86
87</sect2>
88
89<sect2>
90<title>Configuring Open<acronym>LDAP</acronym></title>
91
92<sect3><title>Config files</title>
93<para><filename>/etc/openldap/*</filename></para>
94</sect3>
95
96<sect3><title>Configuration Information</title>
97
98<para>The only configuration needed for
99<application>Open<acronym>LDAP</acronym></application> is
100to run <command>ldconfig</command>. The <acronym>LDAP</acronym> server
101can be started by <command>/usr/sbin/slapd</command> as described in
102the man page slapd(8). You can verify that <acronym>LDAP</acronym> is
103running with <command>ps aux</command> and you can verify access to the
104<acronym>LDAP</acronym> server with the following command:</para>
105<screen><userinput><command>ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts</command></userinput></screen>
106
107<para>The correct result is:</para>
108<screen><computeroutput># extended LDIF
109#
110# LDAPv3
111# base &lt;&gt; with scope base
112# filter: (objectclass=*)
113# requesting: namingContexts
114#
115
116#
117dn:
118namingContexts: dc=my-domain,dc=com
119
120# search result
121search: 2
122result: 0 Success
123
124# numResponses: 2
125# numEntries: 1</computeroutput></screen>
126
127<para>Kill the server with this command:</para>
128<screen><userinput><command>kill -INT `cat /var/lib/slapd.pid`</command></userinput></screen>
129
130<para>You are now ready to modify the
131<filename>/etc/openldap/slapd.conf</filename> to be specific to your
132installation.</para>
133
134<para><emphasis>Utilizing <application>GDBM</application></emphasis></para>
135
136<para>To utilize <application>GDBM</application> as the database
137backend, the "database" entry in <filename>/etc/openldap/slapd.conf</filename>
138must be changed from "bdb" to "ldbm". You can use both by creating an
139additional database section in <filename>/etc/openldap/slapd.conf</filename>.</para>
140
141<para><emphasis>Securing your <acronym>LDAP</acronym> server</emphasis></para>
142
143<para>Significant configuration is needed for
144<application>Open<acronym>LDAP</acronym></application> to utilize
145security features. The <ulink
146url="http://www.openldap.org/doc/admin21/">OpenLDAP 2.1 Administrator's
147Guide</ulink> is a good place to start for access control settings,
148running as a user other than root and setting a chroot environment.</para>
149
150<para><emphasis>User Tools</emphasis></para>
151
152<para>Data can be added to the <acronym>LDAP</acronym> database via
153<command>ldapadd</command>. There are other programs that can use
154the database. For more information see the appropriate man page.</para>
155
156<para><emphasis><application>Mozilla</application> Address Directory</emphasis></para>
157
158<para>By default, LDAPv2 support is disabled in the
159<filename>slapd.conf</filename> file. Once the database is properly
160setup and <application>Mozilla</application> is configured to use the
161directory, you must add <option>allow bind_v2</option> to the
162<filename>slapd.conf</filename> file.</para>
163
164
165</sect3>
166
167</sect2>
168
169<sect2>
170<title>Contents</title>
171
172<para>The Open<acronym><acronym>LDAP</acronym></acronym> package contains
173<command>ldapadd</command>,
174<command>ldapcompare</command>,
175<command>ldapdelete</command>,
176<command>ldapmodify</command>,
177<command>ldapmodrdn</command>,
178<command>ldappasswd</command>,
179<command>ldapsearch</command>,
180<command>ldapwhoami</command>,
181<command>slapadd</command>,
182<command>slapcat</command>,
183<command>slapd</command>,
184<command>slapindex</command>,
185<command>slappasswd</command>,
186<command>slurpd</command>,
187<filename class="libraryfile">liblber</filename> and
188<filename class="libraryfile">libldap</filename>.</para>
189
190</sect2>
191
192<sect2><title>Description</title>
193
194<sect3><title>ldapadd</title>
195<para><command>ldapadd</command> opens a connection to an <acronym>LDAP</acronym> server,
196binds and adds entries.</para></sect3>
197
198<sect3><title>ldapcompare</title>
199<para><command>ldapcompare</command> opens a connection to an <acronym>LDAP</acronym>
200server, binds and performs a compare using specified
201parameters.</para></sect3>
202
203<sect3><title>ldapdelete</title>
204<para><command>ldapdelete</command> opens a connection to an <acronym>LDAP</acronym> server,
205binds and deletes one or more entries.</para></sect3>
206
207<sect3><title>ldapmodify</title>
208<para><command>ldapmodify</command> opens a connection to an <acronym>LDAP</acronym>
209server, binds and modifies entries.</para></sect3>
210
211<sect3><title>ldapmodrdn</title>
212<para><command>ldapmodrdn</command> opens a connection to an <acronym>LDAP</acronym>
213server, binds and modifies the <acronym>RDN</acronym> of
214entries.</para></sect3>
215
216<sect3><title>ldappasswd</title>
217<para><command>ldappasswd</command> is a tool to set the password of an
218<acronym>LDAP</acronym> user.</para></sect3>
219
220<sect3><title>ldapsearch</title>
221<para><command>ldapsearch</command> opens a connection to an <acronym>LDAP</acronym>
222server, binds and performs a search using specified
223parameters.</para></sect3>
224
225<sect3><title>ldapwhoami</title>
226<para><command>ldapwhoami</command> open a connection to an <acronym>LDAP</acronym> server,
227binds and performs a whoami operation.</para></sect3>
228
229<sect3><title>slapadd</title>
230<para><command>slapadd</command> is used to add entries specified in
231<acronym>LDAP</acronym> Directory Interchange Format (<acronym>LDIF</acronym>) to a
232slapd database.</para></sect3>
233
234<sect3><title>slapcat</title>
235<para><command>slapcat</command> is used to generate an <acronym>LDAP</acronym>
236<acronym>LDIF</acronym> output
237based upon the contents of a slapd database.</para></sect3>
238
239<sect3><title>slapd</title>
240<para><command>slapd</command> is the stand-alone <acronym>LDAP</acronym> server.</para></sect3>
241
242<sect3><title>slapindex</title>
243<para><command>slapindex</command> is used to regenerate slapd
244indices based upon the current contents of a database.</para></sect3>
245
246<sect3><title>slappasswd</title>
247<para><command>slappasswd</command> is an Open<acronym>LDAP</acronym> password
248utility.</para></sect3>
249
250<sect3><title>slurpd</title>
251<para><command>slurpd</command> is the stand-alone
252<acronym>LDAP</acronym> replication server.</para></sect3>
253
254<sect3><title>liblber and libldap</title>
255<para>These libraries support the <acronym>LDAP</acronym> programs and provide functionality for
256other programs interacting with <acronym>LDAP</acronym>.</para></sect3>
257
258</sect2>
259
260</sect1>
261
Note: See TracBrowser for help on using the repository browser.