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