[0931098] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[0931098] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[c00932a] | 7 | <!ENTITY openldap-download-http " ">
|
---|
[12949fb] | 8 | <!ENTITY openldap-download-ftp "ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-&openldap-version;.tgz">
|
---|
[32b1094f] | 9 | <!ENTITY openldap-md5sum "423c1f23d2a0cb96b3e9baf7e9d7dda7">
|
---|
| 10 | <!ENTITY openldap-size "5.4 MB">
|
---|
[fcee45b] | 11 | <!ENTITY openldap-buildsize "47 MB (client), 101 MB (server, additional 5 MB for the tests)">
|
---|
| 12 | <!ENTITY openldap-time "0.6 SBU (client), 1.1 SBU (server, additional 3.4 SBU for the tests)">
|
---|
[0931098] | 13 | ]>
|
---|
| 14 |
|
---|
[9a9a0fec] | 15 | <sect1 id="openldap" xreflabel="OpenLDAP-&openldap-version;">
|
---|
[814e53c] | 16 | <?dbhtml filename="openldap.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>OpenLDAP-&openldap-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="openldap">
|
---|
| 26 | <primary sortas="a-OpenLDAP">OpenLDAP</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to OpenLDAP</title>
|
---|
| 31 |
|
---|
[b5e36dd] | 32 | <para>
|
---|
| 33 | The <application>OpenLDAP</application> package provides an open
|
---|
| 34 | source implementation of the Lightweight Directory Access Protocol.
|
---|
| 35 | </para>
|
---|
| 36 |
|
---|
[aed3e6ec] | 37 | &lfs77_checked;
|
---|
[814e53c] | 38 |
|
---|
| 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
[b5e36dd] | 42 | <para>
|
---|
| 43 | Download (HTTP): <ulink url="&openldap-download-http;"/>
|
---|
| 44 | </para>
|
---|
[814e53c] | 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
[b5e36dd] | 47 | <para>
|
---|
| 48 | Download (FTP): <ulink url="&openldap-download-ftp;"/>
|
---|
| 49 | </para>
|
---|
[814e53c] | 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
[b5e36dd] | 52 | <para>
|
---|
| 53 | Download MD5 sum: &openldap-md5sum;
|
---|
| 54 | </para>
|
---|
[814e53c] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[b5e36dd] | 57 | <para>
|
---|
| 58 | Download size: &openldap-size;
|
---|
| 59 | </para>
|
---|
[814e53c] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[b5e36dd] | 62 | <para>
|
---|
| 63 | Estimated disk space required: &openldap-buildsize;
|
---|
| 64 | </para>
|
---|
[814e53c] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[b5e36dd] | 67 | <para>
|
---|
| 68 | Estimated build time: &openldap-time;
|
---|
| 69 | </para>
|
---|
[814e53c] | 70 | </listitem>
|
---|
| 71 | </itemizedlist>
|
---|
| 72 |
|
---|
[6a604251] | 73 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[ba432fd] | 74 | <itemizedlist spacing="compact">
|
---|
| 75 | <listitem>
|
---|
[b5e36dd] | 76 | <para>
|
---|
| 77 | Required patch:
|
---|
[6b52571] | 78 | <ulink url="&patch-root;/openldap-&openldap-version;-consolidated-1.patch"/>
|
---|
[b5e36dd] | 79 | </para>
|
---|
[1ef8da9] | 80 | </listitem>
|
---|
[ba432fd] | 81 | </itemizedlist>
|
---|
| 82 |
|
---|
[814e53c] | 83 | <bridgehead renderas="sect3">OpenLDAP Dependencies</bridgehead>
|
---|
| 84 |
|
---|
| 85 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[b5e36dd] | 86 | <para role="recommended">
|
---|
[fcee45b] | 87 | <xref linkend="cyrus-sasl"/> and
|
---|
[b5e36dd] | 88 | <xref linkend="openssl"/>
|
---|
| 89 | </para>
|
---|
[814e53c] | 90 |
|
---|
| 91 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[b5e36dd] | 92 | <para role="optional">
|
---|
| 93 | <xref linkend="icu"/>,
|
---|
[cedda6d2] | 94 | <xref linkend="pth"/>,
|
---|
| 95 | <xref linkend="unixodbc"/>,
|
---|
[5e0662d] | 96 | <xref linkend="mariadb"/> or
|
---|
[cedda6d2] | 97 | <xref linkend="postgresql"/> or
|
---|
| 98 | <ulink url="http://www.mysql.com/">MySQL</ulink>,
|
---|
| 99 | <ulink url="http://www.openslp.org/">OpenSLP</ulink>, and
|
---|
[fcee45b] | 100 | <xref linkend="db"/> (not recommended by the developers)
|
---|
[b5e36dd] | 101 | </para>
|
---|
[814e53c] | 102 |
|
---|
[3cb0c57] | 103 | <para condition="html" role="usernotes">User Notes:
|
---|
[bc6e56d] | 104 | <ulink url="&blfs-wiki;/openldap"/>
|
---|
| 105 | </para>
|
---|
[814e53c] | 106 | </sect2>
|
---|
| 107 |
|
---|
| 108 | <sect2 role="installation">
|
---|
| 109 | <title>Installation of OpenLDAP</title>
|
---|
| 110 |
|
---|
[12949fb] | 111 | <note>
|
---|
[b5e36dd] | 112 | <para>
|
---|
| 113 | If you only need to install the client side <command>ldap*</command>
|
---|
[defca61] | 114 | binaries, corresponding man pages, libraries and header files (referred
|
---|
| 115 | to as a <quote>client-only</quote> install), issue these commands
|
---|
| 116 | instead of the following ones (no test suite available):
|
---|
[b5e36dd] | 117 | </para>
|
---|
[12949fb] | 118 |
|
---|
[6b52571] | 119 | <screen><userinput>patch -Np1 -i ../openldap-&openldap-version;-consolidated-1.patch &&
|
---|
[439e942e] | 120 | autoconf &&
|
---|
[983db4c] | 121 |
|
---|
[d6da5da] | 122 | ./configure --prefix=/usr \
|
---|
[12949fb] | 123 | --sysconfdir=/etc \
|
---|
[9ef1b6ff] | 124 | --disable-static \
|
---|
[d6da5da] | 125 | --enable-dynamic \
|
---|
| 126 | --disable-debug \
|
---|
| 127 | --disable-slapd &&
|
---|
| 128 | make depend &&
|
---|
[c612fc3] | 129 | make</userinput></screen>
|
---|
| 130 |
|
---|
| 131 | <para>
|
---|
| 132 | Then, as the <systemitem class="username">root</systemitem> user:
|
---|
| 133 | </para>
|
---|
| 134 |
|
---|
| 135 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[9ef1b6ff] | 136 |
|
---|
[12949fb] | 137 | </note>
|
---|
[defca61] | 138 |
|
---|
| 139 | <warning>
|
---|
[6b52571] | 140 | <para>If upgrading from a previos installation that used Berkeley DB as
|
---|
[defca61] | 141 | the backend, you will need to dump the database(s) using the
|
---|
| 142 | <command>slapcat</command> utility, relocate all files in
|
---|
| 143 | <filename class="directory">/var/lib/openldap</filename>, change all
|
---|
| 144 | instances of <option>bdb</option> to <option>mdb</option> in
|
---|
| 145 | <filename>/etc/openldap/slapd.conf</filename> and any files in
|
---|
| 146 | <filename class="directory">/etc/openldap/slapd.d</filename>, and import
|
---|
| 147 | using the <command>slapadd</command> utility after the installation is
|
---|
| 148 | completed.
|
---|
| 149 | </para>
|
---|
| 150 | </warning>
|
---|
[12949fb] | 151 |
|
---|
[b194f2b] | 152 | <para>
|
---|
| 153 | There should be a dedicated user and group to take control
|
---|
| 154 | of the <command>slapd</command> daemon after it is
|
---|
| 155 | started. Issue the following commands as the
|
---|
| 156 | <systemitem class="username">root</systemitem> user:
|
---|
| 157 | </para>
|
---|
| 158 |
|
---|
| 159 | <screen role="root"><userinput>groupadd -g 83 ldap &&
|
---|
| 160 | useradd -c "OpenLDAP Daemon Owner" -d /var/lib/openldap -u 83 \
|
---|
| 161 | -g ldap -s /bin/false ldap</userinput></screen>
|
---|
| 162 |
|
---|
[b5e36dd] | 163 | <para>
|
---|
| 164 | Install <application>OpenLDAP</application> by
|
---|
| 165 | running the following commands:
|
---|
| 166 | </para>
|
---|
[814e53c] | 167 |
|
---|
[6b52571] | 168 | <screen><userinput>patch -Np1 -i ../openldap-&openldap-version;-consolidated-1.patch &&
|
---|
[439e942e] | 169 | autoconf &&
|
---|
[983db4c] | 170 |
|
---|
[d6da5da] | 171 | ./configure --prefix=/usr \
|
---|
| 172 | --sysconfdir=/etc \
|
---|
| 173 | --localstatedir=/var \
|
---|
[c00932a] | 174 | --libexecdir=/usr/lib \
|
---|
[d6da5da] | 175 | --disable-static \
|
---|
| 176 | --disable-debug \
|
---|
[fcee45b] | 177 | --with-tls=openssl \
|
---|
| 178 | --with-cyrus-sasl \
|
---|
[d6da5da] | 179 | --enable-dynamic \
|
---|
| 180 | --enable-crypt \
|
---|
| 181 | --enable-spasswd \
|
---|
[fcee45b] | 182 | --enable-slapd \
|
---|
[d6da5da] | 183 | --enable-modules \
|
---|
[c00932a] | 184 | --enable-backends=mod \
|
---|
[d6da5da] | 185 | --disable-ndb \
|
---|
[fcee45b] | 186 | --disable-sql \
|
---|
| 187 | --disable-shell \
|
---|
| 188 | --disable-bdb \
|
---|
| 189 | --disable-hdb \
|
---|
[defca61] | 190 | --enable-overlays=mod &&
|
---|
[fcee45b] | 191 |
|
---|
[0931098] | 192 | make depend &&
|
---|
[d9091faa] | 193 | make</userinput></screen>
|
---|
| 194 |
|
---|
[b5e36dd] | 195 | <para>
|
---|
[4585084d] | 196 | To test the results, issue: <command>make test</command>. Tests may fail
|
---|
| 197 | after a long time (~ 5 SBU).
|
---|
[b5e36dd] | 198 | </para>
|
---|
[814e53c] | 199 |
|
---|
[b5e36dd] | 200 | <para>
|
---|
| 201 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 202 | </para>
|
---|
[814e53c] | 203 |
|
---|
| 204 | <screen role="root"><userinput>make install &&
|
---|
[0c74155e] | 205 |
|
---|
[6b52571] | 206 | install -v -dm700 -o ldap -g ldap /var/lib/openldap &&
|
---|
[defca61] | 207 | install -v -dm700 -o ldap -g ldap /etc/openldap/slapd.d &&
|
---|
[6b52571] | 208 | chmod -v 640 /etc/openldap/slapd.{conf,ldif} &&
|
---|
| 209 | chown -v root:ldap /etc/openldap/slapd.{conf,ldif} &&
|
---|
[b194f2b] | 210 |
|
---|
[6b52571] | 211 | install -v -dm755 /usr/share/doc/openldap-&openldap-version; &&
|
---|
| 212 | cp -vfr doc/{drafts,rfc,guide} /usr/share/doc/openldap-&openldap-version;</userinput></screen>
|
---|
[117309d] | 213 |
|
---|
[814e53c] | 214 | </sect2>
|
---|
| 215 |
|
---|
| 216 | <sect2 role="commands">
|
---|
| 217 | <title>Command Explanations</title>
|
---|
| 218 |
|
---|
[c00932a] | 219 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[b5e36dd] | 220 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 221 |
|
---|
| 222 | <para>
|
---|
[9ef1b6ff] | 223 | <parameter>--disable-debug</parameter>: This switch disables
|
---|
[b5e36dd] | 224 | the debugging code in <application>OpenLDAP</application>.
|
---|
| 225 | </para>
|
---|
| 226 |
|
---|
| 227 | <para>
|
---|
[9ef1b6ff] | 228 | <parameter>--enable-dynamic</parameter>: This switch forces the
|
---|
[b5e36dd] | 229 | <application>OpenLDAP</application> libraries to be dynamically
|
---|
| 230 | linked to the executable programs.
|
---|
| 231 | </para>
|
---|
| 232 |
|
---|
| 233 | <para>
|
---|
[9ef1b6ff] | 234 | <parameter>--enable-crypt</parameter>: This switch enables using of
|
---|
[b5e36dd] | 235 | <command>crypt(3)</command> passwords.
|
---|
| 236 | </para>
|
---|
| 237 |
|
---|
| 238 | <para>
|
---|
[9ef1b6ff] | 239 | <parameter>--enable-spasswd</parameter>: This switch enables
|
---|
[d6da5da] | 240 | <application>SASL</application> password verification.
|
---|
| 241 | </para>
|
---|
| 242 |
|
---|
| 243 | <para>
|
---|
[9ef1b6ff] | 244 | <parameter>--enable-modules</parameter>: This switch enables dynamic
|
---|
[b5e36dd] | 245 | module support.
|
---|
| 246 | </para>
|
---|
| 247 |
|
---|
| 248 | <para>
|
---|
[9ef1b6ff] | 249 | <parameter>--enable-rlookups</parameter>: This switch enables
|
---|
[b5e36dd] | 250 | reverse lookups of client hostnames.
|
---|
| 251 | </para>
|
---|
| 252 |
|
---|
| 253 | <para>
|
---|
[9ef1b6ff] | 254 | <parameter>--enable-backends</parameter>: This switch enables
|
---|
[b5e36dd] | 255 | all available backends.
|
---|
| 256 | </para>
|
---|
| 257 |
|
---|
| 258 | <para>
|
---|
[9ef1b6ff] | 259 | <parameter>--enable-overlays</parameter>: This switch enables
|
---|
[b5e36dd] | 260 | all available overlays.
|
---|
| 261 | </para>
|
---|
| 262 |
|
---|
| 263 | <para>
|
---|
[9ef1b6ff] | 264 | <parameter>--disable-ndb</parameter>: This switch disables
|
---|
[0d7900a] | 265 | <application>MySQL</application> NDB Cluster backend
|
---|
[b5e36dd] | 266 | which causes configure to fail if
|
---|
| 267 | <application>MySQL</application> is present.
|
---|
| 268 | </para>
|
---|
| 269 |
|
---|
| 270 | <para>
|
---|
[9ef1b6ff] | 271 | <parameter>--disable-sql</parameter>: This switch explicitly
|
---|
[b5e36dd] | 272 | disables the SQL backend. Omit this switch if a SQL server is
|
---|
| 273 | installed and you are going to use a SQL backend.
|
---|
| 274 | </para>
|
---|
| 275 |
|
---|
[67bd7d46] | 276 | <para>
|
---|
| 277 | <parameter>--libexecdir=/usr/lib</parameter>: This switch controls where
|
---|
| 278 | the <filename class="directory">/usr/lib/openldap</filename> directory is
|
---|
| 279 | installed. Everything in that directory is a library, so it belongs under
|
---|
| 280 | <filename class="directory">/usr/lib</filename> instead of
|
---|
| 281 | <filename class="directory">/usr/libexec</filename>.
|
---|
| 282 | </para>
|
---|
| 283 |
|
---|
[b5e36dd] | 284 | <para>
|
---|
[d6da5da] | 285 | <option>--enable-slp</option>: This switch enables
|
---|
| 286 | SLPv2 support. Use it if you have installed
|
---|
[b5e36dd] | 287 | <ulink url="http://www.openslp.org/">OpenSLP</ulink>.
|
---|
| 288 | </para>
|
---|
[defca61] | 289 |
|
---|
[516a4acd] | 290 | <note>
|
---|
[b5e36dd] | 291 | <para>
|
---|
| 292 | You can run <command>./configure --help</command> to see if there
|
---|
[d6da5da] | 293 | are other switch you can pass to the <command>configure</command>
|
---|
[b5e36dd] | 294 | command to enable other options or dependency packages.
|
---|
| 295 | </para>
|
---|
[516a4acd] | 296 | </note>
|
---|
| 297 |
|
---|
[6b52571] | 298 | <para>
|
---|
| 299 | <command>install ...</command>, <command>chown ...</command>,
|
---|
| 300 | and <command>chmod ...</command>:
|
---|
| 301 | Having slapd configuration files and ldap databases in /var/lib/openldap
|
---|
| 302 | readable by anyone is a SECURITY ISSUE, especially since a file stores the
|
---|
| 303 | admin password in PLAIN TEXT. That's why mode 640 and root:ldap ownership
|
---|
| 304 | were used. The owner is root, so only root can modify the file, and group is
|
---|
| 305 | ldap, so that the group which owns slapd daemon could read but not modify
|
---|
| 306 | the file in case of a security breach.
|
---|
| 307 | </para>
|
---|
| 308 |
|
---|
[814e53c] | 309 | </sect2>
|
---|
| 310 |
|
---|
| 311 | <sect2 role="configuration">
|
---|
| 312 | <title>Configuring OpenLDAP</title>
|
---|
| 313 |
|
---|
| 314 | <sect3 id="openldap-config">
|
---|
| 315 | <title>Config Files</title>
|
---|
| 316 |
|
---|
[bc6e56d] | 317 | <para>
|
---|
| 318 | <filename>/etc/openldap/*</filename>
|
---|
| 319 | </para>
|
---|
[814e53c] | 320 |
|
---|
| 321 | <indexterm zone="openldap openldap-config">
|
---|
[bc6e56d] | 322 | <primary sortas="e-etc-openldap">/etc/openldap/*</primary>
|
---|
[814e53c] | 323 | </indexterm>
|
---|
| 324 |
|
---|
| 325 | </sect3>
|
---|
| 326 |
|
---|
| 327 | <sect3>
|
---|
| 328 | <title>Configuration Information</title>
|
---|
| 329 |
|
---|
[b5e36dd] | 330 | <para>
|
---|
| 331 | Configuring the <command>slapd</command> servers can be complex.
|
---|
| 332 | Securing the LDAP directory, especially if you are storing non-public
|
---|
| 333 | data such as password databases, can also be a challenging task. You'll
|
---|
| 334 | need to modify the <filename>/etc/openldap/slapd.conf</filename> and
|
---|
| 335 | <filename>/etc/openldap/ldap.conf</filename> files to set up
|
---|
| 336 | <application>OpenLDAP</application> for your particular needs.
|
---|
| 337 | </para>
|
---|
[814e53c] | 338 |
|
---|
| 339 | <indexterm zone="openldap openldap-config">
|
---|
| 340 | <primary
|
---|
| 341 | sortas="e-etc-openldap-slapd.conf">/etc/openldap/slapd.conf</primary>
|
---|
| 342 | </indexterm>
|
---|
| 343 |
|
---|
| 344 | <indexterm zone="openldap openldap-config">
|
---|
| 345 | <primary
|
---|
| 346 | sortas="e-etc-openldap-ldap.conf">/etc/openldap/ldap.conf</primary>
|
---|
| 347 | </indexterm>
|
---|
| 348 |
|
---|
[bc6e56d] | 349 | <para>
|
---|
| 350 | Resources to assist you with topics such as choosing a directory
|
---|
| 351 | configuration, backend and database definitions, access control settings,
|
---|
| 352 | running as a user other than <systemitem class="username">root</systemitem>
|
---|
| 353 | and setting a <command>chroot</command> environment include:
|
---|
| 354 | </para>
|
---|
[814e53c] | 355 |
|
---|
[d6da5da] | 356 | <itemizedlist spacing="compact">
|
---|
[814e53c] | 357 | <listitem>
|
---|
[b5e36dd] | 358 | <para>
|
---|
| 359 | The <command>slapd</command> man page.
|
---|
| 360 | </para>
|
---|
[814e53c] | 361 | </listitem>
|
---|
| 362 | <listitem>
|
---|
[b5e36dd] | 363 | <para>
|
---|
| 364 | The <filename>slapd.conf</filename> man page.
|
---|
| 365 | </para>
|
---|
[814e53c] | 366 | </listitem>
|
---|
| 367 | <listitem>
|
---|
[b5e36dd] | 368 | <para>
|
---|
[6b52571] | 369 | The <ulink url="http://www.openldap.org/doc/admin24/"> OpenLDAP 2.4
|
---|
| 370 | Administrator's Guide</ulink> (also installed locally in
|
---|
| 371 | <filename class='directory'>
|
---|
[b5e36dd] | 372 | /usr/share/doc/openldap-&openldap-version;/guide/admin</filename>).
|
---|
| 373 | </para>
|
---|
[814e53c] | 374 | </listitem>
|
---|
| 375 | <listitem>
|
---|
[b5e36dd] | 376 | <para>
|
---|
| 377 | Documents located at
|
---|
| 378 | <ulink url="http://www.openldap.org/pub/"/>.
|
---|
| 379 | </para>
|
---|
[814e53c] | 380 | </listitem>
|
---|
| 381 | </itemizedlist>
|
---|
| 382 |
|
---|
| 383 | </sect3>
|
---|
| 384 |
|
---|
| 385 | <sect3>
|
---|
| 386 | <title>Mozilla Address Directory</title>
|
---|
| 387 |
|
---|
[b5e36dd] | 388 | <para>
|
---|
| 389 | By default, LDAPv2 support is disabled in the
|
---|
| 390 | <filename>slapd.conf</filename> file. Once the database is properly
|
---|
| 391 | set up and <application>Mozilla</application> is configured to use the
|
---|
| 392 | directory, you must add <option>allow bind_v2</option> to the
|
---|
| 393 | <filename>slapd.conf</filename> file.
|
---|
| 394 | </para>
|
---|
[814e53c] | 395 |
|
---|
| 396 | </sect3>
|
---|
| 397 |
|
---|
| 398 | <sect3 id="openldap-init">
|
---|
| 399 | <title>Boot Script</title>
|
---|
| 400 |
|
---|
[b5e36dd] | 401 | <para>
|
---|
| 402 | To automate the startup of the LDAP server at system bootup,
|
---|
[d9d26317] | 403 | install the <filename>/etc/rc.d/init.d/slapd</filename> init script
|
---|
[b5e36dd] | 404 | included in the <xref linkend="bootscripts"/> package
|
---|
| 405 | using the following command:
|
---|
| 406 | </para>
|
---|
[814e53c] | 407 |
|
---|
| 408 | <indexterm zone="openldap openldap-init">
|
---|
[d9d26317] | 409 | <primary sortas="f-slapd">slapd</primary>
|
---|
[814e53c] | 410 | </indexterm>
|
---|
| 411 |
|
---|
[d9d26317] | 412 | <screen role="root"><userinput>make install-slapd</userinput></screen>
|
---|
[814e53c] | 413 |
|
---|
| 414 | <note>
|
---|
[b5e36dd] | 415 | <para>
|
---|
[0d7900a] | 416 | You'll need to modify the
|
---|
| 417 | <filename>/etc/sysconfig/slapd</filename> to include the
|
---|
| 418 | parameters needed for your specific configuration. See the
|
---|
[b5e36dd] | 419 | <command>slapd</command> man page for parameter information.
|
---|
| 420 | </para>
|
---|
[814e53c] | 421 | </note>
|
---|
| 422 |
|
---|
| 423 | </sect3>
|
---|
| 424 |
|
---|
| 425 | <sect3>
|
---|
| 426 | <title>Testing the Configuration</title>
|
---|
| 427 |
|
---|
[b5e36dd] | 428 | <para>
|
---|
| 429 | Start the LDAP server using the init script:
|
---|
| 430 | </para>
|
---|
[814e53c] | 431 |
|
---|
[d9d26317] | 432 | <screen role="root"><userinput>/etc/rc.d/init.d/slapd start</userinput></screen>
|
---|
[814e53c] | 433 |
|
---|
[b5e36dd] | 434 | <para>
|
---|
| 435 | Verify access to the LDAP server with the following command:
|
---|
| 436 | </para>
|
---|
[814e53c] | 437 |
|
---|
| 438 | <screen><userinput>ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts</userinput></screen>
|
---|
| 439 |
|
---|
[b5e36dd] | 440 | <para>
|
---|
| 441 | The expected result is:
|
---|
| 442 | </para>
|
---|
[814e53c] | 443 |
|
---|
[0931098] | 444 | <screen><computeroutput># extended LDIF
|
---|
| 445 | #
|
---|
| 446 | # LDAPv3
|
---|
[6b52571] | 447 | # base <> with scope baseObject
|
---|
[0931098] | 448 | # filter: (objectclass=*)
|
---|
[814e53c] | 449 | # requesting: namingContexts
|
---|
[0931098] | 450 | #
|
---|
| 451 |
|
---|
| 452 | #
|
---|
| 453 | dn:
|
---|
| 454 | namingContexts: dc=my-domain,dc=com
|
---|
| 455 |
|
---|
| 456 | # search result
|
---|
| 457 | search: 2
|
---|
| 458 | result: 0 Success
|
---|
| 459 |
|
---|
| 460 | # numResponses: 2
|
---|
| 461 | # numEntries: 1</computeroutput></screen>
|
---|
| 462 |
|
---|
[814e53c] | 463 | </sect3>
|
---|
| 464 |
|
---|
| 465 | </sect2>
|
---|
| 466 |
|
---|
| 467 | <sect2 role="content">
|
---|
| 468 | <title>Contents</title>
|
---|
| 469 |
|
---|
| 470 | <segmentedlist>
|
---|
| 471 | <segtitle>Installed Programs</segtitle>
|
---|
| 472 | <segtitle>Installed Libraries</segtitle>
|
---|
| 473 | <segtitle>Installed Directories</segtitle>
|
---|
| 474 |
|
---|
| 475 | <seglistitem>
|
---|
[b5e36dd] | 476 | <seg>
|
---|
| 477 | ldapadd, ldapcompare, ldapdelete, ldapexop, ldapmodify, ldapmodrdn,
|
---|
[4585084d] | 478 | ldappasswd, ldapsearch, ldapurl, ldapwhoami, slapacl, slapadd,
|
---|
| 479 | slapauth, slapcat, slapd, slapdn, slapindex, slappasswd, slapschema,
|
---|
| 480 | and slaptest
|
---|
[b5e36dd] | 481 | </seg>
|
---|
| 482 | <seg>
|
---|
[4585084d] | 483 | liblber.so, libldap.so, libldap_r.so,
|
---|
| 484 | and several under /usr/lib/openldap
|
---|
[b5e36dd] | 485 | </seg>
|
---|
| 486 | <seg>
|
---|
| 487 | /etc/openldap,
|
---|
[4585084d] | 488 | /usr/lib/openldap,
|
---|
| 489 | /usr/share/doc/openldap-&openldap-version;, and
|
---|
[b5e36dd] | 490 | /var/lib/openldap
|
---|
| 491 | </seg>
|
---|
[814e53c] | 492 | </seglistitem>
|
---|
| 493 | </segmentedlist>
|
---|
| 494 |
|
---|
| 495 | <variablelist>
|
---|
| 496 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 497 | <?dbfo list-presentation="list"?>
|
---|
| 498 | <?dbhtml list-presentation="table"?>
|
---|
| 499 |
|
---|
| 500 | <varlistentry id="ldapadd">
|
---|
| 501 | <term><command>ldapadd</command></term>
|
---|
| 502 | <listitem>
|
---|
[b5e36dd] | 503 | <para>
|
---|
| 504 | opens a connection to an LDAP server, binds and adds entries.
|
---|
| 505 | </para>
|
---|
[814e53c] | 506 | <indexterm zone="openldap ldapadd">
|
---|
| 507 | <primary sortas="b-ldapadd">ldapadd</primary>
|
---|
| 508 | </indexterm>
|
---|
| 509 | </listitem>
|
---|
| 510 | </varlistentry>
|
---|
| 511 |
|
---|
| 512 | <varlistentry id="ldapcompare">
|
---|
| 513 | <term><command>ldapcompare</command></term>
|
---|
| 514 | <listitem>
|
---|
[b5e36dd] | 515 | <para>
|
---|
| 516 | opens a connection to an LDAP server, binds and performs
|
---|
| 517 | a compare using specified parameters.
|
---|
| 518 | </para>
|
---|
[814e53c] | 519 | <indexterm zone="openldap ldapcompare">
|
---|
| 520 | <primary sortas="b-ldapcompare">ldapcompare</primary>
|
---|
| 521 | </indexterm>
|
---|
| 522 | </listitem>
|
---|
| 523 | </varlistentry>
|
---|
| 524 |
|
---|
| 525 | <varlistentry id="ldapdelete">
|
---|
| 526 | <term><command>ldapdelete</command></term>
|
---|
| 527 | <listitem>
|
---|
[b5e36dd] | 528 | <para>
|
---|
| 529 | opens a connection to an LDAP server, binds and deletes
|
---|
| 530 | one or more entries.
|
---|
| 531 | </para>
|
---|
[814e53c] | 532 | <indexterm zone="openldap ldapdelete">
|
---|
| 533 | <primary sortas="b-ldapdelete">ldapdelete</primary>
|
---|
| 534 | </indexterm>
|
---|
| 535 | </listitem>
|
---|
| 536 | </varlistentry>
|
---|
| 537 |
|
---|
[c00932a] | 538 | <varlistentry id="ldapexop">
|
---|
| 539 | <term><command>ldapexop</command></term>
|
---|
| 540 | <listitem>
|
---|
[b5e36dd] | 541 | <para>
|
---|
[0d7900a] | 542 | issues the LDAP extended operation specified by
|
---|
[b5e36dd] | 543 | oid or one of the special keywords whoami,
|
---|
| 544 | cancel, or refresh.
|
---|
| 545 | </para>
|
---|
[c00932a] | 546 | <indexterm zone="openldap ldapexop">
|
---|
| 547 | <primary sortas="b-ldapexop">ldapexop</primary>
|
---|
| 548 | </indexterm>
|
---|
| 549 | </listitem>
|
---|
| 550 | </varlistentry>
|
---|
| 551 |
|
---|
[814e53c] | 552 | <varlistentry id="ldapmodify">
|
---|
| 553 | <term><command>ldapmodify</command></term>
|
---|
| 554 | <listitem>
|
---|
[b5e36dd] | 555 | <para>
|
---|
| 556 | opens a connection to an LDAP server, binds and modifies entries.
|
---|
| 557 | </para>
|
---|
[814e53c] | 558 | <indexterm zone="openldap ldapmodify">
|
---|
| 559 | <primary sortas="b-ldapmodify">ldapmodify</primary>
|
---|
| 560 | </indexterm>
|
---|
| 561 | </listitem>
|
---|
| 562 | </varlistentry>
|
---|
| 563 |
|
---|
| 564 | <varlistentry id="ldapmodrdn">
|
---|
| 565 | <term><command>ldapmodrdn</command></term>
|
---|
| 566 | <listitem>
|
---|
[b5e36dd] | 567 | <para>
|
---|
| 568 | opens a connection to an LDAP server, binds and modifies
|
---|
| 569 | the RDN of entries.
|
---|
| 570 | </para>
|
---|
[814e53c] | 571 | <indexterm zone="openldap ldapmodrdn">
|
---|
| 572 | <primary sortas="b-ldapmodrdn">ldapmodrdn</primary>
|
---|
| 573 | </indexterm>
|
---|
| 574 | </listitem>
|
---|
| 575 | </varlistentry>
|
---|
| 576 |
|
---|
| 577 | <varlistentry id="ldappasswd">
|
---|
| 578 | <term><command>ldappasswd</command></term>
|
---|
| 579 | <listitem>
|
---|
[b5e36dd] | 580 | <para>
|
---|
| 581 | is a tool used to set the password of an LDAP user.
|
---|
| 582 | </para>
|
---|
[814e53c] | 583 | <indexterm zone="openldap ldappasswd">
|
---|
| 584 | <primary sortas="b-ldappasswd">ldappasswd</primary>
|
---|
| 585 | </indexterm>
|
---|
| 586 | </listitem>
|
---|
| 587 | </varlistentry>
|
---|
| 588 |
|
---|
| 589 | <varlistentry id="ldapsearch">
|
---|
| 590 | <term><command>ldapsearch</command></term>
|
---|
| 591 | <listitem>
|
---|
[b5e36dd] | 592 | <para>
|
---|
| 593 | opens a connection to an LDAP server, binds and performs
|
---|
| 594 | a search using specified parameters.
|
---|
| 595 | </para>
|
---|
[814e53c] | 596 | <indexterm zone="openldap ldapsearch">
|
---|
| 597 | <primary sortas="b-ldapsearch">ldapsearch</primary>
|
---|
| 598 | </indexterm>
|
---|
| 599 | </listitem>
|
---|
| 600 | </varlistentry>
|
---|
| 601 |
|
---|
[c00932a] | 602 | <varlistentry id="ldapurl">
|
---|
| 603 | <term><command>ldapurl</command></term>
|
---|
| 604 | <listitem>
|
---|
[b5e36dd] | 605 | <para>
|
---|
[0d7900a] | 606 | is a command that allows to either compose or
|
---|
[b5e36dd] | 607 | decompose LDAP URIs.
|
---|
| 608 | </para>
|
---|
[c00932a] | 609 | <indexterm zone="openldap ldapurl">
|
---|
| 610 | <primary sortas="b-ldapurl">ldapurl</primary>
|
---|
| 611 | </indexterm>
|
---|
| 612 | </listitem>
|
---|
| 613 | </varlistentry>
|
---|
| 614 |
|
---|
[814e53c] | 615 | <varlistentry id="ldapwhoami">
|
---|
| 616 | <term><command>ldapwhoami</command></term>
|
---|
| 617 | <listitem>
|
---|
[b5e36dd] | 618 | <para>
|
---|
| 619 | opens a connection to an LDAP server, binds and displays
|
---|
| 620 | whoami information.
|
---|
| 621 | </para>
|
---|
[814e53c] | 622 | <indexterm zone="openldap ldapwhoami">
|
---|
| 623 | <primary sortas="b-ldapwhoami">ldapwhoami</primary>
|
---|
| 624 | </indexterm>
|
---|
| 625 | </listitem>
|
---|
| 626 | </varlistentry>
|
---|
| 627 |
|
---|
[c00932a] | 628 | <varlistentry id="slapacl">
|
---|
| 629 | <term><command>slapacl</command></term>
|
---|
| 630 | <listitem>
|
---|
[b5e36dd] | 631 | <para>
|
---|
[0d7900a] | 632 | is used to check the behavior of slapd by verifying
|
---|
| 633 | access to directory data according to the access control
|
---|
[b5e36dd] | 634 | list directives defined in its configuration.
|
---|
| 635 | </para>
|
---|
[c00932a] | 636 | <indexterm zone="openldap slapacl">
|
---|
| 637 | <primary sortas="b-slapacl">slapacl</primary>
|
---|
| 638 | </indexterm>
|
---|
| 639 | </listitem>
|
---|
| 640 | </varlistentry>
|
---|
| 641 |
|
---|
[814e53c] | 642 | <varlistentry id="slapadd">
|
---|
| 643 | <term><command>slapadd</command></term>
|
---|
| 644 | <listitem>
|
---|
[b5e36dd] | 645 | <para>
|
---|
| 646 | is used to add entries specified in LDAP Directory Interchange
|
---|
| 647 | Format (LDIF) to an LDAP database.
|
---|
| 648 | </para>
|
---|
[814e53c] | 649 | <indexterm zone="openldap slapadd">
|
---|
| 650 | <primary sortas="b-slapadd">slapadd</primary>
|
---|
| 651 | </indexterm>
|
---|
| 652 | </listitem>
|
---|
| 653 | </varlistentry>
|
---|
| 654 |
|
---|
[c00932a] | 655 | <varlistentry id="slapauth">
|
---|
| 656 | <term><command>slapauth</command></term>
|
---|
| 657 | <listitem>
|
---|
[b5e36dd] | 658 | <para>
|
---|
[0d7900a] | 659 | is used to check the behavior of the slapd
|
---|
[b5e36dd] | 660 | in mapping identities for authentication and
|
---|
| 661 | authorization purposes, as specified in slapd.conf.
|
---|
| 662 | </para>
|
---|
[c00932a] | 663 | <indexterm zone="openldap slapauth">
|
---|
| 664 | <primary sortas="b-slapauth">slapauth</primary>
|
---|
| 665 | </indexterm>
|
---|
| 666 | </listitem>
|
---|
| 667 | </varlistentry>
|
---|
| 668 |
|
---|
[814e53c] | 669 | <varlistentry id="slapcat">
|
---|
| 670 | <term><command>slapcat</command></term>
|
---|
| 671 | <listitem>
|
---|
[b5e36dd] | 672 | <para>
|
---|
| 673 | is used to generate an LDAP LDIF output based upon the
|
---|
| 674 | contents of a slapd database.
|
---|
| 675 | </para>
|
---|
[814e53c] | 676 | <indexterm zone="openldap slapcat">
|
---|
| 677 | <primary sortas="b-slapcat">slapcat</primary>
|
---|
| 678 | </indexterm>
|
---|
| 679 | </listitem>
|
---|
| 680 | </varlistentry>
|
---|
| 681 |
|
---|
| 682 | <varlistentry id="slapd">
|
---|
| 683 | <term><command>slapd</command></term>
|
---|
| 684 | <listitem>
|
---|
[b5e36dd] | 685 | <para>
|
---|
| 686 | is the standalone LDAP server.
|
---|
| 687 | </para>
|
---|
[814e53c] | 688 | <indexterm zone="openldap slapd">
|
---|
| 689 | <primary sortas="b-slapd">slapd</primary>
|
---|
| 690 | </indexterm>
|
---|
| 691 | </listitem>
|
---|
| 692 | </varlistentry>
|
---|
| 693 |
|
---|
| 694 | <varlistentry id="slapdn">
|
---|
| 695 | <term><command>slapdn</command></term>
|
---|
| 696 | <listitem>
|
---|
[b5e36dd] | 697 | <para>
|
---|
| 698 | checks a list of string-represented DNs based on schema syntax.
|
---|
| 699 | </para>
|
---|
[814e53c] | 700 | <indexterm zone="openldap slapdn">
|
---|
| 701 | <primary sortas="b-slapdn">slapdn</primary>
|
---|
| 702 | </indexterm>
|
---|
| 703 | </listitem>
|
---|
| 704 | </varlistentry>
|
---|
| 705 |
|
---|
| 706 | <varlistentry id="slapindex">
|
---|
| 707 | <term><command>slapindex</command></term>
|
---|
| 708 | <listitem>
|
---|
[b5e36dd] | 709 | <para>
|
---|
| 710 | is used to regenerate slapd indexes based upon the current
|
---|
| 711 | contents of a database.
|
---|
| 712 | </para>
|
---|
[814e53c] | 713 | <indexterm zone="openldap slapindex">
|
---|
| 714 | <primary sortas="b-slapindex">slapindex</primary>
|
---|
| 715 | </indexterm>
|
---|
| 716 | </listitem>
|
---|
| 717 | </varlistentry>
|
---|
| 718 |
|
---|
| 719 | <varlistentry id="slappasswd">
|
---|
| 720 | <term><command>slappasswd</command></term>
|
---|
| 721 | <listitem>
|
---|
[b5e36dd] | 722 | <para>
|
---|
| 723 | is an <application>OpenLDAP</application> password utility.
|
---|
| 724 | </para>
|
---|
[814e53c] | 725 | <indexterm zone="openldap slappasswd">
|
---|
| 726 | <primary sortas="b-slappasswd">slappasswd</primary>
|
---|
| 727 | </indexterm>
|
---|
| 728 | </listitem>
|
---|
| 729 | </varlistentry>
|
---|
| 730 |
|
---|
[c00932a] | 731 | <varlistentry id="slapschema">
|
---|
| 732 | <term><command>slapschema</command></term>
|
---|
| 733 | <listitem>
|
---|
[b5e36dd] | 734 | <para>
|
---|
[0d7900a] | 735 | is used to check schema compliance of the contents
|
---|
[b5e36dd] | 736 | of a slapd database.
|
---|
| 737 | </para>
|
---|
[c00932a] | 738 | <indexterm zone="openldap slapschema">
|
---|
| 739 | <primary sortas="b-slapschema">slapschema</primary>
|
---|
| 740 | </indexterm>
|
---|
| 741 | </listitem>
|
---|
| 742 | </varlistentry>
|
---|
| 743 |
|
---|
[814e53c] | 744 | <varlistentry id="slaptest">
|
---|
| 745 | <term><command>slaptest</command></term>
|
---|
| 746 | <listitem>
|
---|
[b5e36dd] | 747 | <para>
|
---|
| 748 | checks the sanity of the <filename>slapd.conf</filename> file.
|
---|
| 749 | </para>
|
---|
[814e53c] | 750 | <indexterm zone="openldap slaptest">
|
---|
| 751 | <primary sortas="b-slaptest">slaptest</primary>
|
---|
| 752 | </indexterm>
|
---|
| 753 | </listitem>
|
---|
| 754 | </varlistentry>
|
---|
| 755 |
|
---|
| 756 | <varlistentry id="liblber">
|
---|
[d6da5da] | 757 | <term><filename class="libraryfile">liblber.so</filename></term>
|
---|
[814e53c] | 758 | <listitem>
|
---|
[b5e36dd] | 759 | <para>
|
---|
[1ef8da9] | 760 | is a set of Lightweight Basic Encoding Rules routines. These
|
---|
[b5e36dd] | 761 | routines are used by the LDAP library routines to encode and decode
|
---|
| 762 | LDAP protocol elements using the (slightly simplified) Basic
|
---|
| 763 | Encoding Rules defined by LDAP. They are not normally used directly
|
---|
| 764 | by an LDAP application program except in the handling of controls
|
---|
| 765 | and extended operations.
|
---|
| 766 | </para>
|
---|
[814e53c] | 767 | <indexterm zone="openldap liblber">
|
---|
[c00932a] | 768 | <primary sortas="c-liblber">liblber.so</primary>
|
---|
[814e53c] | 769 | </indexterm>
|
---|
| 770 | </listitem>
|
---|
| 771 | </varlistentry>
|
---|
| 772 |
|
---|
| 773 | <varlistentry id="libldap">
|
---|
[d6da5da] | 774 | <term><filename class="libraryfile">libldap.so</filename></term>
|
---|
[814e53c] | 775 | <listitem>
|
---|
[b5e36dd] | 776 | <para>
|
---|
| 777 | supports the LDAP programs and provide functionality for
|
---|
| 778 | other programs interacting with LDAP.
|
---|
| 779 | </para>
|
---|
[814e53c] | 780 | <indexterm zone="openldap libldap">
|
---|
[c00932a] | 781 | <primary sortas="c-libldap">libldap.so</primary>
|
---|
[814e53c] | 782 | </indexterm>
|
---|
| 783 | </listitem>
|
---|
| 784 | </varlistentry>
|
---|
| 785 |
|
---|
| 786 | <varlistentry id="libldap_r">
|
---|
[d6da5da] | 787 | <term><filename class="libraryfile">libldap_r.so</filename></term>
|
---|
[814e53c] | 788 | <listitem>
|
---|
[b5e36dd] | 789 | <para>
|
---|
| 790 | contains the functions required by the LDAP programs to
|
---|
| 791 | produce the results from LDAP requests.
|
---|
| 792 | </para>
|
---|
[814e53c] | 793 | <indexterm zone="openldap libldap_r">
|
---|
[c00932a] | 794 | <primary sortas="c-libldap_r">libldap_r.so</primary>
|
---|
[814e53c] | 795 | </indexterm>
|
---|
| 796 | </listitem>
|
---|
| 797 | </varlistentry>
|
---|
| 798 |
|
---|
| 799 | </variablelist>
|
---|
| 800 |
|
---|
| 801 | </sect2>
|
---|
[9905a3c] | 802 |
|
---|
| 803 | </sect1>
|
---|