On Tue, May 05, 2015 at 01:35:20PM +0200, Lukas Slebodnik wrote:
On (05/05/15 12:16), Simon wrote:
>Hi,
>
>I have configured an Ubuntu 14.04 server to authenticate against, and use
>attributes from, Active Directory running on Server 2008 R2.
>
>However, I have a seemingly odd issue whereby user environment variables
>(which are initially set correctly) get lost on the second (or third) and
>then subsequent logins E.g.
>
>First login:
>
>Creating directory '/Users/domainuser'.
>domainuser@localhost:~$ pwd
>/Users/domainuser
>domainuser@localhost:~$ echo $HOME
>/Users/domainuser
>domainuser@localhost:~$ getent passwd domainuser
>domainuser:*:4000:3000:DomainUser:/Users/domainuser:/bin/bash
>domainuser@localhost:~$ exit
>
>Second (or third) login:
>$ pwd
>/
>$ echo $HOME
>/
>$ getent passwd domainuser
>domainuser:*:4000:3000:DomainUser:/:
>
For some reasons homeDirectory attribute was changes.
It's diffucult to say why.
Because it's not replicated to AD.
Set:
ad_enable_gc = False
or replicate the POSIX attribute to GC.