Re: Automount using LDAP on Fedora Core 5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux