Bug 29941 - lightdm login script to create univention.environment file from desktop policy
lightdm login script to create univention.environment file from desktop policy
Status: RESOLVED FIXED
Product: Z_Univention Corporate Client (UCC)
Classification: Unclassified
Component: User logins
unspecified
Other Linux
: P5 normal
: ---
Assigned To: Felix Botner
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-07 09:32 CET by Felix Botner
Modified: 2013-01-08 18:11 CET (History)
0 users

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2013-01-07 09:32:15 CET
We need a login script that creates a univention.environment (environment file for pam_env) from the users "environment variables" policy.
Comment 1 Felix Botner univentionstaff 2013-01-08 18:11:49 CET
lightdm login scripts are executed to late for pam_env. We need to run the script in the pam stack.

(1) in /etc/pam.d/lightdm (before common-session) /usr/sbin/univention-ucc-fetch-policies is executed with pam_runasroot

(2) /usr/sbin/univention-ucc-fetch-policies creates an environment file (~/.ucc-environment) from the users "univentionCorporateClientDesktopEnv" policy settings

(3) in /etc/pam.d/common-session pam_env is executed with ~/.ucc-environment as environment file

New environment variable for users should be available after the next lightdm login