[Guido Berhoerster]
> When logging in with LightDM the first login always fails due to a
> discrepancy between the the home directory obtained from LDAP via
> getpwent() and the newly created home directory. Specifically, the
> LightDM daemon communicates the absolute path of the Xauthority file to
> the session child process and sets the HOME environment variable to the
> value obtained via getpwent() and uses that value to change the working
> directory, all resulting in fatal errors.

There used to be code in libpam-mklocaluser to throw the user out after
the home directory is created, to ensure that the user is not logged in
with the wrong $HOME set.  Is this not happening with LightDM?  Because
$HOME change after some processes read it, it is not possible to both
create the local home directory and continue with the login.

Or are you talking about being thrown out by libpam-mklocaluser when
logging in for the first time?  This is by design and intented due to
the protocol provided by PAM.

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to