Don't provide a password for sasl authentication.

When a sasl parameter is given (and used) the password parameter is not
used by Net::LDAP. If indeed a password is required it has to be passed
in the Authen::SASL object, not as parameter to bind.

So drop the password parameter which stops trying (and failing) to use
password authentication sometimes if in Net/LDAP.pm the iteration over
%ptype hits its 'password' member before the 'sasl' member.

FossilOrigin-Name: b4e59a307c07b9a201ddd841cca963f689b424ad9e2ba6eb3f6522c955d722ad
This commit is contained in:
uwe@kleine-koenig.org 2019-10-13 17:19:40 +00:00
parent 08b07c4143
commit 14974b8a9f

View file

@ -770,7 +770,6 @@ You may try connecting insecurely, or install the module and try again.\n} if $@
#
if ( $sasl_conn ) {
$rv = $ldap->bind( $conf->{'binddn'},
password => $conf->{'bindpass'},
sasl => $sasl_conn
);
}