mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-10 22:33:07 -05:00
Fix authmethod defaulting
This commit is contained in:
parent
2c323d2b2a
commit
908368a245
1 changed files with 8 additions and 0 deletions
|
|
@ -257,6 +257,14 @@ main( int argc, char *argv[] )
|
|||
usage( argv[0] );
|
||||
}
|
||||
|
||||
if (authmethod == -1) {
|
||||
#ifdef HAVE_CYRUS_SASL
|
||||
authmethod = LDAP_AUTH_SASL;
|
||||
#else
|
||||
authmethod = LDAP_AUTH_SIMPLE;
|
||||
#endif
|
||||
}
|
||||
|
||||
dn = strdup( argv[optind] );
|
||||
|
||||
if( want_oldpw && oldpw == NULL ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue