From 3a38addca2bf19f4785c67fc295314e91a6cfd30 Mon Sep 17 00:00:00 2001 From: trasz Date: Sat, 21 Mar 2015 09:42:37 +0000 Subject: 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 --- etc/autofs/include_ldap | 43 ++++++++++++++++++++++++++++++------------- 1 file changed, 30 insertions(+), 13 deletions(-) (limited to 'etc/autofs') diff --git a/etc/autofs/include_ldap b/etc/autofs/include_ldap index 58970c0..4cf70bf 100644 --- a/etc/autofs/include_ldap +++ b/etc/autofs/include_ldap @@ -15,24 +15,41 @@ $1 == "'$ENTRY_ATTRIBUTE':" { key = $2 } -$1 == "'$VALUE_ATTRIBUTE':" && key { - printf "%s%s", key, OFS - key = "" - for (i=2; i 0 { printf "%s%s", key, OFS - key = "" - for (i=2; i