<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000066">
Check your /etc/nsswitch.conf.<br>
It must read:<br>
<br>
automount: files ldap<br>
<br>
If you have latest automounter installed you can also try:<br>
<br>
# automount -m<br>
<br>
.. to see if automounter really see all your maps<br>
<br>
Ondrej<br>
<br>
On 06.07.2011 23:16, Rob Crittenden wrote:
<blockquote cite="mid:4E14D0A0.30200@redhat.com" type="cite">Pavel
Zhukov wrote:
<br>
<blockquote type="cite">Thank you for help. but automount doesn't
work anyway.
<br>
<br>
cat /etc/sysconfig/autofs | egrep -v "#.*"
<br>
TIMEOUT=300
<br>
BROWSE_MODE="no"
<br>
MOUNT_NFS_DEFAULT_PROTOCOL=4
<br>
LOGGING="debug"
<br>
USE_MISC_DEVICE="yes"
<br>
MAP_OBJECT_CLASS="automountMap"
<br>
ENTRY_OBJECT_CLASS="automount"
<br>
MAP_ATTRIBUTE="automountMapName"
<br>
ENTRY_ATTRIBUTE="automountKey"
<br>
VALUE_ATTRIBUTE="automountInformation"
<br>
LDAP_URI=<a class="moz-txt-link-rfc2396E" href="ldap://freeipa.home.zhukoff.net">"ldap://freeipa.home.zhukoff.net"</a>
<br>
SEARCH_BASE="cn=default,cn=automount,dc=home,dc=zhukoff,dc=net"
<br>
<br>
cat /var/log/messages | grep automount
<br>
Jul 6 22:35:31 ipaclient automount[1257]: st_expire: state 1
path /net
<br>
Jul 6 22:35:31 ipaclient automount[1257]: expire_proc: exp_proc
=
<br>
139679846762240 path /net
<br>
Jul 6 22:35:31 ipaclient automount[1257]: expire_cleanup: got
thid
<br>
139679846762240 path /net stat 0
<br>
Jul 6 22:35:31 ipaclient automount[1257]: expire_cleanup:
sigchld: exp
<br>
139679846762240 finished, switching from 2 to 1
<br>
Jul 6 22:35:31 ipaclient automount[1257]: st_ready: st_ready():
state =
<br>
2 path /net
<br>
Jul 6 22:36:00 ipaclient automount[1257]: st_expire: state 1
path /misc
<br>
Jul 6 22:36:00 ipaclient automount[1257]: expire_proc: exp_proc
=
<br>
139679846762240 path /misc
<br>
Jul 6 22:36:00 ipaclient automount[1257]: expire_cleanup: got
thid
<br>
139679846762240 path /misc stat 0
<br>
Jul 6 22:36:00 ipaclient automount[1257]: expire_cleanup:
sigchld: exp
<br>
139679846762240 finished, switching from 2 to 1
<br>
Jul 6 22:36:00 ipaclient automount[1257]: st_ready: st_ready():
state =
<br>
2 path /misc
<br>
<br>
mount | grep autofs
<br>
...... (some /dev and /sys)
<br>
/etc/auto.misc on /misc type autofs
<br>
(rw,relatime,fd=7,pgrp=1257,timeout=300,minproto=5,maxproto=5,indirect)
<br>
-hosts on /net type autofs
<br>
(rw,relatime,fd=13,pgrp=1257,timeout=300,minproto=5,maxproto=5,indirect)
<br>
</blockquote>
<br>
Can you check the 389-ds access log on the server when you restart
the autofs service on the client? This should show us if it is
connecting, what it is searching for and how many (if any) entries
it found. Note that 389-ds buffers the access log so it could be a
few seconds before you see any output.
<br>
<br>
rob
<br>
<br>
<blockquote type="cite">
<br>
Pavel
<br>
On Wed, 06 Jul 2011 09:11:29 -0400
<br>
Rob Crittenden <a class="moz-txt-link-rfc2396E" href="mailto:rcritten@redhat.com"><rcritten@redhat.com></a> wrote:
<br>
<blockquote type="cite">Pavel Zhukov wrote:
<br>
<blockquote type="cite">Hi all
<br>
<br>
I'm trying to install and configure FreeIPA and automount
<br>
<a class="moz-txt-link-freetext" href="https://fedoraproject.org/wiki/QA:Testcase_freeipav2_automount">https://fedoraproject.org/wiki/QA:Testcase_freeipav2_automount</a>
<br>
<br>
/etc/sysconfig/autofs
<br>
MAP_OBJECT_CLASS="automountMap"
<br>
ENTRY_OBJECT_CLASS="automount"
<br>
MAP_ATTRIBUTE="automountMapName"
<br>
ENTRY_ATTRIBUTE="automountKey"
<br>
VALUE_ATTRIBUTE="automountInformation"
<br>
LDAP_URI=<a class="moz-txt-link-rfc2396E" href="ldap://freeipa.home.zhukoff.net">"ldap://freeipa.home.zhukoff.net"</a>
<br>
##SEARCH_BASE="cn=dafault,cn=automount,dc=home,dc=zhukoff,dc=net"
<br>
SEARCH_BASE="cn=automount,dc=home,dc=zhukoff,dc=net"
<br>
<br>
$ showmount -e freeipa.home.zhukoff.net
<br>
Export list for freeipa.home.zhukoff.net:
<br>
/share/man 192.168.12.0/16
<br>
/home 192.168.12.0/16
<br>
<br>
<br>
$ ipa automountkey-find default auto.master
<br>
Key: /-
<br>
Mount information: auto.direct
<br>
<br>
Key: /share
<br>
Mount information: auto.share
<br>
----------------------------
<br>
Number of entries returned 2
<br>
----------------------------
<br>
$ ipa automountkey-find default auto.share
<br>
Key: man
<br>
Mount information: -ro,soft,rsize=8192,wsize=8192
<br>
freeipa.home.zhukoff.net:/share/man
<br>
----------------------------
<br>
Number of entries returned 1
<br>
----------------------------
<br>
$ ipa automountkey-find default auto.master
<br>
Key: /-
<br>
Mount information: auto.direct
<br>
<br>
Key: /share
<br>
Mount information: auto.share
<br>
----------------------------
<br>
Number of entries returned 2
<br>
----------------------------
<br>
<br>
/var/log/messages:
<br>
Jul 4 00:40:51 ipaclient automount[2227]: st_expire: state 1
path /net
<br>
Jul 4 00:40:51 ipaclient automount[2227]: expire_proc:
exp_proc =
<br>
139786245711616 path /net
<br>
Jul 4 00:40:51 ipaclient automount[2227]: expire_cleanup:
got thid
<br>
139786245711616 path /net stat 0
<br>
Jul 4 00:40:51 ipaclient automount[2227]: expire_cleanup:
sigchld: exp
<br>
139786245711616 finished, switching from 2 to 1
<br>
Jul 4 00:40:51 ipaclient automount[2227]: st_ready:
st_ready(): state =
<br>
2 path /net
<br>
<br>
But automount doesn't work. Mount nothing.
<br>
Can anybody help me?
<br>
<br>
</blockquote>
<br>
Two suggestions for /etc/sysconfig/autofs on ipaclient:
<br>
<br>
1. Set LOGGING="debug"
<br>
2. Set SEARCH_BASE to
<br>
cn=default,cn=automount,dc=home,dc=zhukoff,dc=net. Your
commented-out
<br>
line has default misspelled.
<br>
<br>
Don't forget to restart autofs service
<br>
<br>
rob
<br>
</blockquote>
<br>
</blockquote>
<br>
_______________________________________________
<br>
Freeipa-users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Freeipa-users@redhat.com">Freeipa-users@redhat.com</a>
<br>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/freeipa-users">https://www.redhat.com/mailman/listinfo/freeipa-users</a>
<br>
</blockquote>
</body>
</html>