The Samba-Bugzilla – Bug 5082
Samba should use C locale for locale-invariant PAM password chats
Last modified: 2007-12-16 01:21:29 UTC
Recent versions of Linux-PAM support localization of user prompts, so Samba must use the C locale when invoking PAM (directly or via /usr/bin/passwd) to ensure that password chat values match the prompts in a locale-invariant fashion.
Created attachment 2972 [details]
patch to always invoke password changes in C locale
patch from Debian/Ubuntu for this issue
Fixed for 3.0.28a and beyond. Thanks !
does this really work if LC_ALL was set?
Hmm, you're right, it doesn't. With glibc 2.7:
$ LC_ALL=es_ES.UTF-8 LC_MESSAGES=C ls nosuchfile
ls: nosuchfile: No existe el fichero ó directorio
it does work when using LANG, but not when using LC_ALL. Sorry, I didn't realize LC_ALL takes precedence (which seems counterintuitive to me, after all). Jeremy, I guess this code should be changed to set LC_ALL instead of LC_MESSAGES?
Fixed to use LC_ALL.