# HG changeset patch # User Uwe Kleine-König # Date 1570987180 25200 # Node ID af3c3c0a1f3b178bcb7f3c796b37678a7f21b6f7 # Parent 3bb9610fcc12a936781ab0f1aad7cd19258934f7 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. diff -r 3bb9610fcc12 -r af3c3c0a1f3b shelldap --- a/shelldap Sat Aug 31 21:47:20 2019 -0700 +++ b/shelldap Sun Oct 13 10:19:40 2019 -0700 @@ -770,7 +770,6 @@ # if ( $sasl_conn ) { $rv = $ldap->bind( $conf->{'binddn'}, - password => $conf->{'bindpass'}, sasl => $sasl_conn ); }