mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Don't change userPassword attribute if not needed
This commit is contained in:
@@ -257,6 +257,10 @@ for(my $i=0; $i<@attrs; $i+=2) {
|
||||
local $v = $attrs[$i+1];
|
||||
push(@{$replace{$attrs[$i]}}, ref($v) ? @$v : $v);
|
||||
}
|
||||
if ($_[0]->{'pass'} eq $_[1]->{'pass'}) {
|
||||
# Don't change password attribute if not change
|
||||
delete($replace{'userPassword'});
|
||||
}
|
||||
# Do rename to new DN first
|
||||
if ($_[0]->{'user'} ne $_[1]->{'user'}) {
|
||||
local $newdn = $_[0]->{'dn'};
|
||||
|
||||
Reference in New Issue
Block a user