<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>Thanks indeed for the reply!<div><br></div><div>I updated the autofs package with version <b>5.0.5-30.el6.i686</b> and that error is gone now. But still automounting is not happening. Following is the relevant portion of /var/log/messages in one of the IPA client machine(RHEL 6.1 beta) configured with --mkhomedir switch .</div><div><br></div><div><div>May 16 14:14:13 rhel automount[1787]: lookup_mount: lookup(ldap): looking up test1</div><div>May 16 14:14:13 rhel automount[1787]: find_server: trying server uri ldap://192.168.1.240</div><div>May 16 14:14:13 rhel automount[1787]: do_bind: lookup(ldap): auth_required: 1, sasl_mech (null)</div><div>May 16 14:14:13 rhel automount[1787]: do_bind: lookup(ldap): ldap simple bind returned 0</div><div>May 16 14:14:13 rhel automount[1787]: get_query_dn: lookup(ldap): check search base list</div><div>May 16
14:14:13 rhel automount[1787]: get_query_dn: lookup(ldap): found search base under cn=automount,dc=cohort,dc=org</div><div>May 16 14:14:13 rhel automount[1787]: get_query_dn: lookup(ldap): found query dn automountmapname=auto.home,cn=default,cn=automount,dc=cohort,dc=org</div><div>May 16 14:14:13 rhel automount[1787]: connected to uri ldap://192.168.1.240</div><div>May 16 14:14:13 rhel automount[1787]: lookup_one: lookup(ldap): searching for "(&(objectclass=automount)(|(automountKey=test1)(automountKey=/)(automountKey=\2A)))" under "automountmapname=auto.home,cn=default,cn=automount,dc=cohort,dc=org"</div><div>May 16 14:14:13 rhel automount[1787]: lookup_one: lookup(ldap): getting first entry for automountKey="test1"</div><div>May 16 14:14:13 rhel automount[1787]: lookup_one: lookup(ldap): examining first entry</div><div>May 16 14:14:13 rhel automount[1787]: lookup_mount: lookup(ldap): test1 -> -fstype=nfs4,rw,sec=krb5,soft,rsize=8192,wsize=8192
hugayat.cohort.org:/xtra/home/&</div><div>May 16 14:14:13 rhel automount[1787]: parse_mount: parse(sun): expanded entry: -fstype=nfs4,rw,sec=krb5,soft,rsize=8192,wsize=8192 hugayat.cohort.org:/xtra/home/test1</div><div>May 16 14:14:13 rhel automount[1787]: parse_mount: parse(sun): gathered options: fstype=nfs4,rw,sec=krb5,soft,rsize=8192,wsize=8192</div><div>May 16 14:14:13 rhel automount[1787]: parse_mount: parse(sun): dequote("hugayat.cohort.org:/xtra/home/test1") -> hugayat.cohort.org:/xtra/home/test1</div><div>May 16 14:14:13 rhel automount[1787]: parse_mount: parse(sun): core of entry: options=fstype=nfs4,rw,sec=krb5,soft,rsize=8192,wsize=8192, loc=hugayat.cohort.org:/xtra/home/test1</div><div>May 16 14:14:13 rhel automount[1787]: sun_mount: parse(sun): mounting root /home, mountpoint test1, what hugayat.cohort.org:/xtra/home/test1, fstype nfs4, options rw,sec=krb5,soft,rsize=8192,wsize=8192</div><div>May 16 14:14:13 rhel automount[1787]:
mount_mount: mount(nfs): root=/home name=test1 what=hugayat.cohort.org:/xtra/home/test1, fstype=nfs4, options=rw,sec=krb5,soft,rsize=8192,wsize=8192</div><div>May 16 14:14:13 rhel automount[1787]: mount_mount: mount(nfs): nfs options="rw,sec=krb5,soft,rsize=8192,wsize=8192", nosymlink=0, ro=0</div><div>May 16 14:14:13 rhel automount[1787]: mount_mount: mount(nfs): calling mkdir_path /home/test1</div><div>May 16 14:14:13 rhel automount[1787]: mount_mount: mount(nfs): calling mount -t nfs4 -s -o rw,sec=krb5,soft,rsize=8192,wsize=8192 hugayat.cohort.org:/xtra/home/test1 /home/test1</div><div>May 16 14:14:13 rhel automount[1787]: >> mount.nfs4: mounting hugayat.cohort.org:/xtra/home/test1 failed, reason given by server:</div><div>May 16 14:14:13 rhel automount[1787]: >> No such file or directory</div><div>May 16 14:14:13 rhel automount[1787]: mount(nfs): nfs: mount failure hugayat.cohort.org:/xtra/home/test1 on /home/test1</div><div>May
16 14:14:13 rhel automount[1787]: dev_ioctl_send_fail: token = 47</div><div>May 16 14:14:13 rhel automount[1787]: failed to mount /home/test1</div></div><div><br></div><div><br></div><div>Please note the following points,</div><div><br></div><div> -- All the configuration you had suggested for autofs & nsswitch had already been done</div><div> -- My NFS server is another IPA client machine with RHEL 6.1(hugayat.cohort.org)</div><div> -- This NFS server has <b>/xtra/home/</b> as the NFS partition and /etc/exports file as follows</div><div><div><b><br></b></div><div><b>/xtra/home *(rw,fsid=0,insecure,no_subtree_check)</b></div><div><b>/xtra/home gss/krb5(rw,fsid=0,insecure,no_subtree_check)</b></div><div><b>/xtra/home gss/krb5i(rw,fsid=0,insecure,no_subtree_check)</b></div><div><b>/xtra/home gss/krb5p(rw,fsid=0,insecure,no_subtree_check)</b></div></div><div><br></div><div> --
Output of the command <b>ipa automountlocation-tofiles default</b></div><div><br></div><div><div><b>/etc/auto.master:</b></div><div><b>/- /etc/auto.direct</b></div><div><b>/home /etc/auto.home</b></div><div><b>/share /etc/auto.share</b></div><div><b>---------------------------</b></div><div><b>/etc/auto.direct:</b></div><div><b>---------------------------</b></div><div><b>/etc/auto.home:</b></div><div><b>* -fstype=nfs4,rw,sec=krb5,soft,rsize=8192,wsize=8192 hugayat.cohort.org:/xtra/home/&</b></div><div><b>---------------------------</b></div><div><b>/etc/auto.share:</b></div></div><div><br></div><div>I have played various entries corresponding to /etc/auto.home (like /home instead of * ) but with no success.</div><div><br></div><div>Any idea ?</div><div><br></div><div>Regards,</div><div>Nidal</div><div><br></div><div><br>--- On <b>Mon, 5/16/11, Jakub Hrozek
<i><jhrozek@redhat.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Jakub Hrozek <jhrozek@redhat.com><br>Subject: Re: [Freeipa-users] FreeIPA for Linux desktop deployment<br>To: freeipa-users@redhat.com<br>Date: Monday, May 16, 2011, 1:23 AM<br><br><div class="plainMail">On 05/15/2011 06:49 AM, nasir nasir wrote:<br>> Thanks again!<br>> <br>> NO, it was not set. I added it manually now (*automount: ldap *) and<br>> now a different error pops up in /var/log/messages while restarting<br>> autofs service,<br>> <br>> *May 15 06:32:04 hugayat automount[16256]: open_lookup:90: cannot open<br>> lookup module ldap (/usr/lib/autofs/lookup_ldap.so: undefined symbol:<br>> ERR_remove_state)*<br>> *May 15 06:32:04 hugayat automount[16256]: lookup_nss_read_master:<br>> auto.master not found, replacing '.' with '_'*<br>> *May 15
06:32:04 hugayat automount[16256]: open_lookup:90: cannot open<br>> lookup module ldap (/usr/lib/autofs/lookup_ldap.so: undefined symbol:<br>> ERR_remove_state)*<br>> *May 15 06:32:04 hugayat automount[16256]: no mounts in table*<br>> <br>> Quick googling shows that it was part of a bug in earlier version of<br>> autofs(5.0.3) but later fixed. Mine is autofs *autofs-5.0.5-29.el6.i686*<br>> *<br>> *<br>> Also, the symbol *ERR_remove_state *is part of openssl right ? following<br>> is my output of ldd command of lookup_ldap.so,<br><br>I think you ran into <a href="https://bugzilla.redhat.com/show_bug.cgi?id=579963" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=579963</a><br><br>The ERR_remove_state call was removed in autofs-5.0.5-30.el6. I did a<br>quick test with that version and seemed to work fine.<br><br>As per the configuration, the necessary steps are:<br>1) edit /etc/nsswitch.conf and put "automount:
ldap". It is also OK to<br>configure more sources such as "automount: files ldap".<br><br>2) edit /etc/sysconfig/autofs<br>You'll want to specify at least LDAP_URI and SEARCH_BASE according to<br>your server environment. In order for the correct attributes to be<br>searched for, you also need to uncomment the last set of attribute mappings:<br><br>MAP_OBJECT_CLASS="automountMap"<br>ENTRY_OBJECT_CLASS="automount"<br>MAP_ATTRIBUTE="automountMapName"<br>ENTRY_ATTRIBUTE="automountKey"<br>VALUE_ATTRIBUTE="automountInformation"<br><br>3) service autofs restart<br><br>If things still don't work, the logs should tell us more. If you run<br>autofs with -v -d it would even list the exact mount invocation, which<br>could be useful to determine the exact problem.<br><br></div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>Freeipa-users mailing list<br><a
ymailto="mailto:Freeipa-users@redhat.com" href="/mc/compose?to=Freeipa-users@redhat.com">Freeipa-users@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/freeipa-users" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a></div></blockquote></div></td></tr></table>