From 9cf328b21c1e39f6071146ad30aaf317b93882d5 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 25 Mar 2008 14:27:56 +0000 Subject: - adduserdrake o force the password to be utf8 (#23273) (that's what userdrake do) --- perl-install/authentication.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'perl-install/authentication.pm') diff --git a/perl-install/authentication.pm b/perl-install/authentication.pm index e292639f4..c4c7d4884 100644 --- a/perl-install/authentication.pm +++ b/perl-install/authentication.pm @@ -720,6 +720,9 @@ sub salt { sub user_crypted_passwd { my ($u, $isMD5) = @_; if ($u->{password}) { + require utf8; + utf8::encode($u->{password}); #- we don't want perl to do "smart" things in crypt() + crypt($u->{password}, $isMD5 ? '$1$' . salt(8) : salt(2)); } else { $u->{pw} || ''; -- cgit v1.2.1