On Wed, 2007-06-13 at 16:45 +0000, Edjé wrote:
> Hello,
> Please help with autofs5 because i tried some advices without success.
> I want to mount users home with autofs5. I tried it before with nfs with
> success.
> My conf is:
> 
> --/etc/sysconfig/autofs:
> #
> # Define default options for autofs.
> #
> # DEFAULT_MASTER_MAP_NAME - default map name for the master map.
> #
> DEFAULT_MASTER_MAP_NAME="auto.master"
> #
> # DEFAULT_TIMEOUT - set the default mount timeout (default 600).
> #
> DEFAULT_TIMEOUT=300
> #
> # DEFAULT_BROWSE_MODE - maps are browsable by default.
> #
> #DEFAULT_BROWSE_MODE="no"
> #
> # DEFAULT_LOGGING - set default log level "none", "verbose" or "debug"
> #
> DEFAULT_LOGGING="verbose"
> #
> # Define the default LDAP schema to use for lookups
> #
> # System default
> #
> #DEFAULT_MAP_OBJECT_CLASS="nisMap"
> #DEFAULT_ENTRY_OBJECT_CLASS="nisObject"
> #DEFAULT_MAP_ATTRIBUTE="nisMapName"
> #DEFAULT_ENTRY_ATTRIBUTE="cn"
> #DEFAULT_VALUE_ATTRIBUTE="nisMapEntry"
> #
> # Other common LDAP nameing
> #
> DEFAULT_MAP_OBJECT_CLASS="automountMap"
> DEFAULT_ENTRY_OBJECT_CLASS="automount"
> DEFAULT_MAP_ATTRIBUTE="ou"
> DEFAULT_ENTRY_ATTRIBUTE="cn"
> DEFAULT_VALUE_ATTRIBUTE="automountInformation"
> #
> #DEFAULT_MAP_OBJECT_CLASS="automountMap"
> #DEFAULT_ENTRY_OBJECT_CLASS="automount"
> #DEFAULT_MAP_ATTRIBUTE="automountMapName"
> #DEFAULT_ENTRY_ATTRIBUTE="automountKey"
> #DEFAULT_VALUE_ATTRIBUTE="automountInformation"
> #
> # DEFAULT_AUTH_CONF_FILE - set the default location for the SASL
> #                          authentication configuration file.
> #
> DEFAULT_AUTH_CONF_FILE="/etc/autofs_ldap_auth.conf"
> #
> # General global options
> #
> #OPTIONS=""
> #

What version of autofs are you using?
This config file is out of date (but will still work).
The DEFAULT_ prefix has been dropped in the latest patched autofs.

> --------------------My auto.master's file
> +auto.master
> 
> --------------------My nsswitch.conf automount's line:
> automount:  files ldap nis
> 
> --------------------auto.master ou entry in ldap:
> 
> dn: ou=auto.master,ou=personnes,o=ul,c=tg
> ou: auto.master
> objectClass: top
> objectClass: automountMap
> 
> dn: cn=/home,ou=auto.master,ou=personnes,o=ul,c=tg
> objectClass: automount
> cn: /home
> automountInformation: ldap//192.168.210.3/ou=auto.home,ou=personnes,o=ul,c=tg

Yes, as Jeff says the ":" is missing here.
Once this is all working you might consider using "auto.home" by itself
as nsswitch will find the map automatically. I think it's much simpler.

> 
> -------------------auto.home ou entry in ldap:
> dn: ou=auto.home,ou=personnes,o=ul,c=tg
> ou: auto.home
> objectClass: top
> objectClass: organizationalUnit

You need to add "objectClass: automountMap" to this as get_query_dn uses
this to locate the map entry.

Ian


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

Reply via email to