search for: do_pam_environment

Displaying 3 results from an estimated 3 matches for "do_pam_environment".

2001 Dec 18
1
[PATCH]: Fix environment variable size restriction in Cygwin version
Hi, the following patch changes the Cygwin specific function copy_environment() to not restricting the strlen of a single environment variable to 512 byte. The PAM specific function do_pam_environment() (also in session.c) has the same problem but I don't know if that's important for PAM since only PAM specific environment variables are copied in that function. The below patch fixes that problem only for Cygwin for now. Thanks, Corinna Index: session.c ================================...
2000 Dec 28
0
sshd and pam_env both read /etc/environment, but assume different syntax
...an (open)ssh 1:2.2.0p1-1.1, yes, it still suffers > from the same problem. > The relevant code is now around line 1116 of openssh-2.2.0p1/session.c. > ---8<---8<--- > #ifdef USE_PAM > /* Pull in any environment variables that may have been set by PAM. */ > do_pam_environment(&env, &envsize); > #endif /* USE_PAM */ > read_environment_file(&env,&envsize,"/etc/environment"); > ---8<---8<--- > The function do_pam_environment() incorporates all the variables defined > by pam_env, but those defined in /etc/environment...
2002 Feb 12
0
[Patch] Xauthority file in /tmp
...+ *p = '\0'; + rmdir(xauthfile); + } + xfree(xauthfile); + xauthfile = NULL; + restore_uid(); + } +} + + /* * Prepares for an interactive session. This is called after the user has * been successfully authenticated. During this message exchange, pseudo @@ -1300,6 +1325,8 @@ do_pam_environment(&env, &envsize); #endif /* USE_PAM */ + if (xauthfile) + child_set_env(&env, &envsize, "XAUTHORITY", xauthfile); if (auth_get_socket_name() != NULL) child_set_env(&env, &envsize, SSH_AUTHSOCKET_ENV_NAME, auth_get_socket_name()); @@ -2039,6 +2066,...