Changes between Version 3 and Version 4 of cyrus-sasl


Ignore:
Timestamp:
01/05/2020 04:28:13 AM (4 years ago)
Author:
Bruce Dubbs
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • cyrus-sasl

    v3 v4  
    1 = Cyrus SASL =
    2 
    3 == LDAPDB Plugin ==
    4 
    5 Use of the LDAPDB auxprop plugin in Cyrus SASL causes a problem because a circular dependency is introduced between OpenLDAP and Cyrus SASL.  The problem is that OpenLDAP must be present in order to build the LDAPDB plugin.  However, for the plugin to work at run-time, OpenLDAP must be built with SASL support.
    6 
    7 One way to address this issue is to build Cyrus SASL without LDAP support.  Then OpenLDAP can be built with SASL support linked in.  Finally, the LDAPDB plugin can be built and installed.  This method will be outlined below.  Note that this will not enable LDAP support in '''saslauthd'''.
    8 
    9 First, build [http://www.linuxfromscratch.org/blfs/view/svn/postlfs/cyrus-sasl.html Cyrus SASL] using the instructions from the BLFS book.  Next, build [http://www.linuxfromscratch.org/blfs/view/svn/server/openldap.html OpenLDAP], ensuring that ''--enable-spasswd'' is passed to `configure` to enable SASL password verification.  Now, you are ready to build the LDAPDB auxprop plugin.
    10 
    11 Unpack the Cyrus SASL source and apply any patches or '''sed''' commands from the BLFS book.  Configure the package as you did before, but add two necessary arguments to enable LDAP support and the LDAPDB plugin.
    12 
    13 {{{
    14 ./configure ... --with-ldap --enable-ldapdb
    15 }}}
    16 
    17 Build just the plugins and their necessary dependencies:
    18 
    19 {{{
    20 make -C include &&
    21 make -C sasldb &&
    22 make -C plugins
    23 }}}
    24 
    25 Finally, as the ''root'' user, install the LDAPDB plugin to the system:
    26 
    27 {{{
    28 libtool --mode=install install plugins/libldapdb.la /usr/lib/sasl2
    29 }}}
    30 
    31 [wiki:Security Up][[br]]
    32 [wiki:BlfsNotes Top]