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:
parent
08b07c4143
commit
14974b8a9f
1 changed files with 0 additions and 1 deletions
1
shelldap
1
shelldap
|
|
@ -770,7 +770,6 @@ You may try connecting insecurely, or install the module and try again.\n} if $@
|
||||||
#
|
#
|
||||||
if ( $sasl_conn ) {
|
if ( $sasl_conn ) {
|
||||||
$rv = $ldap->bind( $conf->{'binddn'},
|
$rv = $ldap->bind( $conf->{'binddn'},
|
||||||
password => $conf->{'bindpass'},
|
|
||||||
sasl => $sasl_conn
|
sasl => $sasl_conn
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue