Hi.
On Tue, 22 Aug 2023 15:44:22 +0200 Souji Thenria wrote:
I compared the status output from both versions and noticed that the
map
type displayed by the 4.1.4 version is "yp" (NIS). It seems that it does
not recognise that these maps are distributed via LDAP.
I hope you have only in /etc/nsswitch.conf: automount: ldap
I looked at both init.d scripts and noticed that in version 4.1.4 the
maptype cannot be set to LDAP. There is this if-else statement that
determines the map type and it always defaults to "yp". There does not
even seem to be an option for the LDAP type:
Except if "$maptype" = "$map", but I think it's better to patch
this script as
follows, instead of understanding it fully (what is for example the output of
autofs-ldap-auto-master), in order to gain time to upgrade (or far far better
re-install those 2 machines).
Replace:
---------------------------------------------------------
elif [ -f "/etc/$map" ]; then
maptype=file
map=`echo /etc/$map | sed 's^//^/^g'`
else
maptype=yp
if [ "$UNDERSCORETODOT" = "1" ] ; then
map=`basename $map | sed -e s/^auto_/auto./`
else
map=`basename $map | sed 's^//^/^g'`
fi
fi
---------------------------------------------------------
by:
---------------------------------------------------------
else
maptype=ldap
if [ "$UNDERSCORETODOT" = "1" ] ; then
map=`basename $map | sed -e s/^auto_/auto./`
else
map=`basename $map | sed 's^//^/^g'`
fi
fi
---------------------------------------------------------
I think it should work since this maptype=yp is the only occurrence of
yp in this script (ignoring the output of autofs-ldap-auto-master).
--
francis