summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/NEWS3
-rw-r--r--perl-install/authentication.pm3
-rw-r--r--perl-install/install/NEWS3
3 files changed, 9 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 22cc7b600..bf9319820 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,3 +1,6 @@
+- adduserdrake
+ o force the password to be utf8 (#23273)
+
Version 10.19 - 21 March 2008
- bootloader-config, drakboot:
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} || '';
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index bd10a3635..f0d1ed684 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,3 +1,6 @@
+- root/user password:
+ o force the password to be utf8 (#23273)
+
Version 10.19 - 21 March 2008
- diskdrake: