aboutsummaryrefslogtreecommitdiffstats
path: root/GSS_AUTH_KRB5_PRINC-env4openssh.diff
blob: 60b555fcc79d64fdc27326d984d977b2bb4245cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- gss-serv-krb5.c.orig	2012-07-12 14:33:31.117551679 +0200
+++ gss-serv-krb5.c	2012-07-12 14:34:30.319020970 +0200
@@ -104,6 +104,11 @@
 	} else
 		retval = 0;
 
+#ifdef USE_PAM
+        if (options.use_pam)
+             do_pam_putenv("GSS_AUTH_KRB5_PRINC", (char *)client->displayname.value);
+#endif
+
 	krb5_free_principal(krb_context, princ);
 	return retval;
 }