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