<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <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">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <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 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 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>
  </body>
</html>