Commit 59a262aa authored by Clément OUDOT's avatar Clément OUDOT
Browse files

Force decoding of LDAP Manager password (#827)

parent f82afc00
...@@ -93,7 +93,7 @@ sub bind { ...@@ -93,7 +93,7 @@ sub bind {
my ( $dn, %args ) = @_; my ( $dn, %args ) = @_;
unless ($dn) { unless ($dn) {
$dn = $self->{portal}->{managerDn}; $dn = $self->{portal}->{managerDn};
$args{password} = $self->{portal}->{managerPassword}; $args{password} = decode( 'utf-8', $self->{portal}->{managerPassword} );
} }
if ( $dn && $args{password} ) { if ( $dn && $args{password} ) {
if ( $self->{portal}->{ldapPwdEnc} ne 'utf-8' ) { if ( $self->{portal}->{ldapPwdEnc} ne 'utf-8' ) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment