2004-06-13 13:38:30 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-06-13 13:38:30 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2020-09-03 20:43:44 +08:00
|
|
|
<!ENTITY openldap-download-http "https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-&openldap-version;.tgz">
|
2023-10-16 03:43:08 +08:00
|
|
|
<!ENTITY openldap-download-ftp " ">
|
2023-08-14 21:38:33 +08:00
|
|
|
<!ENTITY openldap-md5sum "5259e75484be71563e3f5c33d64a274d">
|
2021-10-12 21:48:57 +08:00
|
|
|
<!ENTITY openldap-size "6.2 MB">
|
2023-08-14 21:38:33 +08:00
|
|
|
<!ENTITY openldap-buildsize "60 MB (client and server)">
|
2023-02-14 23:43:53 +08:00
|
|
|
<!ENTITY openldap-time "0.4 SBU (client), 1.1 SBU (server)">
|
2004-06-13 13:38:30 +08:00
|
|
|
]>
|
|
|
|
|
2003-09-24 00:50:24 +08:00
|
|
|
<sect1 id="openldap" xreflabel="OpenLDAP-&openldap-version;">
|
2005-05-19 04:19:40 +08:00
|
|
|
<?dbhtml filename="openldap.html"?>
|
|
|
|
|
|
|
|
|
|
|
|
<title>OpenLDAP-&openldap-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="openldap">
|
|
|
|
<primary sortas="a-OpenLDAP">OpenLDAP</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to OpenLDAP</title>
|
|
|
|
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
The <application>OpenLDAP</application> package provides an open
|
|
|
|
source implementation of the Lightweight Directory Access Protocol.
|
|
|
|
</para>
|
|
|
|
|
2023-08-17 04:00:41 +08:00
|
|
|
&lfs120_checked;
|
2005-05-19 04:19:40 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&openldap-download-http;"/>
|
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&openldap-download-ftp;"/>
|
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &openldap-md5sum;
|
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
Download size: &openldap-size;
|
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &openldap-buildsize;
|
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &openldap-time;
|
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2012-04-07 05:59:24 +08:00
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
2010-11-15 21:56:05 +08:00
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
Required patch:
|
2022-05-05 18:39:27 +08:00
|
|
|
<ulink url="&patch-root;/openldap-&openldap-version;-consolidated-1.patch"/>
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2012-08-15 00:32:09 +08:00
|
|
|
</listitem>
|
2010-11-15 21:56:05 +08:00
|
|
|
</itemizedlist>
|
|
|
|
|
2005-05-19 04:19:40 +08:00
|
|
|
<bridgehead renderas="sect3">OpenLDAP Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para role="recommended">
|
2021-09-07 01:42:49 +08:00
|
|
|
<xref linkend="cyrus-sasl"/>
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para role="optional">
|
2017-06-04 22:55:44 +08:00
|
|
|
<xref linkend="gnutls"/>,
|
2015-03-24 07:20:43 +08:00
|
|
|
<xref linkend="pth"/>,
|
|
|
|
<xref linkend="unixodbc"/>,
|
2015-07-26 23:58:45 +08:00
|
|
|
<xref linkend="mariadb"/> or
|
|
|
|
<xref linkend="postgresql"/> or
|
2022-09-08 16:08:10 +08:00
|
|
|
<ulink url="https://www.mysql.com/">MySQL</ulink>,
|
2021-08-26 15:57:19 +08:00
|
|
|
<ulink url="http://www.openslp.org/">OpenSLP</ulink>,
|
|
|
|
<ulink url="https://docs.mongodb.com/manual/core/wiredtiger/">WiredTiger</ulink>, and
|
2018-08-17 10:20:56 +08:00
|
|
|
<xref linkend="db"/> (for slapd, but deprecated)
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of OpenLDAP</title>
|
|
|
|
|
2010-03-16 03:32:10 +08:00
|
|
|
<note>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
If you only need to install the client side <command>ldap*</command>
|
2015-03-27 00:14:06 +08:00
|
|
|
binaries, corresponding man pages, libraries and header files (referred
|
|
|
|
to as a <quote>client-only</quote> install), issue these commands
|
|
|
|
instead of the following ones (no test suite available):
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2010-03-16 03:32:10 +08:00
|
|
|
|
2022-05-05 18:39:27 +08:00
|
|
|
<screen role="nodump"><userinput>patch -Np1 -i ../openldap-&openldap-version;-consolidated-1.patch &&
|
2012-04-06 19:51:24 +08:00
|
|
|
autoconf &&
|
2014-10-04 05:15:58 +08:00
|
|
|
|
2023-11-09 22:07:04 +08:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--disable-static \
|
|
|
|
--enable-dynamic \
|
|
|
|
--disable-versioning \
|
|
|
|
--disable-debug \
|
2013-03-16 20:11:58 +08:00
|
|
|
--disable-slapd &&
|
2016-02-07 07:39:04 +08:00
|
|
|
|
2013-03-16 20:11:58 +08:00
|
|
|
make depend &&
|
2014-05-17 05:52:06 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Then, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2020-08-17 12:57:39 +08:00
|
|
|
<screen role="nodump"><userinput>make install</userinput></screen>
|
2013-10-30 18:09:40 +08:00
|
|
|
|
2010-03-16 03:32:10 +08:00
|
|
|
</note>
|
2015-07-26 23:58:45 +08:00
|
|
|
|
2013-05-06 02:02:40 +08:00
|
|
|
<para>
|
|
|
|
There should be a dedicated user and group to take control
|
|
|
|
of the <command>slapd</command> daemon after it is
|
|
|
|
started. Issue the following commands as the
|
|
|
|
<systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>groupadd -g 83 ldap &&
|
2015-08-18 02:30:55 +08:00
|
|
|
useradd -c "OpenLDAP Daemon Owner" \
|
|
|
|
-d /var/lib/openldap -u 83 \
|
|
|
|
-g ldap -s /bin/false ldap</userinput></screen>
|
2013-05-06 02:02:40 +08:00
|
|
|
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
Install <application>OpenLDAP</application> by
|
|
|
|
running the following commands:
|
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
|
2022-05-05 18:39:27 +08:00
|
|
|
<screen><userinput>patch -Np1 -i ../openldap-&openldap-version;-consolidated-1.patch &&
|
2012-04-06 19:51:24 +08:00
|
|
|
autoconf &&
|
2014-10-04 05:15:58 +08:00
|
|
|
|
2013-03-16 20:11:58 +08:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
2012-04-06 07:45:05 +08:00
|
|
|
--libexecdir=/usr/lib \
|
2013-03-16 20:11:58 +08:00
|
|
|
--disable-static \
|
2023-11-09 22:07:04 +08:00
|
|
|
--disable-versioning \
|
2013-03-16 20:11:58 +08:00
|
|
|
--disable-debug \
|
2017-06-04 22:55:44 +08:00
|
|
|
--with-tls=openssl \
|
2015-03-25 02:55:17 +08:00
|
|
|
--with-cyrus-sasl \
|
2023-02-14 23:43:53 +08:00
|
|
|
--without-systemd \
|
2013-03-16 20:11:58 +08:00
|
|
|
--enable-dynamic \
|
|
|
|
--enable-crypt \
|
|
|
|
--enable-spasswd \
|
2015-03-25 02:55:17 +08:00
|
|
|
--enable-slapd \
|
2013-03-16 20:11:58 +08:00
|
|
|
--enable-modules \
|
2016-10-12 20:23:02 +08:00
|
|
|
--enable-rlookups \
|
2012-04-06 07:45:05 +08:00
|
|
|
--enable-backends=mod \
|
2015-03-25 02:55:17 +08:00
|
|
|
--disable-sql \
|
2021-05-03 22:35:19 +08:00
|
|
|
--disable-wt \
|
2015-03-27 00:14:06 +08:00
|
|
|
--enable-overlays=mod &&
|
2015-03-25 02:55:17 +08:00
|
|
|
|
2004-06-13 13:38:30 +08:00
|
|
|
make depend &&
|
2006-10-19 15:24:37 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
2023-08-17 02:47:11 +08:00
|
|
|
The tests are fragile, and errors may cause the tests to abort
|
|
|
|
prior to finishing. Some errors may happen due to timing problems.
|
|
|
|
The tests take around an hour, and the time is CPU independent due
|
|
|
|
to delays in the tests. On most systems, the tests will run up to the
|
|
|
|
<filename>test065-proxyauth for mdb</filename> test.
|
2015-07-26 23:58:45 +08:00
|
|
|
To test the results, issue: <command>make test</command>.
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
|
|
|
|
<screen role="root"><userinput>make install &&
|
2007-09-08 03:13:53 +08:00
|
|
|
|
2018-10-12 01:13:31 +08:00
|
|
|
sed -e "s/\.la/.so/" -i /etc/openldap/slapd.{conf,ldif}{,.default} &&
|
|
|
|
|
2015-03-27 05:28:49 +08:00
|
|
|
install -v -dm700 -o ldap -g ldap /var/lib/openldap &&
|
2016-02-07 07:39:04 +08:00
|
|
|
|
2015-03-27 00:14:06 +08:00
|
|
|
install -v -dm700 -o ldap -g ldap /etc/openldap/slapd.d &&
|
2015-08-18 02:30:55 +08:00
|
|
|
chmod -v 640 /etc/openldap/slapd.{conf,ldif} &&
|
|
|
|
chown -v root:ldap /etc/openldap/slapd.{conf,ldif} &&
|
2013-05-06 02:02:40 +08:00
|
|
|
|
2015-08-18 02:30:55 +08:00
|
|
|
install -v -dm755 /usr/share/doc/openldap-&openldap-version; &&
|
|
|
|
cp -vfr doc/{drafts,rfc,guide} \
|
|
|
|
/usr/share/doc/openldap-&openldap-version;</userinput></screen>
|
2014-01-30 00:40:48 +08:00
|
|
|
|
2005-05-19 04:19:40 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2012-04-06 07:45:05 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2012-05-11 19:13:04 +08:00
|
|
|
href="../../xincludes/static-libraries.xml"/>
|
|
|
|
|
|
|
|
<para>
|
2013-10-30 18:09:40 +08:00
|
|
|
<parameter>--disable-debug</parameter>: This switch disables
|
2012-05-11 19:13:04 +08:00
|
|
|
the debugging code in <application>OpenLDAP</application>.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2013-10-30 18:09:40 +08:00
|
|
|
<parameter>--enable-dynamic</parameter>: This switch forces the
|
2012-05-11 19:13:04 +08:00
|
|
|
<application>OpenLDAP</application> libraries to be dynamically
|
|
|
|
linked to the executable programs.
|
|
|
|
</para>
|
|
|
|
|
2021-05-03 22:35:19 +08:00
|
|
|
<para>
|
2021-09-07 01:42:49 +08:00
|
|
|
<parameter>--enable-versioning</parameter>: This switch enables
|
2021-05-03 22:35:19 +08:00
|
|
|
symbol versioning in the <application>OpenLDAP</application> libraries.
|
2021-09-07 01:42:49 +08:00
|
|
|
Without this, some applications might generate a warning about missing symbol versions.
|
2021-05-03 22:35:19 +08:00
|
|
|
</para>
|
|
|
|
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
2020-04-30 02:15:27 +08:00
|
|
|
<parameter>--enable-crypt</parameter>: This switch enables using
|
2012-05-11 19:13:04 +08:00
|
|
|
<command>crypt(3)</command> passwords.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2013-10-30 18:09:40 +08:00
|
|
|
<parameter>--enable-spasswd</parameter>: This switch enables
|
2013-03-16 20:11:58 +08:00
|
|
|
<application>SASL</application> password verification.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2013-10-30 18:09:40 +08:00
|
|
|
<parameter>--enable-modules</parameter>: This switch enables dynamic
|
2012-05-11 19:13:04 +08:00
|
|
|
module support.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2013-10-30 18:09:40 +08:00
|
|
|
<parameter>--enable-rlookups</parameter>: This switch enables
|
2012-05-11 19:13:04 +08:00
|
|
|
reverse lookups of client hostnames.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2013-10-30 18:09:40 +08:00
|
|
|
<parameter>--enable-backends</parameter>: This switch enables
|
2012-05-11 19:13:04 +08:00
|
|
|
all available backends.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2013-10-30 18:09:40 +08:00
|
|
|
<parameter>--enable-overlays</parameter>: This switch enables
|
2012-05-11 19:13:04 +08:00
|
|
|
all available overlays.
|
|
|
|
</para>
|
|
|
|
|
2022-07-22 01:26:27 +08:00
|
|
|
<!--
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
2022-07-22 01:26:27 +08:00
|
|
|
<parameter>- -disable-ndb</parameter>: This switch disables
|
2013-02-12 02:51:17 +08:00
|
|
|
<application>MySQL</application> NDB Cluster backend
|
2012-05-11 19:13:04 +08:00
|
|
|
which causes configure to fail if
|
|
|
|
<application>MySQL</application> is present.
|
|
|
|
</para>
|
2022-07-22 01:26:27 +08:00
|
|
|
-->
|
2012-05-11 19:13:04 +08:00
|
|
|
|
|
|
|
<para>
|
2013-10-30 18:09:40 +08:00
|
|
|
<parameter>--disable-sql</parameter>: This switch explicitly
|
2012-05-11 19:13:04 +08:00
|
|
|
disables the SQL backend. Omit this switch if a SQL server is
|
|
|
|
installed and you are going to use a SQL backend.
|
|
|
|
</para>
|
|
|
|
|
2021-05-03 22:35:19 +08:00
|
|
|
<para>
|
|
|
|
<parameter>--disable-wt</parameter>: This switch explicitly
|
|
|
|
disables the WiredTiger backend. Omit this switch if WiredTiger is
|
|
|
|
installed and you are going to use a WiredTiger backend.
|
|
|
|
</para>
|
|
|
|
|
2014-03-04 08:39:21 +08:00
|
|
|
<para>
|
|
|
|
<parameter>--libexecdir=/usr/lib</parameter>: This switch controls where
|
|
|
|
the <filename class="directory">/usr/lib/openldap</filename> directory is
|
|
|
|
installed. Everything in that directory is a library, so it belongs under
|
|
|
|
<filename class="directory">/usr/lib</filename> instead of
|
|
|
|
<filename class="directory">/usr/libexec</filename>.
|
|
|
|
</para>
|
|
|
|
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
2013-03-16 20:11:58 +08:00
|
|
|
<option>--enable-slp</option>: This switch enables
|
|
|
|
SLPv2 support. Use it if you have installed
|
2012-05-11 19:13:04 +08:00
|
|
|
<ulink url="http://www.openslp.org/">OpenSLP</ulink>.
|
|
|
|
</para>
|
2015-07-26 23:58:45 +08:00
|
|
|
|
2005-12-15 04:27:15 +08:00
|
|
|
<note>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
You can run <command>./configure --help</command> to see if there
|
2013-03-16 20:11:58 +08:00
|
|
|
are other switch you can pass to the <command>configure</command>
|
2012-05-11 19:13:04 +08:00
|
|
|
command to enable other options or dependency packages.
|
|
|
|
</para>
|
2005-12-15 04:27:15 +08:00
|
|
|
</note>
|
|
|
|
|
2015-03-27 05:28:49 +08:00
|
|
|
<para>
|
|
|
|
<command>install ...</command>, <command>chown ...</command>,
|
|
|
|
and <command>chmod ...</command>:
|
|
|
|
Having slapd configuration files and ldap databases in /var/lib/openldap
|
|
|
|
readable by anyone is a SECURITY ISSUE, especially since a file stores the
|
|
|
|
admin password in PLAIN TEXT. That's why mode 640 and root:ldap ownership
|
|
|
|
were used. The owner is root, so only root can modify the file, and group is
|
|
|
|
ldap, so that the group which owns slapd daemon could read but not modify
|
2015-07-26 23:58:45 +08:00
|
|
|
the file in case of a security breach.
|
2015-03-27 05:28:49 +08:00
|
|
|
</para>
|
|
|
|
|
2005-05-19 04:19:40 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring OpenLDAP</title>
|
|
|
|
|
|
|
|
<sect3 id="openldap-config">
|
|
|
|
<title>Config Files</title>
|
|
|
|
|
2018-03-11 23:37:18 +08:00
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
For LDAP client: <filename>/etc/openldap/ldap.conf</filename> and
|
|
|
|
<filename>~/.ldaprc</filename>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
For LDAP server, two configuration mechanisms are used:
|
|
|
|
a legacy <filename>/etc/openldap/slapd.conf</filename>
|
|
|
|
configuration file and the recommended
|
|
|
|
<emphasis>slapd-config</emphasis> system, using an LDIF database
|
|
|
|
stored in
|
|
|
|
<filename class="directory">/etc/openldap/slapd.d</filename>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
2005-05-19 04:19:40 +08:00
|
|
|
|
|
|
|
<indexterm zone="openldap openldap-config">
|
2018-03-11 23:37:18 +08:00
|
|
|
<primary
|
|
|
|
sortas="e-etc-openldap-ldap.conf">/etc/openldap/ldap.conf</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<indexterm zone="openldap openldap-config">
|
|
|
|
<primary sortas="e-AA.ldaprc">~/.ldaprc</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<indexterm zone="openldap openldap-config">
|
|
|
|
<primary
|
|
|
|
sortas="e-etc-openldap-slapd.conf">/etc/openldap/slapd.conf</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<indexterm zone="openldap openldap-config">
|
|
|
|
<primary
|
|
|
|
sortas="e-etc-openldap-slapd.d">/etc/openldap/slapd.d/*</primary>
|
2005-05-19 04:19:40 +08:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3>
|
|
|
|
<title>Configuration Information</title>
|
|
|
|
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
Configuring the <command>slapd</command> servers can be complex.
|
|
|
|
Securing the LDAP directory, especially if you are storing non-public
|
2018-03-11 23:37:18 +08:00
|
|
|
data such as password databases, can also be a challenging task. In
|
|
|
|
order to set up <application>OpenLDAP</application>, you'll need to
|
2021-09-07 01:42:49 +08:00
|
|
|
modify either the <filename>/etc/openldap/slapd.conf</filename>
|
2018-03-11 23:37:18 +08:00
|
|
|
file (old method), or the <filename>/etc/openldap/slapd.ldif</filename>
|
2020-09-12 04:40:41 +08:00
|
|
|
file and then use <command>ldapadd</command> to create the LDAP
|
2018-03-11 23:37:18 +08:00
|
|
|
configuration database in
|
|
|
|
<filename class="directory">/etc/openldap/slapd.d</filename>
|
|
|
|
(recommended by the OpenLDAP documentation).
|
|
|
|
</para>
|
2018-09-24 01:22:50 +08:00
|
|
|
<!--
|
2018-03-11 23:37:18 +08:00
|
|
|
<para>
|
|
|
|
The shipped configuration files suppose the loadable modules are
|
|
|
|
installed with their <filename class="extension">.la</filename>
|
|
|
|
files, which may not be true if you remove those files as instructed
|
|
|
|
in <xref linkend="libtool"/>. If this is the case, issue, as the
|
|
|
|
<systemitem class="username">root</systemitem> user:
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
|
2018-03-24 01:18:12 +08:00
|
|
|
<screen role="root"><userinput>sed 's/\.la$/.so/' -i /etc/openldap/slapd.{conf,ldif}{,.default}</userinput></screen>
|
2018-09-24 01:22:50 +08:00
|
|
|
-->
|
2019-09-16 17:00:20 +08:00
|
|
|
<warning>
|
2016-02-24 22:46:12 +08:00
|
|
|
<para>
|
|
|
|
The instructions above install an empty LDAP structure and a default
|
|
|
|
<filename>/etc/openldap/slapd.conf</filename> file, which are
|
|
|
|
suitable for testing the build and other packages using LDAP. Do not
|
|
|
|
use them on a production server.
|
|
|
|
</para>
|
2019-09-16 17:00:20 +08:00
|
|
|
</warning>
|
2005-05-19 04:19:40 +08:00
|
|
|
|
2012-08-01 20:04:22 +08:00
|
|
|
<para>
|
|
|
|
Resources to assist you with topics such as choosing a directory
|
2018-03-11 23:37:18 +08:00
|
|
|
configuration, backend and database definitions, access control
|
|
|
|
settings, running as a user other than
|
|
|
|
<systemitem class="username">root</systemitem>
|
2012-08-01 20:04:22 +08:00
|
|
|
and setting a <command>chroot</command> environment include:
|
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
|
2013-03-16 20:11:58 +08:00
|
|
|
<itemizedlist spacing="compact">
|
2005-05-19 04:19:40 +08:00
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
2018-03-11 23:37:18 +08:00
|
|
|
The <emphasis role="strong">slapd(8)</emphasis> man page.
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
2018-03-11 23:37:18 +08:00
|
|
|
The <emphasis role="strong">slapd.conf(5)</emphasis> and
|
|
|
|
<emphasis role="strong">slapd-config(5)</emphasis> man pages.
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
2022-01-22 00:42:21 +08:00
|
|
|
The <ulink url="https://www.openldap.org/doc/admin26/"> OpenLDAP 2.6
|
2015-07-26 23:58:45 +08:00
|
|
|
Administrator's Guide</ulink> (also installed locally in
|
2018-03-11 23:37:18 +08:00
|
|
|
<filename class="directory">
|
2012-05-11 19:13:04 +08:00
|
|
|
/usr/share/doc/openldap-&openldap-version;/guide/admin</filename>).
|
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
Documents located at
|
2022-09-08 16:08:10 +08:00
|
|
|
<ulink url="https://www.openldap.org/pub/"/>.
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
2020-09-12 04:40:41 +08:00
|
|
|
<!--
|
2005-05-19 04:19:40 +08:00
|
|
|
<sect3>
|
|
|
|
<title>Mozilla Address Directory</title>
|
|
|
|
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
By default, LDAPv2 support is disabled in the
|
|
|
|
<filename>slapd.conf</filename> file. Once the database is properly
|
|
|
|
set up and <application>Mozilla</application> is configured to use the
|
|
|
|
directory, you must add <option>allow bind_v2</option> to the
|
|
|
|
<filename>slapd.conf</filename> file.
|
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
|
|
|
|
</sect3>
|
2020-09-12 04:40:41 +08:00
|
|
|
-->
|
2005-05-19 04:19:40 +08:00
|
|
|
|
|
|
|
<sect3 id="openldap-init">
|
2016-06-12 02:14:42 +08:00
|
|
|
<title><phrase revision="sysv">Boot Script</phrase>
|
|
|
|
<phrase revision="systemd">Systemd Unit</phrase></title>
|
2005-05-19 04:19:40 +08:00
|
|
|
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
To automate the startup of the LDAP server at system bootup,
|
2016-06-12 02:14:42 +08:00
|
|
|
install the
|
|
|
|
<phrase revision="sysv"><filename>/etc/rc.d/init.d/slapd</filename>
|
|
|
|
init script</phrase>
|
|
|
|
<phrase revision="systemd"><filename>slapd.service</filename>
|
|
|
|
unit</phrase> included in the
|
|
|
|
<xref linkend="bootscripts" revision="sysv"/>
|
|
|
|
<xref linkend="systemd-units" revision="systemd"/>
|
|
|
|
package using the following command:
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
|
|
|
|
<indexterm zone="openldap openldap-init">
|
2012-08-14 23:57:54 +08:00
|
|
|
<primary sortas="f-slapd">slapd</primary>
|
2005-05-19 04:19:40 +08:00
|
|
|
</indexterm>
|
|
|
|
|
2012-08-14 23:57:54 +08:00
|
|
|
<screen role="root"><userinput>make install-slapd</userinput></screen>
|
2005-05-19 04:19:40 +08:00
|
|
|
|
|
|
|
<note>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
2019-09-16 17:00:20 +08:00
|
|
|
You'll need to modify
|
2016-06-12 02:14:42 +08:00
|
|
|
<phrase revision="sysv"><filename>/etc/sysconfig/slapd</filename></phrase>
|
|
|
|
<phrase revision="systemd"><filename>/etc/default/slapd</filename></phrase>
|
|
|
|
to include the parameters needed for your specific configuration. See
|
|
|
|
the <command>slapd</command> man page for parameter information.
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
</note>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3>
|
|
|
|
<title>Testing the Configuration</title>
|
|
|
|
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
2016-06-12 02:14:42 +08:00
|
|
|
Start the LDAP server using
|
|
|
|
<phrase revision="sysv">the init script:</phrase>
|
|
|
|
<phrase revision="systemd">systemctl:</phrase>
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
|
2016-06-12 02:14:42 +08:00
|
|
|
<screen role="root" revision="sysv"><userinput>/etc/rc.d/init.d/slapd start</userinput></screen>
|
|
|
|
|
|
|
|
<screen role="root" revision="systemd"><userinput>systemctl start slapd</userinput></screen>
|
2005-05-19 04:19:40 +08:00
|
|
|
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
Verify access to the LDAP server with the following command:
|
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
|
|
|
|
<screen><userinput>ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts</userinput></screen>
|
|
|
|
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
The expected result is:
|
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
|
2004-06-13 13:38:30 +08:00
|
|
|
<screen><computeroutput># extended LDIF
|
|
|
|
#
|
|
|
|
# LDAPv3
|
2015-03-27 05:28:49 +08:00
|
|
|
# base <> with scope baseObject
|
2004-06-13 13:38:30 +08:00
|
|
|
# filter: (objectclass=*)
|
2005-05-19 04:19:40 +08:00
|
|
|
# requesting: namingContexts
|
2004-06-13 13:38:30 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
dn:
|
|
|
|
namingContexts: dc=my-domain,dc=com
|
|
|
|
|
|
|
|
# search result
|
|
|
|
search: 2
|
|
|
|
result: 0 Success
|
|
|
|
|
|
|
|
# numResponses: 2
|
|
|
|
# numEntries: 1</computeroutput></screen>
|
|
|
|
|
2005-05-19 04:19:40 +08:00
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<seg>
|
|
|
|
ldapadd, ldapcompare, ldapdelete, ldapexop, ldapmodify, ldapmodrdn,
|
2021-08-26 15:57:19 +08:00
|
|
|
ldappasswd, ldapsearch, ldapurl, ldapvc, ldapwhoami, slapacl, slapadd,
|
|
|
|
slapauth, slapcat, slapd, slapdn, slapindex, slapmodify, slappasswd,
|
|
|
|
slapschema, and slaptest
|
2012-05-11 19:13:04 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
2021-08-26 15:57:19 +08:00
|
|
|
liblber.so, libldap.so, and several under /usr/lib/openldap
|
2012-05-11 19:13:04 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
2015-12-02 02:27:03 +08:00
|
|
|
/etc/openldap,
|
|
|
|
/{usr,var}/lib/openldap, and
|
2015-08-18 02:30:55 +08:00
|
|
|
/usr/share/doc/openldap-&openldap-version;
|
2012-05-11 19:13:04 +08:00
|
|
|
</seg>
|
2005-05-19 04:19:40 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="ldapadd">
|
|
|
|
<term><command>ldapadd</command></term>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
opens a connection to an LDAP server, binds and adds entries
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
<indexterm zone="openldap ldapadd">
|
|
|
|
<primary sortas="b-ldapadd">ldapadd</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="ldapcompare">
|
|
|
|
<term><command>ldapcompare</command></term>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
opens a connection to an LDAP server, binds and performs
|
2021-02-19 23:20:16 +08:00
|
|
|
a compare using specified parameters
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
<indexterm zone="openldap ldapcompare">
|
|
|
|
<primary sortas="b-ldapcompare">ldapcompare</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="ldapdelete">
|
|
|
|
<term><command>ldapdelete</command></term>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
opens a connection to an LDAP server, binds and deletes
|
2021-02-19 23:20:16 +08:00
|
|
|
one or more entries
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
<indexterm zone="openldap ldapdelete">
|
|
|
|
<primary sortas="b-ldapdelete">ldapdelete</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2012-04-06 07:45:05 +08:00
|
|
|
<varlistentry id="ldapexop">
|
|
|
|
<term><command>ldapexop</command></term>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
2013-02-12 02:51:17 +08:00
|
|
|
issues the LDAP extended operation specified by
|
2012-05-11 19:13:04 +08:00
|
|
|
oid or one of the special keywords whoami,
|
2021-02-19 23:20:16 +08:00
|
|
|
cancel, or refresh
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2012-04-06 07:45:05 +08:00
|
|
|
<indexterm zone="openldap ldapexop">
|
|
|
|
<primary sortas="b-ldapexop">ldapexop</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-05-19 04:19:40 +08:00
|
|
|
<varlistentry id="ldapmodify">
|
|
|
|
<term><command>ldapmodify</command></term>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
opens a connection to an LDAP server, binds and modifies entries
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
<indexterm zone="openldap ldapmodify">
|
|
|
|
<primary sortas="b-ldapmodify">ldapmodify</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="ldapmodrdn">
|
|
|
|
<term><command>ldapmodrdn</command></term>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
opens a connection to an LDAP server, binds and modifies
|
2021-02-19 23:20:16 +08:00
|
|
|
the RDN of entries
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
<indexterm zone="openldap ldapmodrdn">
|
|
|
|
<primary sortas="b-ldapmodrdn">ldapmodrdn</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="ldappasswd">
|
|
|
|
<term><command>ldappasswd</command></term>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
is a tool used to set the password of an LDAP user
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
<indexterm zone="openldap ldappasswd">
|
|
|
|
<primary sortas="b-ldappasswd">ldappasswd</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="ldapsearch">
|
|
|
|
<term><command>ldapsearch</command></term>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
opens a connection to an LDAP server, binds and performs
|
2021-02-19 23:20:16 +08:00
|
|
|
a search using specified parameters
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
<indexterm zone="openldap ldapsearch">
|
|
|
|
<primary sortas="b-ldapsearch">ldapsearch</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2012-04-06 07:45:05 +08:00
|
|
|
<varlistentry id="ldapurl">
|
|
|
|
<term><command>ldapurl</command></term>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
2013-02-12 02:51:17 +08:00
|
|
|
is a command that allows to either compose or
|
2021-02-19 23:20:16 +08:00
|
|
|
decompose LDAP URIs
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2012-04-06 07:45:05 +08:00
|
|
|
<indexterm zone="openldap ldapurl">
|
|
|
|
<primary sortas="b-ldapurl">ldapurl</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2021-08-26 15:57:19 +08:00
|
|
|
<varlistentry id="ldapvc">
|
|
|
|
<term><command>ldapvc</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
verifies LDAP credentials
|
|
|
|
</para>
|
|
|
|
<indexterm zone="openldap ldapvc">
|
|
|
|
<primary sortas="b-ldapvc">ldapvc</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-05-19 04:19:40 +08:00
|
|
|
<varlistentry id="ldapwhoami">
|
|
|
|
<term><command>ldapwhoami</command></term>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
opens a connection to an LDAP server, binds and displays
|
2021-02-19 23:20:16 +08:00
|
|
|
whoami information
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
<indexterm zone="openldap ldapwhoami">
|
|
|
|
<primary sortas="b-ldapwhoami">ldapwhoami</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2012-04-06 07:45:05 +08:00
|
|
|
<varlistentry id="slapacl">
|
|
|
|
<term><command>slapacl</command></term>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
2013-02-12 02:51:17 +08:00
|
|
|
is used to check the behavior of slapd by verifying
|
|
|
|
access to directory data according to the access control
|
2021-02-19 23:20:16 +08:00
|
|
|
list directives defined in its configuration
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2012-04-06 07:45:05 +08:00
|
|
|
<indexterm zone="openldap slapacl">
|
|
|
|
<primary sortas="b-slapacl">slapacl</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-05-19 04:19:40 +08:00
|
|
|
<varlistentry id="slapadd">
|
|
|
|
<term><command>slapadd</command></term>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
is used to add entries specified in LDAP Directory Interchange
|
2021-02-19 23:20:16 +08:00
|
|
|
Format (LDIF) to an LDAP database
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
<indexterm zone="openldap slapadd">
|
|
|
|
<primary sortas="b-slapadd">slapadd</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2012-04-06 07:45:05 +08:00
|
|
|
<varlistentry id="slapauth">
|
|
|
|
<term><command>slapauth</command></term>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
2013-02-12 02:51:17 +08:00
|
|
|
is used to check the behavior of the slapd
|
2012-05-11 19:13:04 +08:00
|
|
|
in mapping identities for authentication and
|
2021-02-19 23:20:16 +08:00
|
|
|
authorization purposes, as specified in slapd.conf
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2012-04-06 07:45:05 +08:00
|
|
|
<indexterm zone="openldap slapauth">
|
|
|
|
<primary sortas="b-slapauth">slapauth</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-05-19 04:19:40 +08:00
|
|
|
<varlistentry id="slapcat">
|
|
|
|
<term><command>slapcat</command></term>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
is used to generate an LDAP LDIF output based upon the
|
2021-02-19 23:20:16 +08:00
|
|
|
contents of a slapd database
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
<indexterm zone="openldap slapcat">
|
|
|
|
<primary sortas="b-slapcat">slapcat</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="slapd">
|
|
|
|
<term><command>slapd</command></term>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
is the standalone LDAP server
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
<indexterm zone="openldap slapd">
|
|
|
|
<primary sortas="b-slapd">slapd</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="slapdn">
|
|
|
|
<term><command>slapdn</command></term>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
checks a list of string-represented DNs based on schema syntax
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
<indexterm zone="openldap slapdn">
|
|
|
|
<primary sortas="b-slapdn">slapdn</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="slapindex">
|
|
|
|
<term><command>slapindex</command></term>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
is used to regenerate slapd indexes based upon the current
|
2021-02-19 23:20:16 +08:00
|
|
|
contents of a database
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
<indexterm zone="openldap slapindex">
|
|
|
|
<primary sortas="b-slapindex">slapindex</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2021-08-26 15:57:19 +08:00
|
|
|
<varlistentry id="slapmodify">
|
|
|
|
<term><command>slapmodify</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
modifies entries in a slapd database
|
|
|
|
</para>
|
|
|
|
<indexterm zone="openldap slapmodify">
|
|
|
|
<primary sortas="b-slapmodify">slapmodify</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-05-19 04:19:40 +08:00
|
|
|
<varlistentry id="slappasswd">
|
|
|
|
<term><command>slappasswd</command></term>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
is an <application>OpenLDAP</application> password utility
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
<indexterm zone="openldap slappasswd">
|
|
|
|
<primary sortas="b-slappasswd">slappasswd</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2012-04-06 07:45:05 +08:00
|
|
|
<varlistentry id="slapschema">
|
|
|
|
<term><command>slapschema</command></term>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
2013-02-12 02:51:17 +08:00
|
|
|
is used to check schema compliance of the contents
|
2021-02-19 23:20:16 +08:00
|
|
|
of a slapd database
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2012-04-06 07:45:05 +08:00
|
|
|
<indexterm zone="openldap slapschema">
|
|
|
|
<primary sortas="b-slapschema">slapschema</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-05-19 04:19:40 +08:00
|
|
|
<varlistentry id="slaptest">
|
|
|
|
<term><command>slaptest</command></term>
|
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
checks the sanity of the <filename>slapd.conf</filename> file
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
<indexterm zone="openldap slaptest">
|
|
|
|
<primary sortas="b-slaptest">slaptest</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="liblber">
|
2013-03-16 20:11:58 +08:00
|
|
|
<term><filename class="libraryfile">liblber.so</filename></term>
|
2005-05-19 04:19:40 +08:00
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
2012-08-15 00:32:09 +08:00
|
|
|
is a set of Lightweight Basic Encoding Rules routines. These
|
2012-05-11 19:13:04 +08:00
|
|
|
routines are used by the LDAP library routines to encode and decode
|
|
|
|
LDAP protocol elements using the (slightly simplified) Basic
|
|
|
|
Encoding Rules defined by LDAP. They are not normally used directly
|
|
|
|
by an LDAP application program except in the handling of controls
|
2021-02-19 23:20:16 +08:00
|
|
|
and extended operations
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
<indexterm zone="openldap liblber">
|
2012-04-06 07:45:05 +08:00
|
|
|
<primary sortas="c-liblber">liblber.so</primary>
|
2005-05-19 04:19:40 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libldap">
|
2013-03-16 20:11:58 +08:00
|
|
|
<term><filename class="libraryfile">libldap.so</filename></term>
|
2005-05-19 04:19:40 +08:00
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
supports the LDAP programs and provide functionality for
|
2021-02-19 23:20:16 +08:00
|
|
|
other programs interacting with LDAP
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
<indexterm zone="openldap libldap">
|
2012-04-06 07:45:05 +08:00
|
|
|
<primary sortas="c-libldap">libldap.so</primary>
|
2005-05-19 04:19:40 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2021-08-26 15:57:19 +08:00
|
|
|
<!--
|
2005-05-19 04:19:40 +08:00
|
|
|
<varlistentry id="libldap_r">
|
2013-03-16 20:11:58 +08:00
|
|
|
<term><filename class="libraryfile">libldap_r.so</filename></term>
|
2005-05-19 04:19:40 +08:00
|
|
|
<listitem>
|
2012-05-11 19:13:04 +08:00
|
|
|
<para>
|
|
|
|
contains the functions required by the LDAP programs to
|
2021-02-19 23:20:16 +08:00
|
|
|
produce the results from LDAP requests
|
2012-05-11 19:13:04 +08:00
|
|
|
</para>
|
2005-05-19 04:19:40 +08:00
|
|
|
<indexterm zone="openldap libldap_r">
|
2012-04-06 07:45:05 +08:00
|
|
|
<primary sortas="c-libldap_r">libldap_r.so</primary>
|
2005-05-19 04:19:40 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2021-08-26 15:57:19 +08:00
|
|
|
-->
|
2005-05-19 04:19:40 +08:00
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2003-02-01 09:04:55 +08:00
|
|
|
|
|
|
|
</sect1>
|