[Freeipa-users] FreeIPA automount

Rob Crittenden rcritten at redhat.com
Wed Jul 6 13:11:29 UTC 2011


Pavel Zhukov wrote:
> Hi all
>
> I'm trying to install and configure FreeIPA and automount
> https://fedoraproject.org/wiki/QA:Testcase_freeipav2_automount
>
> /etc/sysconfig/autofs
> MAP_OBJECT_CLASS="automountMap"
> ENTRY_OBJECT_CLASS="automount"
> MAP_ATTRIBUTE="automountMapName"
> ENTRY_ATTRIBUTE="automountKey"
> VALUE_ATTRIBUTE="automountInformation"
> LDAP_URI="ldap://freeipa.home.zhukoff.net"
> ##SEARCH_BASE="cn=dafault,cn=automount,dc=home,dc=zhukoff,dc=net"
> SEARCH_BASE="cn=automount,dc=home,dc=zhukoff,dc=net"
>
> $ showmount -e freeipa.home.zhukoff.net
> Export list for freeipa.home.zhukoff.net:
> /share/man 192.168.12.0/16
> /home 192.168.12.0/16
>
>
> $ ipa automountkey-find default auto.master
> Key: /-
> Mount information: auto.direct
>
> Key: /share
> Mount information: auto.share
> ----------------------------
> Number of entries returned 2
> ----------------------------
> $ ipa automountkey-find default auto.share
> Key: man
> Mount information: -ro,soft,rsize=8192,wsize=8192
> freeipa.home.zhukoff.net:/share/man
> ----------------------------
> Number of entries returned 1
> ----------------------------
> $ ipa automountkey-find default auto.master
> Key: /-
> Mount information: auto.direct
>
> Key: /share
> Mount information: auto.share
> ----------------------------
> Number of entries returned 2
> ----------------------------
>
> /var/log/messages:
> Jul 4 00:40:51 ipaclient automount[2227]: st_expire: state 1 path /net
> Jul 4 00:40:51 ipaclient automount[2227]: expire_proc: exp_proc =
> 139786245711616 path /net
> Jul 4 00:40:51 ipaclient automount[2227]: expire_cleanup: got thid
> 139786245711616 path /net stat 0
> Jul 4 00:40:51 ipaclient automount[2227]: expire_cleanup: sigchld: exp
> 139786245711616 finished, switching from 2 to 1
> Jul 4 00:40:51 ipaclient automount[2227]: st_ready: st_ready(): state =
> 2 path /net
>
> But automount doesn't work. Mount nothing.
> Can anybody help me?
>

Two suggestions for /etc/sysconfig/autofs on ipaclient:

1. Set LOGGING="debug"
2. Set SEARCH_BASE to cn=default,cn=automount,dc=home,dc=zhukoff,dc=net. 
Your commented-out line has default misspelled.

Don't forget to restart autofs service

rob




More information about the Freeipa-users mailing list