18985717002913d4a81c10c24de4e0892be0bbbd
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-connectivity / autofs / autofs-4.1.4 / 065_fix_master_map_in_ldap.patch
1 #!/bin/sh /usr/share/dpatch/dpatch-run
2 ## 065_fix_master_map_in_ldap.dpatch
3 ##
4 ## DP: No description.
5
6 @DPATCH@
7
8 diff -Naur .B/samples/rc.autofs.in .A/samples/rc.autofs.in
9 --- .B/samples/rc.autofs.in     2007-01-07 21:36:35.000000000 +0000
10 +++ .A/samples/rc.autofs.in     2007-01-07 21:36:35.000000000 +0000
11 @@ -175,7 +175,11 @@
12  function getldapmounts()
13  {
14      if [ -x @@autofslibdir@@/autofs-ldap-auto-master ]; then
15 +       [ ! -z $LDAPURI ] && export LDAPURI="$LDAPURI"
16 +       [ ! -z $LDAPBASE ] && export LDAPBASE="$LDAPBASE"
17          @@autofslibdir@@/autofs-ldap-auto-master 2> /dev/null
18 +       @@autofslibdir@@/autofs-ldap-auto-master -m automountMap \
19 +           -e automount -n ou -k cn -v automountInformation 2> /dev/null
20      fi
21  }
22