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