Bug#313317: openssh-server: PAM environment takes precedence over SendEnv
I think the locale PAM directive just doesn't make sense because the
user provides the sensible default. LANG unset is a sensible default
Anyway, if I ever wanted to have a default value, e.g. for LANG, this is
what I'd do:
* Set the SendEnv variables in the PAM environment before pam_env
executes (use pam_putenv or do_pam_putenv).
* PAM directive: pam_env.so conffile=/etc/default/locale
* /etc/default/locale: LANG DEFAULT=#default_locale# OVERRIDE=
This way PAM still has more priority and allows SendEnv to pass through.