Package: autofs-ldap
Version: 4.1.4-5
Followup-For: Bug #306829
Since the latest update to the autofs-ldap package, the autofs init
script no longer finds the auto.master map in LDAP.
To close bug #306829, two export lines were added to the init script.
When the LDAPURI and LDAPBASE variables are not set in
/etc/default/autofs (and they are not set by default), the default
values should be used (using ldap.conf).
By exporting LDAPURI and LDAPBASE when they are not set in the defaults
file, autofs-ldap-auto-master fails.
The following patch fixes this:
--- autofs.orig 2005-07-06 09:52:29.0 +0200
+++ autofs 2005-07-06 09:50:59.0 +0200
@@ -175,8 +175,8 @@
function getldapmounts()
{
if [ -x /usr/lib/autofs/autofs-ldap-auto-master ]; then
- export LDAPURI=$LDAPURI
- export LDAPBASE=$LDAPBASE
+ [ ! -z $LDAPURI ] export LDAPURI=$LDAPURI
+ [ ! -z $LDAPBASE ] export LDAPBASE=$LDAPBASE
/usr/lib/autofs/autofs-ldap-auto-master 2 /dev/null
/usr/lib/autofs/autofs-ldap-auto-master -m automountMap \
-e automount -n ou -k cn -v automountInformation 2 /dev/null
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages autofs-ldap depends on:
ii autofs 4.1.4-5 kernel-based automounter for Linux
ii ldap-utils 2.2.26-3 OpenLDAP utilities
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
ii libldap22.1.30-11OpenLDAP libraries
autofs-ldap recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]