Bug 198557 - /etc/autofs/include_ldap ignores some entries
Summary: /etc/autofs/include_ldap ignores some entries
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 10.1-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: Edward Tomasz Napierala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-13 03:51 UTC by yoshin-t
Modified: 2015-05-15 11:11 UTC (History)
2 users (show)

See Also:


Attachments
my /etc/autofs/include (1.11 KB, application/x-shellscript)
2015-03-13 03:51 UTC, yoshin-t
no flags Details
New LDAP script. (1.20 KB, application/x-shellscript)
2015-03-19 16:18 UTC, Edward Tomasz Napierala
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description yoshin-t 2015-03-13 03:51:34 UTC
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.
Comment 1 Edward Tomasz Napierala freebsd_committer freebsd_triage 2015-03-19 16:18:08 UTC
Created attachment 154520 [details]
New LDAP script.
Comment 2 Edward Tomasz Napierala freebsd_committer freebsd_triage 2015-03-19 16:18:31 UTC
Could you try the new ldap script, attached?
Comment 3 Edward Tomasz Napierala freebsd_committer freebsd_triage 2015-03-19 16:19:36 UTC
Also, for future reference, what's the name of the LDAP server implementation?
Comment 4 yoshin-t 2015-03-20 02:01:21 UTC
Fine, it is working for me.

Our LDAP server is openldap-sasl-server-2.4.39_4 installed from ports/net/openldap24-server.
Comment 5 commit-hook freebsd_committer freebsd_triage 2015-03-21 09:42:51 UTC
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
Comment 6 commit-hook freebsd_committer freebsd_triage 2015-05-15 11:06:34 UTC
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