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=""
#
--------------------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

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

dn: cn=/,ou=auto.home,ou=personnes,o=ul,c=tg
objectClass: automount
automountInformation: -fstype=nfs,rw 192.168.210.3:/home/&
cn: /

-------------------

That is all. But if i restart autofs i read this error in log file:

Jun 13 16:24:19 Sersau automount[18093]: Starting automounter version 5.0.1-1,
master map auto.master
Jun 13 16:24:19 Sersau automount[18093]: using kernel protocol version 5.00
Jun 13 16:24:19 Sersau automount[18093]: master_notify: syntax error in map near
[ /home ]
Jun 13 16:24:19 Sersau automount[18093]: mounted indirect mount on /misc with
timeout 300, freq 75 seconds
Jun 13 16:24:19 Sersau automount[18093]: ghosting enabled
Jun 13 16:24:19 Sersau automount[18093]: mounted indirect mount on /net with
timeout 300, freq 75 seconds
Jun 13 16:24:19 Sersau automount[18093]: ghosting enabled

     It seems to notify one error in /home entry. I don't understand it.

Please help!
"Heureux ceux qui sont conscients de leur pauvreté spirituelle." - Mat 5:3(Les
Saintes Ecritures - Traduction du monde nouveau).

----------------------------------------------------------------
Ce message a été envoyé depuis le serveur de messagerie de l'Université de
Lomé.
Université de Lomé
BP 1515
Lomé TOGO.

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

Reply via email to