Bug#567015: cyrus-imapd-2.2: ptclient binaries not compiled, missing dependancy to libldap2-dev
Pierre Gambarotto
pierre.gambarotto at enseeiht.fr
Tue Jan 26 17:04:11 UTC 2010
Package: cyrus-imapd-2.2
Version: 2.2.13
Severity: normal
ptclient binaries, ptloader, ptdump and ptexpire are not compiled.
These tools allow to use a layer authorization with a ldap directory.
To allow it, it is sufficient to add --with-ldap=/usr to the configure options in debian/rules.
I have made the following changes with success :
* added --with-ldap=/usr to configure options in debian/rules
* added a build dependancy to libldap2-dev
* added the built binaries to the cyrus-imapd-2.2 binary package :
at the end of debian/cyrus-imapd-2.2.install, add :
usr/lib/cyrus/bin/ptloader
usr/lib/cyrus/bin/ptdump
usr/lib/cyrus/bin/ptexpire
The package sucessfully built and now includes pt* binaries. I have tested with :
sudo -u cyrus mkdir /var/lib/cyrus/ptclient # directory to store the cache db file, to add to post install script
Sample configuration that works with openldap basic schema (groups : objectclass=groupofnames, member= dn of user)
imapd.conf :
auth_mech: pts
unix_group_enable: no
ptloader_sock: /var/run/cyrus/socket/ptsock
ldap_base: ou=people,dc=sample,dc=org
ldap_filter: (uid=%U)
ldap_version: 3
ldap_sasl: 0
ldap_size_limit: 100
ldap_group_base: ou=groups,dc=sample,dc=org
ldap_group_filter: (cn=%U)
ldap_group_scope: one
ldap_member_attribute: cn
ldap_member_scope: one
ldap_member_base: ou=groups,dc=sample,dc=org
ldap_member_filter: (member=%D)
ldap_member_method: filter
ldap_uri: ldap://ldapserver.sample.org
pts_module: ldap
cyrus.conf :
SERVICES {
ptloader cmd="ptloader" listen="/var/run/cyrus/socket/ptsock" prefork=1
}
And now ACL with group:groupname refer to groups defined in ldap directory.
Depending on the source version, you also have to add --with-auth=pts
-- System Information:
Debian Release: 5.0.3
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-8-pve (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages cyrus-imapd-2.2 depends on:
pn cyrus-common-2.2 <none> (no description available)
ii libasn1-8-heimdal 1.2.dfsg.1-2.1 Heimdal Kerberos - ASN.1 library
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libcomerr2 1.41.3-1 common error description library
ii libdb4.2 4.2.52+dfsg-5 Berkeley v4.2 Database Libraries [
ii libgssapi2-heimda 1.2.dfsg.1-2.1 Heimdal Kerberos - GSSAPI support
ii libkrb5-25-heimda 1.2.dfsg.1-2.1 Heimdal Kerberos - libraries
ii libroken18-heimda 1.2.dfsg.1-2.1 Heimdal Kerberos - roken support l
ii libsasl2-2 2.1.22.dfsg1-23+lenny1 Cyrus SASL - authentication abstra
ii libssl0.9.8 0.9.8g-15+lenny6 SSL shared libraries
ii libwrap0 7.6.q-16 Wietse Venema's TCP wrappers libra
cyrus-imapd-2.2 recommends no packages.
cyrus-imapd-2.2 suggests no packages.
More information about the Pkg-Cyrus-imapd-Debian-devel
mailing list