<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000066">
Or better, let sssd to serve maps for automounter, you save yourself
a hassle with configuring automount ldap backend :-)<br>
Ondrej<br>
<br>
On 12/22/2012 11:16 AM, Sigbjorn Lie wrote:
<blockquote cite="mid:50D58897.7000300@nixtra.com" type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class="moz-cite-prefix">On 12/22/2012 10:24 AM, Johan
Petersson wrote:<br>
</div>
<blockquote
cite="mid:558C15177F5E714F83334217C9A197DF5DB82402@SSC-MBX2.ssc.internal"
type="cite">
<style type="text/css" id="owaParaStyle"></style>
<div style="direction: ltr;font-family: Tahoma;color:
#000000;font-size: 10pt;">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.
<div>Was going to set this up for some other configuration
testing but are stuck on this instead. :)</div>
<div><br>
<div>Feels like i am missing something basic but can't
figure it out.</div>
<div>Followed the guide and tried a variety of automount
maps but nothing works.</div>
<div>Had automount working before installing IPA Client
with:</div>
<div>auto.master:</div>
<div>/home<span class="Apple-tab-span"
style="white-space:pre"> </span>/etc/auto.home</div>
<div>auto.home</div>
<div>*<span class="Apple-tab-span" style="white-space:pre">
</span>servername:/home/&</div>
<div><br>
</div>
<div>I can mount /home from the client:</div>
<div><br>
</div>
<div>mount -t nfs4 -o sec=krb5 servername:/home /mnt</div>
<div><br>
</div>
<div>/etc/sysconfig/autofs:</div>
<div><br>
</div>
<div>
<div><br>
</div>
<div>LDAP_URI=<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="ldap://servername">"ldap://servername"</a></div>
<div>SEARCH_BASE="cn=default,cn=automount,dc=home"</div>
<div><br>
</div>
<div>MAP_OBJECT_CLASS="automountMap"</div>
<div>ENTRY_OBJECT_CLASS="automount"</div>
<div>MAP_ATTRIBUTE="automountMapName"</div>
<div>ENTRY_ATTRIBUTE="automountKey"</div>
<div>VALUE_ATTRIBUTE="automountInformation"</div>
</div>
<div><br>
</div>
<div>Getting this from debug lvl logging on autofs:</div>
<div><br>
</div>
<div>
<div>Dec 22 09:13:00 client2 automount[4528]: connected to
uri <a moz-do-not-send="true"
class="moz-txt-link-freetext" href="ldap://servername">ldap://servername</a></div>
<div>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"</div>
<div>Dec 22 09:13:00 client2 automount[4528]:
do_get_entries: lookup(ldap): query succeeded, no
matches for (objectclass=automount)</div>
<div>Dec 22 09:13:00 client2 automount[4528]:
read_one_map: lookup(ldap): done updating map</div>
<div>Dec 22 09:13:00 client2 automount[4528]: st_ready:
st_ready(): state = 0 path /-</div>
</div>
<div><br>
</div>
<div>So what am i missing here?</div>
<div><br>
</div>
<br>
</div>
</div>
</blockquote>
<br>
Hi,<br>
<br>
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.<br>
+auto.master<br>
<br>
<br>
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...)<br>
<br>
<br>
In your /etc/nsswitch.conf file, make sure your automount line
looks like this:<br>
automount: files ldap<br>
<br>
<br>
Let me know how you get on.<br>
<br>
<br>
<br>
Regards,<br>
Siggi<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Freeipa-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Freeipa-users@redhat.com">Freeipa-users@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/freeipa-users">https://www.redhat.com/mailman/listinfo/freeipa-users</a></pre>
</blockquote>
</body>
</html>