summaryrefslogtreecommitdiff
path: root/FS/FS/svc_acct.pm
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2012-03-13 13:35:22 -0700
committerMark Wells <mark@freeside.biz>2012-03-13 13:35:22 -0700
commitda590709ee5f3e6a661950fcfce39dbbf9d6add4 (patch)
treeadb857c098d0d9f14939e462881cf2374dadd015 /FS/FS/svc_acct.pm
parentfdd00d4549faaa9de8952402f77fa86d0b8b22ee (diff)
fix selfservice password change with ldap encoding, #16810
Diffstat (limited to 'FS/FS/svc_acct.pm')
-rw-r--r--FS/FS/svc_acct.pm3
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' ) {