On 12/22/2012 10:24 AM, Johan Petersson wrote:
I can't get automount to work for some reason on a CentOS 6.3
testserver with the NFS and IPA server on the same server.
Was going to set this up for some other configuration testing but are
stuck on this instead. :)
Feels like i am missing something basic but can't figure it out.
Followed the guide and tried a variety of automount maps but nothing
works.
Had automount working before installing IPA Client with:
auto.master:
/home/etc/auto.home
auto.home
*servername:/home/&
I can mount /home from the client:
mount -t nfs4 -o sec=krb5 servername:/home /mnt
/etc/sysconfig/autofs:
LDAP_URI="ldap://servername"
SEARCH_BASE="cn=default,cn=automount,dc=home"
MAP_OBJECT_CLASS="automountMap"
ENTRY_OBJECT_CLASS="automount"
MAP_ATTRIBUTE="automountMapName"
ENTRY_ATTRIBUTE="automountKey"
VALUE_ATTRIBUTE="automountInformation"
Getting this from debug lvl logging on autofs:
Dec 22 09:13:00 client2 automount[4528]: connected to uri
ldap://servername
Dec 22 09:13:00 client2 automount[4528]: read_one_map: lookup(ldap):
searching for "(objectclass=automount)" under
"automountmapname=auto.direct,cn=default,cn=automount,dc=home"
Dec 22 09:13:00 client2 automount[4528]: do_get_entries: lookup(ldap):
query succeeded, no matches for (objectclass=automount)
Dec 22 09:13:00 client2 automount[4528]: read_one_map: lookup(ldap):
done updating map
Dec 22 09:13:00 client2 automount[4528]: st_ready: st_ready(): state =
0 path /-
So what am i missing here?
Hi,
In your /etc/auto.master, do you still have the following line as the
last line in the file? If not, add it back in.
+auto.master
Do you still have a specific map for auto.home in your /etc/auto.master?
If so, add +auto.home to the end of your /etc/auto.home file. (Provided
you named the automount map auto.home in IPA too...)
In your /etc/nsswitch.conf file, make sure your automount line looks
like this:
automount: files ldap
Let me know how you get on.
Regards,
Siggi
_______________________________________________
Freeipa-users mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/freeipa-users