Created attachment 154260 [details] my /etc/autofs/include Our LDAP server returns automount map attributes in random order like this, # NAME, auto.net, example.com dn: automountKey=NAME,automountMapName=auto.net,dc=example,dc=com automountInformation: SERVER:/FS cn: NAME As /etc/autofs/include_ldap implementation assumes "cn" comes earlier than "automountInformation", the above entry will be ignored.
Created attachment 154520 [details] New LDAP script.
Could you try the new ldap script, attached?
Also, for future reference, what's the name of the LDAP server implementation?
Fine, it is working for me. Our LDAP server is openldap-sasl-server-2.4.39_4 installed from ports/net/openldap24-server.
A commit references this bug: Author: trasz Date: Sat Mar 21 09:42:39 UTC 2015 New revision: 280321 URL: https://svnweb.freebsd.org/changeset/base/280321 Log: Make the autofs LDAP script cope with server returning entries with ENTRY_ATTRIBUTE (eg cn) after the VALUE_ATTRIBUTE (eg automountInformation), instead of before. PR: 198557 MFC after: 1 month Sponsored by: The FreeBSD Foundation Changes: head/etc/autofs/include_ldap
A commit references this bug: Author: trasz Date: Fri May 15 11:06:11 UTC 2015 New revision: 282961 URL: https://svnweb.freebsd.org/changeset/base/282961 Log: MFC r280321: Make the autofs LDAP script cope with server returning entries with ENTRY_ATTRIBUTE (eg cn) after the VALUE_ATTRIBUTE (eg automountInformation), instead of before. PR: 198557 Sponsored by: The FreeBSD Foundation Changes: _U stable/10/ stable/10/etc/autofs/include_ldap