mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 03:59:34 -05: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
1 changed files with 5 additions and 1 deletions
|
|
@ -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 a new issue