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