Ian Kent wrote:
> Wilson Snyder wrote:
>> I have a suse10.3 system which includes autofs-5.0.2-30.2
>>
>> I'd like an LDAP entry that makes an autofs mountpoint that
>> includes the local host's name.  If this wasn't under LDAP I
>> believe "/net/$HOST" would work - creating a
>> "/net/{name-of-hostname}" mountpoint.
>>
>> However, if I add a mountpoint with cn=$HOST
>>
>> cn=$HOST,nismapname=auto.net,dc=company,dc=com
>>
>> The automounter nicely makes a "/net/$HOST" mount -
>> *literally* /net/$HOST, that is it doesn't expand $HOST to
>> the hostname.
>>
>> Same thing if I use cn=${host}
>>
>> Any hints?  Thanks! 
> 
> Oddly enough I think that $HOST should be expanded but I have no idea
> how you think this is supposed to work because you haven't provided any
> information about the LDAP entry, other than the dn, or provided any
> debug log information.

Sorry, that isn't correct.
Macro expansion is not done on keys and never has been.

Which begs the question, is it sensible to do macro expansion on keys
from a map before trying to match them against the key string received
from the kernel for the lookup?

Ian

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to