diff options
author | Mark Wells <mark@freeside.biz> | 2012-03-13 13:35:22 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2012-03-13 13:35:22 -0700 |
commit | da590709ee5f3e6a661950fcfce39dbbf9d6add4 (patch) | |
tree | adb857c098d0d9f14939e462881cf2374dadd015 /FS/FS/svc_acct.pm | |
parent | fdd00d4549faaa9de8952402f77fa86d0b8b22ee (diff) |
fix selfservice password change with ldap encoding, #16810
Diffstat (limited to 'FS/FS/svc_acct.pm')
-rw-r--r-- | FS/FS/svc_acct.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm index 139f927..e67db43 100644 --- a/FS/FS/svc_acct.pm +++ b/FS/FS/svc_acct.pm @@ -2524,7 +2524,8 @@ sub check_password { if ( $self->_password_encoding eq 'ldap' ) { - my $auth = from_rfc2307 Authen::Passphrase $self->_password; + $password =~ s/^{PLAIN}/{CLEARTEXT}/; + my $auth = from_rfc2307 Authen::Passphrase $password; return $auth->match($check_password); } elsif ( $self->_password_encoding eq 'crypt' ) { |