mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
default to simple bind when -D is specified and no SASL-related options are used (ITS#5753)
This commit is contained in:
parent
4cef770d2b
commit
eba56f0ec9
@ -981,7 +981,11 @@ tool_args( int argc, char **argv )
|
||||
|
||||
if (authmethod == -1 && protocol > LDAP_VERSION2) {
|
||||
#ifdef HAVE_CYRUS_SASL
|
||||
authmethod = LDAP_AUTH_SASL;
|
||||
if ( binddn != NULL ) {
|
||||
authmethod = LDAP_AUTH_SIMPLE;
|
||||
} else {
|
||||
authmethod = LDAP_AUTH_SASL;
|
||||
}
|
||||
#else
|
||||
authmethod = LDAP_AUTH_SIMPLE;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user