Comment 19 for bug 920749

Revision history for this message
In , Jean-Christophe Dubacq (jcdubacq1) wrote :

The alias capability is a glibc feature, indeed. I found it quite reliable, but the real locale is la_CO.charset. This works correctly on Linux and MacOSX and, I presume on BSD, since MacOSX is derived from it. Working on Linux/MacOSX/BSD is enough of a standard for me.

> Sentence above confirm that reported issue is configuration problem -
> system default setting override already set variable !!!!

This is because there is no known way to set variable AFTER default setting.

If you look at session.c around line 1265 (openssh 5.1p1), you will see that the variables sent by SendEnv are put in a new environment, THEN the pam environment is copied over this environment. This means that pam never sees the SendEnv variables (which would be another solution to the problem, since pam_env has a syntax for not overriding a preset variable). However, when the pam authentication is done, the variables are not set (and pam does not see them).