mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-03 14:47:17 +08:00
More updates to openldap incorporating a consolidated patch.
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@15710 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
f515c0cc7a
commit
6b52571138
@ -47,6 +47,10 @@
|
||||
<listitem>
|
||||
<para>March 26th, 2015</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>[bdubbs] - More updates to openldap incorporating
|
||||
a consolidated patch.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>[pierre] - Update to LVM2-2.02.118. Fixes
|
||||
<ulink url="&blfs-ticket-root;6308">#6308</ulink>.</para>
|
||||
|
@ -75,13 +75,7 @@
|
||||
<listitem>
|
||||
<para>
|
||||
Required patch:
|
||||
<ulink url="&patch-root;/openldap-&openldap-version;-blfs_paths-1.patch"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Required patch:
|
||||
<ulink url="&patch-root;/openldap-&openldap-version;-symbol_versions-1.patch"/>
|
||||
<ulink url="&patch-root;/openldap-&openldap-version;-consolidated-1.patch"/>
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
@ -122,8 +116,7 @@
|
||||
instead of the following ones (no test suite available):
|
||||
</para>
|
||||
|
||||
<screen><userinput>patch -Np1 -i ../openldap-&openldap-version;-blfs_paths-1.patch &&
|
||||
patch -Np1 -i ../openldap-&openldap-version;-symbol_versions-1.patch &&
|
||||
<screen><userinput>patch -Np1 -i ../openldap-&openldap-version;-consolidated-1.patch &&
|
||||
autoconf &&
|
||||
|
||||
./configure --prefix=/usr \
|
||||
@ -144,7 +137,7 @@ make</userinput></screen>
|
||||
</note>
|
||||
|
||||
<warning>
|
||||
<para>If upgrading from a previos installation that used Berkely DB as
|
||||
<para>If upgrading from a previos installation that used Berkeley DB as
|
||||
the backend, you will need to dump the database(s) using the
|
||||
<command>slapcat</command> utility, relocate all files in
|
||||
<filename class="directory">/var/lib/openldap</filename>, change all
|
||||
@ -172,8 +165,7 @@ useradd -c "OpenLDAP Daemon Owner" -d /var/lib/openldap -u 83 \
|
||||
running the following commands:
|
||||
</para>
|
||||
|
||||
<screen><userinput>patch -Np1 -i ../openldap-&openldap-version;-blfs_paths-2.patch &&
|
||||
patch -Np1 -i ../openldap-&openldap-version;-symbol_versions-1.patch &&
|
||||
<screen><userinput>patch -Np1 -i ../openldap-&openldap-version;-consolidated-1.patch &&
|
||||
autoconf &&
|
||||
|
||||
./configure --prefix=/usr \
|
||||
@ -211,26 +203,13 @@ make</userinput></screen>
|
||||
|
||||
<screen role="root"><userinput>make install &&
|
||||
|
||||
chmod -v 700 /var/lib/openldap &&
|
||||
chown -v -R ldap:ldap /var/lib/openldap &&
|
||||
chmod -v 640 /etc/openldap/slapd.{conf,ldif} &&
|
||||
chown -v root:ldap /etc/openldap/slapd.{conf,ldif} &&
|
||||
sed 's@bdb@mdb@g' -i /etc/openldap/slapd.conf &&
|
||||
install -v -dm700 -o ldap -g ldap /var/lib/openldap &&
|
||||
install -v -dm700 -o ldap -g ldap /etc/openldap/slapd.d &&
|
||||
chmod -v 640 /etc/openldap/slapd.{conf,ldif} &&
|
||||
chown -v root:ldap /etc/openldap/slapd.{conf,ldif} &&
|
||||
|
||||
install -v -dm755 /usr/share/doc/openldap-&openldap-version; &&
|
||||
cp -vfr doc/drafts /usr/share/doc/openldap-&openldap-version; &&
|
||||
cp -vfr doc/rfc /usr/share/doc/openldap-&openldap-version; &&
|
||||
cp -vfr doc/guide /usr/share/doc/openldap-&openldap-version;</userinput></screen>
|
||||
|
||||
<para>
|
||||
Having slapd configuration files and ldap databases in /var/lib/openldap
|
||||
readable by anyone is a SECURITY ISSUE, especially since a file stores
|
||||
admin password in PLAIN TEXT. That's why mode 640 and root:ldap ownership
|
||||
were used. 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
|
||||
the file in case of a security breach.
|
||||
</para>
|
||||
install -v -dm755 /usr/share/doc/openldap-&openldap-version; &&
|
||||
cp -vfr doc/{drafts,rfc,guide} /usr/share/doc/openldap-&openldap-version;</userinput></screen>
|
||||
|
||||
</sect2>
|
||||
|
||||
@ -308,13 +287,6 @@ cp -vfr doc/guide /usr/share/doc/openldap-&openldap-version;</userinput></scree
|
||||
<ulink url="http://www.openslp.org/">OpenSLP</ulink>.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<command>sed 's@bdb@mdb@g' -i /etc/openldap/slapd.conf</command>: This
|
||||
command changes the default backend from the deprecated Berkely DB
|
||||
(which was not included in the available backends) to LMDB as is
|
||||
recommended by the OpenLDAP developers.
|
||||
</para>
|
||||
|
||||
<note>
|
||||
<para>
|
||||
You can run <command>./configure --help</command> to see if there
|
||||
@ -323,6 +295,17 @@ cp -vfr doc/guide /usr/share/doc/openldap-&openldap-version;</userinput></scree
|
||||
</para>
|
||||
</note>
|
||||
|
||||
<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
|
||||
the file in case of a security breach.
|
||||
</para>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 role="configuration">
|
||||
@ -383,9 +366,9 @@ cp -vfr doc/guide /usr/share/doc/openldap-&openldap-version;</userinput></scree
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
The <ulink url="http://www.openldap.org/doc/admin24/">
|
||||
OpenLDAP 2.4 Administrator's Guide</ulink>
|
||||
(also installed locally in <filename class='directory'>
|
||||
The <ulink url="http://www.openldap.org/doc/admin24/"> OpenLDAP 2.4
|
||||
Administrator's Guide</ulink> (also installed locally in
|
||||
<filename class='directory'>
|
||||
/usr/share/doc/openldap-&openldap-version;/guide/admin</filename>).
|
||||
</para>
|
||||
</listitem>
|
||||
@ -461,7 +444,7 @@ cp -vfr doc/guide /usr/share/doc/openldap-&openldap-version;</userinput></scree
|
||||
<screen><computeroutput># extended LDIF
|
||||
#
|
||||
# LDAPv3
|
||||
# base <> with scope base
|
||||
# base <> with scope baseObject
|
||||
# filter: (objectclass=*)
|
||||
# requesting: namingContexts
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user