Package: lightdm Version: 1.32.0-3 This is a problem that manifests itself in DebianEdu where roaming workstations obtain user information from LDAP from the school network on the first login and then proceeds to create a local user account and home directory based on that data. That is accomplished by a python script provided by libpam-mklocaluser which is run after successful authentication when opening the pam session via the pam_python PAM module.
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. -- Guido Berhoerster