I have been trying out Leap 16.0 beta, and a configuration for autofs and sssd that works fine on 15.6 fails for 16.0. Can anyone suggest what changes are needed to get around this, or have I found a problem that needs fixing?
TL;DR: autofs retrieves the master map fine through sssd, but reverts to ldap to read an indirect map. In 16.0 /usr/lib64/autofs/lookup_ldap.so is no longer provided, so the attempt to use ldap fails.
More details:
I have the following line in /etc/nsswitch.conf:
automount: files sss
I define the following master map auto2.master on the LDAP server:
dn: nisMapName=auto2.master,ou=autofs,dc=example,dc=com
description;lang-en-gb: Top level automount map
objectClass: nisMap
nisMapName: auto2.master
dn: cn=/.net/fs4,nisMapName=auto2.master,ou=autofs,dc=example,dc=com
objectClass: nisObject
objectClass: top
nisMapEntry: nisMapName=auto.fs4,ou=autofs,dc=example,dc=com --ghost
nisMapName: auto2.master
cn: /.net/fs4
and the map that is referred to here (auto.fs4) as follows:
dn: nisMapName=auto.fs4,ou=autofs,dc=example,dc=com
description;lang-en-gb: Testing automount map
objectClass: nisMap
objectClass: top
nisMapName: auto.fs4
dn: cn=am_test,nisMapName=auto.fs4,ou=autofs,dc=example,dc=com
cn: am_test
objectClass: nisObject
objectClass: top
nisMapEntry: -fstype=nfs,rw,soft,async,noatime fs4:/volume10/exports_am_test
nisMapName: auto.fs4
automount -vf auto2.master then gives me the following output:
Starting automounter version 5.1.9, master map auto2.master
using kernel protocol version 5.06
reading files master auto2.master
lookup(file): file map /etc/auto2.master missing or not readable
lookup(file): file map /etc/auto2_master missing or not readable
reading sss master auto2.master
reading ldap map nisMapName=auto.fs4,ou=autofs,dc=example,dc=com
open_lookup:68: cannot open lookup module ldap (/usr/lib64/autofs/lookup_ldap.so: cannot open shared object file: No such file or directory)
mount_autofs_indirect: failed to read map for /.net/fs4
handle_mounts: mount of /.net/fs4 failed!
failed to stat directory or symlink /.net/fs4
could not unmount 1 dirs under /.net/fs4
umount_autofs_indirect:234: ioctl failed: Bad file descriptor
master_do_mount: failed to startup mount
no mounts in table
I can understand the reasons for favouring sssd over ldap for autofs, but then there should be a way of getting autofs to go back to sssd after the master map retrieval to cope with the decision to withdraw lookup_ldap.so. I have not managed to find anything though. Have I missed something?