Great document. Thanks.
Two things:
1. I do not care too much if /etc/nsswitch.conf is supposed to be
used only by Glibc or not. For me the functionality is the bottom
line - and here autofs does the right thing. I hate too many
configuration files - the less, the better. One configuration file
per service is enough (I am even sick of the extra
/etc/autofs_ldap_auth.conf config file) and I don't have anything
against sharing configuration files for multiple services if it
makes a sense.
2. I am still not too sure about the schema expected by to
automounter in LDAP. I would expect these variants should work:
a) not using full DN in automountInformation
dn: automountMapName=auto.master,dc=example,dc=com
objectClass: top
objectClass: automountMap
automountMapName: auto.master
dn: automountKey=/home,automountMapName=auto.master,dc=example,dc=com
objectClass: automount
automountKey: /home
automountInformation: auto.home
dn: automountMapName=auto.home,dc=example,dc=com
objectClass: automountMap
automountMapName: auto.home
dn: automountKey=foo,automountMapName=auto.home,dc=example,dc=com
objectClass: automount
automountKey: foo
automountInformation: filer.example.com:/export/foo
b) same as a) but using full DN - for backward compatibility reasons
dn: automountMapName=auto.master,dc=example,dc=com
objectClass: top
objectClass: automountMap
automountMapName: auto.master
dn: automountKey=/home,automountMapName=auto.master,dc=example,dc=com
objectClass: automount
automountKey: /home
automountInformation: automountMapName=auto.home,dc=example,dc=com
dn: automountMapName=auto.home,dc=example,dc=com
objectClass: automountMap
automountMapName: auto.home
dn: automountKey=foo,automountMapName=auto.home,dc=example,dc=com
objectClass: automount
automountKey: foo
automountInformation: filer.example.com:/export/foo
c) simplified setup - nice to have as it reflects the real
filesystem
dn: automountMapName=auto.master,dc=example,dc=com
objectClass: top
objectClass: automountMap
automountMapName: auto.master
dn: automountMapName=/home,automountMapName=auto.master,dc=example,dc=com
objectClass: automountMap
automountMapName: /home
dn: automountKey=foo,automountMapName=/home,automountMapName=auto.master,dc=example,dc=com
objectClass: automount
automountKey: foo
automountInformation: filer.example.com:/export/foo
As far as I understand the options a) and b) are standards now. I
have added a nice_to_have option c) as well as it somewhat reflects
the actual filesystem hierarchy. I am just posting it here for
feedback, knowing it would be probably rejected.
Thanks,
Ondrej