[0931098] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY openldap-download-http "http://gd.tuwien.ac.at/infosys/network/OpenLDAP/openldap-release/openldap-&openldap-version;.tgz">
|
---|
| 8 | <!ENTITY openldap-download-ftp "ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-&openldap-version;.tgz">
|
---|
| 9 | <!ENTITY openldap-size "2.0 MB">
|
---|
| 10 | <!ENTITY openldap-buildsize "116 MB">
|
---|
| 11 | <!ENTITY openldap-time "7.52 SBU">
|
---|
| 12 |
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
[9a9a0fec] | 15 | <sect1 id="openldap" xreflabel="OpenLDAP-&openldap-version;">
|
---|
[00bb024c] | 16 | <?dbhtml filename="openldap.html"?>
|
---|
[9a9a0fec] | 17 | <title>Open<acronym>LDAP</acronym>-&openldap-version;</title>
|
---|
[9905a3c] | 18 |
|
---|
[0931098] | 19 | <sect2>
|
---|
| 20 | <title>Introduction to <application>Open<acronym>LDAP</acronym></application></title>
|
---|
| 21 |
|
---|
| 22 | <para>The <application>Open<acronym>LDAP</acronym></application> package
|
---|
| 23 | provides an open source implementation of the Lightweight Directory
|
---|
| 24 | Access Protocol.</para>
|
---|
| 25 |
|
---|
| 26 | <sect3><title>Package information</title>
|
---|
| 27 | <itemizedlist spacing='compact'>
|
---|
| 28 | <listitem><para>Download (HTTP): <ulink url="&openldap-download-http;"/></para></listitem>
|
---|
| 29 | <listitem><para>Download (FTP): <ulink url="&openldap-download-ftp;"/></para></listitem>
|
---|
| 30 | <listitem><para>Download size: &openldap-size;</para></listitem>
|
---|
| 31 | <listitem><para>Estimated Disk space required: &openldap-buildsize;</para></listitem>
|
---|
| 32 | <listitem><para>Estimated build time: &openldap-time;</para></listitem></itemizedlist>
|
---|
| 33 | </sect3>
|
---|
| 34 |
|
---|
| 35 | <sect3><title><application>Open<acronym>LDAP</acronym></application> dependencies</title>
|
---|
| 36 | <sect4><title>Required</title>
|
---|
| 37 | <para><xref linkend="db"/>
|
---|
| 38 | </para></sect4>
|
---|
| 39 | <sect4><title>Optional</title>
|
---|
| 40 | <para>
|
---|
| 41 | <xref linkend="openssl"/>,
|
---|
| 42 | <xref linkend="gdbm"/>,
|
---|
| 43 | <xref linkend="tcpwrappers"/>,
|
---|
[957e607d] | 44 | <xref linkend="cyrus-sasl"/> and
|
---|
[0931098] | 45 | <xref linkend="heimdal"/> or
|
---|
[957e607d] | 46 | <xref linkend="mitkrb"/>
|
---|
[0931098] | 47 | </para></sect4>
|
---|
| 48 | </sect3>
|
---|
| 49 |
|
---|
| 50 | </sect2>
|
---|
| 51 |
|
---|
| 52 | <sect2>
|
---|
| 53 | <title>Installation of <application>Open<acronym>LDAP</acronym></application></title>
|
---|
| 54 |
|
---|
| 55 | <para>Install <application>Open<acronym>LDAP</acronym></application> by
|
---|
| 56 | running the following commands:</para>
|
---|
| 57 |
|
---|
| 58 | <screen><userinput><command>./configure --prefix=/usr --libexecdir=/usr/sbin \
|
---|
| 59 | --sysconfdir=/etc --localstatedir=/var/lib \
|
---|
| 60 | --disable-debug --enable-ldbm &&
|
---|
| 61 | make depend &&
|
---|
| 62 | make &&
|
---|
| 63 | make test &&
|
---|
| 64 | make install</command></userinput></screen>
|
---|
| 65 |
|
---|
| 66 | </sect2>
|
---|
| 67 |
|
---|
| 68 | <sect2>
|
---|
| 69 | <title>Command explanations</title>
|
---|
| 70 |
|
---|
| 71 | <para><parameter>--sysconfdir=/etc</parameter>: Sets the configuration file directory to
|
---|
| 72 | avoid the default of <filename class="directory">/usr/etc</filename>.</para>
|
---|
| 73 |
|
---|
| 74 | <para><parameter>--libexecdir=/usr/sbin</parameter>: Puts the server executables in
|
---|
| 75 | <filename class="directory">/usr/sbin</filename> instead of <filename
|
---|
| 76 | class="directory">/usr/libexec</filename>.</para>
|
---|
| 77 |
|
---|
| 78 | <para><option>--enable-ldbm</option>: Build <command>slapd</command>
|
---|
| 79 | with primary database back end using either <application>Berkeley
|
---|
| 80 | DB</application> or
|
---|
| 81 | <application><acronym>GNU</acronym> Database Manager</application>.</para>
|
---|
| 82 |
|
---|
| 83 | <para><option>--disable-debug</option>: Disable debugging code.</para>
|
---|
| 84 |
|
---|
| 85 | <para><command>make test</command>: Validate correct build of the package.</para>
|
---|
| 86 |
|
---|
| 87 | </sect2>
|
---|
| 88 |
|
---|
| 89 | <sect2>
|
---|
| 90 | <title>Configuring Open<acronym>LDAP</acronym></title>
|
---|
| 91 |
|
---|
| 92 | <sect3><title>Config files</title>
|
---|
| 93 | <para><filename>/etc/openldap/*</filename></para>
|
---|
| 94 | </sect3>
|
---|
| 95 |
|
---|
| 96 | <sect3><title>Configuration Information</title>
|
---|
| 97 |
|
---|
| 98 | <para>The only configuration needed for
|
---|
| 99 | <application>Open<acronym>LDAP</acronym></application> is
|
---|
| 100 | to run <command>ldconfig</command>. The <acronym>LDAP</acronym> server
|
---|
| 101 | can be started by <command>/usr/sbin/slapd</command> as described in
|
---|
| 102 | the man page slapd(8). You can verify that <acronym>LDAP</acronym> is
|
---|
| 103 | running with <command>ps aux</command> and you can verify access to the
|
---|
| 104 | <acronym>LDAP</acronym> server with the following command:</para>
|
---|
| 105 | <screen><userinput><command>ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts</command></userinput></screen>
|
---|
| 106 |
|
---|
| 107 | <para>The correct result is:</para>
|
---|
| 108 | <screen><computeroutput># extended LDIF
|
---|
| 109 | #
|
---|
| 110 | # LDAPv3
|
---|
| 111 | # base <> with scope base
|
---|
| 112 | # filter: (objectclass=*)
|
---|
| 113 | # requesting: namingContexts
|
---|
| 114 | #
|
---|
| 115 |
|
---|
| 116 | #
|
---|
| 117 | dn:
|
---|
| 118 | namingContexts: dc=my-domain,dc=com
|
---|
| 119 |
|
---|
| 120 | # search result
|
---|
| 121 | search: 2
|
---|
| 122 | result: 0 Success
|
---|
| 123 |
|
---|
| 124 | # numResponses: 2
|
---|
| 125 | # numEntries: 1</computeroutput></screen>
|
---|
| 126 |
|
---|
| 127 | <para>Kill the server with this command:</para>
|
---|
| 128 | <screen><userinput><command>kill -INT `cat /var/lib/slapd.pid`</command></userinput></screen>
|
---|
| 129 |
|
---|
| 130 | <para>You are now ready to modify the
|
---|
| 131 | <filename>/etc/openldap/slapd.conf</filename> to be specific to your
|
---|
| 132 | installation.</para>
|
---|
| 133 |
|
---|
| 134 | <para><emphasis>Utilizing <application>GDBM</application></emphasis></para>
|
---|
| 135 |
|
---|
| 136 | <para>To utilize <application>GDBM</application> as the database
|
---|
| 137 | backend, the "database" entry in <filename>/etc/openldap/slapd.conf</filename>
|
---|
| 138 | must be changed from "bdb" to "ldbm". You can use both by creating an
|
---|
| 139 | additional database section in <filename>/etc/openldap/slapd.conf</filename>.</para>
|
---|
| 140 |
|
---|
| 141 | <para><emphasis>Securing your <acronym>LDAP</acronym> server</emphasis></para>
|
---|
| 142 |
|
---|
| 143 | <para>Significant configuration is needed for
|
---|
| 144 | <application>Open<acronym>LDAP</acronym></application> to utilize
|
---|
| 145 | security features. The <ulink
|
---|
| 146 | url="http://www.openldap.org/doc/admin21/">OpenLDAP 2.1 Administrator's
|
---|
| 147 | Guide</ulink> is a good place to start for access control settings,
|
---|
| 148 | running as a user other than root and setting a chroot environment.</para>
|
---|
| 149 |
|
---|
| 150 | <para><emphasis>User Tools</emphasis></para>
|
---|
| 151 |
|
---|
| 152 | <para>Data can be added to the <acronym>LDAP</acronym> database via
|
---|
| 153 | <command>ldapadd</command>. There are other programs that can use
|
---|
| 154 | the database. For more information see the appropriate man page.</para>
|
---|
| 155 |
|
---|
| 156 | <para><emphasis><application>Mozilla</application> Address Directory</emphasis></para>
|
---|
| 157 |
|
---|
| 158 | <para>By default, LDAPv2 support is disabled in the
|
---|
| 159 | <filename>slapd.conf</filename> file. Once the database is properly
|
---|
| 160 | setup and <application>Mozilla</application> is configured to use the
|
---|
| 161 | directory, you must add <option>allow bind_v2</option> to the
|
---|
| 162 | <filename>slapd.conf</filename> file.</para>
|
---|
| 163 |
|
---|
| 164 |
|
---|
| 165 | </sect3>
|
---|
| 166 |
|
---|
| 167 | </sect2>
|
---|
| 168 |
|
---|
| 169 | <sect2>
|
---|
| 170 | <title>Contents</title>
|
---|
| 171 |
|
---|
| 172 | <para>The Open<acronym><acronym>LDAP</acronym></acronym> package contains
|
---|
| 173 | <command>ldapadd</command>,
|
---|
| 174 | <command>ldapcompare</command>,
|
---|
| 175 | <command>ldapdelete</command>,
|
---|
| 176 | <command>ldapmodify</command>,
|
---|
| 177 | <command>ldapmodrdn</command>,
|
---|
| 178 | <command>ldappasswd</command>,
|
---|
| 179 | <command>ldapsearch</command>,
|
---|
| 180 | <command>ldapwhoami</command>,
|
---|
| 181 | <command>slapadd</command>,
|
---|
| 182 | <command>slapcat</command>,
|
---|
| 183 | <command>slapd</command>,
|
---|
| 184 | <command>slapindex</command>,
|
---|
| 185 | <command>slappasswd</command>,
|
---|
| 186 | <command>slurpd</command>,
|
---|
| 187 | <filename class="libraryfile">liblber</filename> and
|
---|
| 188 | <filename class="libraryfile">libldap</filename>.</para>
|
---|
| 189 |
|
---|
| 190 | </sect2>
|
---|
| 191 |
|
---|
| 192 | <sect2><title>Description</title>
|
---|
| 193 |
|
---|
| 194 | <sect3><title>ldapadd</title>
|
---|
| 195 | <para><command>ldapadd</command> opens a connection to an <acronym>LDAP</acronym> server,
|
---|
| 196 | binds and adds entries.</para></sect3>
|
---|
| 197 |
|
---|
| 198 | <sect3><title>ldapcompare</title>
|
---|
| 199 | <para><command>ldapcompare</command> opens a connection to an <acronym>LDAP</acronym>
|
---|
| 200 | server, binds and performs a compare using specified
|
---|
| 201 | parameters.</para></sect3>
|
---|
| 202 |
|
---|
| 203 | <sect3><title>ldapdelete</title>
|
---|
| 204 | <para><command>ldapdelete</command> opens a connection to an <acronym>LDAP</acronym> server,
|
---|
| 205 | binds and deletes one or more entries.</para></sect3>
|
---|
| 206 |
|
---|
| 207 | <sect3><title>ldapmodify</title>
|
---|
| 208 | <para><command>ldapmodify</command> opens a connection to an <acronym>LDAP</acronym>
|
---|
| 209 | server, binds and modifies entries.</para></sect3>
|
---|
| 210 |
|
---|
| 211 | <sect3><title>ldapmodrdn</title>
|
---|
| 212 | <para><command>ldapmodrdn</command> opens a connection to an <acronym>LDAP</acronym>
|
---|
| 213 | server, binds and modifies the <acronym>RDN</acronym> of
|
---|
| 214 | entries.</para></sect3>
|
---|
| 215 |
|
---|
| 216 | <sect3><title>ldappasswd</title>
|
---|
| 217 | <para><command>ldappasswd</command> is a tool to set the password of an
|
---|
| 218 | <acronym>LDAP</acronym> user.</para></sect3>
|
---|
| 219 |
|
---|
| 220 | <sect3><title>ldapsearch</title>
|
---|
| 221 | <para><command>ldapsearch</command> opens a connection to an <acronym>LDAP</acronym>
|
---|
| 222 | server, binds and performs a search using specified
|
---|
| 223 | parameters.</para></sect3>
|
---|
| 224 |
|
---|
| 225 | <sect3><title>ldapwhoami</title>
|
---|
| 226 | <para><command>ldapwhoami</command> open a connection to an <acronym>LDAP</acronym> server,
|
---|
| 227 | binds and performs a whoami operation.</para></sect3>
|
---|
| 228 |
|
---|
| 229 | <sect3><title>slapadd</title>
|
---|
| 230 | <para><command>slapadd</command> is used to add entries specified in
|
---|
| 231 | <acronym>LDAP</acronym> Directory Interchange Format (<acronym>LDIF</acronym>) to a
|
---|
| 232 | slapd database.</para></sect3>
|
---|
| 233 |
|
---|
| 234 | <sect3><title>slapcat</title>
|
---|
| 235 | <para><command>slapcat</command> is used to generate an <acronym>LDAP</acronym>
|
---|
| 236 | <acronym>LDIF</acronym> output
|
---|
| 237 | based upon the contents of a slapd database.</para></sect3>
|
---|
| 238 |
|
---|
| 239 | <sect3><title>slapd</title>
|
---|
| 240 | <para><command>slapd</command> is the stand-alone <acronym>LDAP</acronym> server.</para></sect3>
|
---|
| 241 |
|
---|
| 242 | <sect3><title>slapindex</title>
|
---|
| 243 | <para><command>slapindex</command> is used to regenerate slapd
|
---|
| 244 | indices based upon the current contents of a database.</para></sect3>
|
---|
| 245 |
|
---|
| 246 | <sect3><title>slappasswd</title>
|
---|
| 247 | <para><command>slappasswd</command> is an Open<acronym>LDAP</acronym> password
|
---|
| 248 | utility.</para></sect3>
|
---|
| 249 |
|
---|
| 250 | <sect3><title>slurpd</title>
|
---|
| 251 | <para><command>slurpd</command> is the stand-alone
|
---|
| 252 | <acronym>LDAP</acronym> replication server.</para></sect3>
|
---|
| 253 |
|
---|
| 254 | <sect3><title>liblber and libldap</title>
|
---|
| 255 | <para>These libraries support the <acronym>LDAP</acronym> programs and provide functionality for
|
---|
| 256 | other programs interacting with <acronym>LDAP</acronym>.</para></sect3>
|
---|
| 257 |
|
---|
| 258 | </sect2>
|
---|
[9905a3c] | 259 |
|
---|
| 260 | </sect1>
|
---|
| 261 |
|
---|