Retrieving automount maps via LDAP
Hello,
I was wondering whether anyone could offer some advice on an issue I've been having using the LDAP client (Solaris 10 9/10 x86 native client) to retrieve automount information? I configured the client manually and included the following mappings:
NS_LDAP_SERVICE_SEARCH_DESC=automount:ou=automount,ou=sitename,dc=domain,dc=local
NS_LDAP_ATTRIBUTEMAP=automount:automountInformation=nisMapEntry
NS_LDAP_ATTRIBUTEMAP=automount:automountKey=cn
NS_LDAP_ATTRIBUTEMAP=automount:automountMapName=nisMapName
NS_LDAP_OBJECTCLASSMAP= automount:automountMap=nisMap
NS_LDAP_OBJECTCLASSMAP= automount:automount=nisObject
Ldaplist seemed happy enough with that ("ldaplist automount auto.mapname" returned the full dn of auto.mapname), but trying to ls one of the automounted directories gave me "No such file or directory". Snooping the traffic between the client and server, it looked like the search was failing because some of the mappings were being ignored. The Base Object being searched was "nisMapName=auto.mapname, dc=domain,dc=local", suggesting the client was using the automountMapName=nisMapName mapping correctly, but was searching the default base search DN rather than the one specified in the service search descriptor. The other search fields also showed that it was searching for
I was wondering whether anyone could offer some advice on an issue I've been having using the LDAP client (Solaris 10 9/10 x86 native client) to retrieve automount information? I configured the client manually and included the following mappings:
NS_LDAP_SERVICE_SEARCH_DESC=automount:ou=automount,ou=sitename,dc=domain,dc=local
NS_LDAP_ATTRIBUTEMAP=automount:automountInformation=nisMapEntry
NS_LDAP_ATTRIBUTEMAP=automount:automountKey=cn
NS_LDAP_ATTRIBUTEMAP=automount:automountMapName=nisMapName
NS_LDAP_OBJECTCLASSMAP= automount:automountMap=nisMap
NS_LDAP_OBJECTCLASSMAP= automount:automount=nisObject
Ldaplist seemed happy enough with that ("ldaplist automount auto.mapname" returned the full dn of auto.mapname), but trying to ls one of the automounted directories gave me "No such file or directory". Snooping the traffic between the client and server, it looked like the search was failing because some of the mappings were being ignored. The Base Object being searched was "nisMapName=auto.mapname, dc=domain,dc=local", suggesting the client was using the automountMapName=nisMapName mapping correctly, but was searching the default base search DN rather than the one specified in the service search descriptor. The other search fields also showed that it was searching for
0