Package: autofs-ldap
Version: 4.1.3+4.1.4beta2-7
Severity: important
Tags: patch

/etc/init.d/autofs fails to retrieve the auto.master map from LDAP. The 
attached patch fixes the problem for my setup. 

Additionally it exports LDAPBASE and LDAPURI (see bug #304340), which makes 
autofs-ldap rather independant from the content of 
/etc/ldap/ldap.conf.

One might encounter problems when both RFC 2307 and autofs.schema entries are 
inside the specified subtree.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages autofs-ldap depends on:
ii  autofs                4.1.3+4.1.4beta2-7 kernel-based automounter for Linux
ii  ldap-utils            2.2.23-1           OpenLDAP utilities
ii  libc6                 2.3.2.ds1-20       GNU C Library: Shared libraries an
ii  libldap2              2.1.30-3           OpenLDAP libraries

-- no debconf information
--- /etc/init.d/autofs.orig     2005-04-28 19:56:39.719182481 +0200
+++ /etc/init.d/autofs.working  2005-04-28 19:57:36.924029843 +0200
@@ -156,7 +156,12 @@
 function getldapmounts()
 {
     if [ -x /usr/lib/autofs/autofs-ldap-auto-master ]; then
+       # see bug 304340:
+       export LDAPURI="$LDAPURI"
+       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
     fi
 }
 

Reply via email to