* Use pam_xauth in su to pass the X cookies.

svn path=/nixos/trunk/; revision=7702
This commit is contained in:
Eelco Dolstra 2007-01-16 22:25:28 +00:00
parent 9866132d81
commit 55e7f8f5dc
2 changed files with 2 additions and 0 deletions

@ -97,6 +97,7 @@ import ../helpers/make-etc.nix {
if config.get ["users" "ldap" "enable"]
then pkgs.pam_ldap
else "/no-such-path";
inherit (pkgs.xorg) xauth;
};
target = "pam.d/" + program;
}

@ -3,3 +3,4 @@ auth include common-auth
account include common-account
password include common-password
session include common-session
session optional pam_xauth.so xauthpath=@xauth@/bin/xauth systemuser=99