<div dir="ltr">Well, in a related development, it appears there is a hardware issue with the testing PC- bad hard disk. Will replace, reinstall OS, and re-test.<div><br></div><div>However, there is definitely a case sensitivity issue happening.<br>

<div><br></div><div>My other hosts only have an issue when logging in with Guest as opposed to guest. Guest causes /home/guest to be created despite what&#39;s in the unixHomeDirectory attribute; then I&#39;m always dropped in / because &quot;Could not chdir to home directory /tmp/Guest: No such file or directory.&quot; I imagine this because sssd is lowercasing usernames but PAM isn&#39;t? &quot;getent passwd guest&quot; always returns the same result: <span style="font-size:13px;font-family:arial,sans-serif">guest:*:1596000501:1596000514:</span><span style="font-size:13px;font-family:arial,sans-serif">Guest:/tmp/Guest:/bin/bash</span></div>

<div><br></div><div>If I login in with guest, everything works as expected (after the cache is cleared). It seems strange that I&#39;m even allowed to auth with both guest and Guest. Shouldn&#39;t one fail? Is this a bug or feature?</div>

</div></div><div class="gmail_extra"><br clear="all"><div><div><br></div>-Chris</div>
<br><br><div class="gmail_quote">On Wed, Oct 9, 2013 at 11:50 AM, Chris Hartman <span dir="ltr">&lt;<a href="mailto:qrstuv@gmail.com" target="_blank">qrstuv@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Hmm. This may be host-specific. I&#39;m not able to reproduce this problem on other hosts.<div><br></div><div>Does getent use a cache that could be screwing things up? I&#39;ve disabled caching and enumerating in SSSD temporarily for troubleshooting.</div>

<span class="HOEnZb"><font color="#888888">
</font></span></div><div class="gmail_extra"><span class="HOEnZb"><font color="#888888"><br clear="all"><div><div><br></div>-Chris</div></font></span><div><div class="h5">
<br><br><div class="gmail_quote">On Wed, Oct 9, 2013 at 11:47 AM, Chris Hartman <span dir="ltr">&lt;<a href="mailto:qrstuv@gmail.com" target="_blank">qrstuv@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr">getent passwd Guest returns:<div><br></div><div>guest:*:1596000501:1596000514:Guest:/:/bin/bash<br></div><div><br></div><div>Also, I&#39;m wondering if this has something to do with case sensitivity? `getent passwd Guest` and `getent passwd guest` return the same result. Also, I can login with either Guest or guest. Just a thought.</div>


<span><font color="#888888">
</font></span></div><div class="gmail_extra"><span><font color="#888888"><br clear="all"><div><div><br></div>-Chris</div></font></span><div><div>
<br><br><div class="gmail_quote">On Wed, Oct 9, 2013 at 11:32 AM, Jakub Hrozek <span dir="ltr">&lt;<a href="mailto:jhrozek@redhat.com" target="_blank">jhrozek@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div><div>On Wed, Oct 09, 2013 at 11:25:51AM -0400, Chris Hartman wrote:<br>
&gt; I&#39;m having a problem getting pam_mkhomedir.so to make a user&#39;s home<br>
&gt; directory when it&#39;s specified using an LDAP attribute. The backend<br>
&gt; directory server is AD on Server 2008. The client is Ubuntu 12.04, sssd<br>
&gt; version 1.11.1.<br>
&gt;<br>
&gt; First, my sssd.conf:<br>
&gt;<br>
&gt; [sssd]<br>
&gt; config_file_version = 2<br>
&gt; debug_level = 0<br>
&gt; reconnection_retries = 3<br>
&gt; sbus_timeout = 30<br>
&gt; services = nss, pam<br>
&gt; domains = domain<br>
&gt;<br>
&gt; [pam]<br>
&gt; debug_level = 0<br>
&gt;<br>
&gt; [nss]<br>
&gt; debug_level = 0<br>
&gt; filter_users =<br>
&gt; root,ldap,named,avahi,haldaemon,dbus,radvd,tomcat,radiusd,news,mailman,nscd,gdm<br>
&gt; filter_groups =<br>
&gt; root,ldap,named,avahi,haldaemon,dbus,radvd,tomcat,radiusd,news,mailman,nscd,gdm<br>
&gt; reconnection_retries = 3<br>
&gt;<br>
&gt; [domain/domain]<br>
&gt; debug_level = 0<br>
&gt; ad_domain = domain.local<br>
&gt; id_provider = ad<br>
&gt; auth_provider = ad<br>
&gt; chpass_provider = ad<br>
&gt; access_provider = ad<br>
&gt; enumerate = true<br>
&gt; cache_credentials = true<br>
&gt; # Will check unixHomeDirectory LDAP attribute for a value first<br>
&gt; fallback_homedir = /home/%u<br>
&gt; ldap_user_home_directory = unixHomeDirectory<br>
&gt; dyndns_update = true<br>
&gt; dyndns_update_ptr = true<br>
&gt; ldap_schema = ad<br>
&gt; ldap_id_mapping = true<br>
&gt;<br>
&gt; I&#39;m testing using the Guest user.<br>
&gt;<br>
&gt; Guest, unlike all my other users, has a home directory set in the<br>
&gt; unixHomeDirectory attribute (/tmp/Guest). All other users rely on the<br>
&gt; fallback_homedir option. When a normal user signs in and does not have a<br>
&gt; home directory, I&#39;ve configured pam to create one by adding this to the<br>
&gt; common-session file:<br>
&gt;<br>
&gt; session required pam_mkhomedir.so umask=077<br>
&gt;<br>
&gt; This all works fine when ldap_user_home_directory is empty; the home<br>
&gt; directory is created automatically upon logging in using the<br>
&gt; fallback_homedir option.<br>
&gt;<br>
&gt; However, when unixHomeDirectory actually contains a path, no home directory<br>
&gt; is ever created and I&#39;m always dropped in /.<br>
&gt;<br>
&gt; Interestingly enough, &quot;echo $HOME&quot; as the Guest returns two different<br>
&gt; values depending on if fallback_homedir is set. If it is set, $HOME =<br>
&gt; /home/Guest. If it&#39;s commented out, $HOME = /tmp/Guest.<br>
&gt;<br>
&gt; Any ideas? Thanks!<br>
&gt;<br>
&gt; -Chris<br>
<br>
<br>
</div></div>What does getent passwd Guest say? Which homedir do you get back?<br>
_______________________________________________<br>
sssd-users mailing list<br>
<a href="mailto:sssd-users@lists.fedorahosted.org" target="_blank">sssd-users@lists.fedorahosted.org</a><br>
<a href="https://lists.fedorahosted.org/mailman/listinfo/sssd-users" target="_blank">https://lists.fedorahosted.org/mailman/listinfo/sssd-users</a><br>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>