Skip to content
Snippets Groups Projects
Commit 908368a2 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Fix authmethod defaulting

parent 2c323d2b
Branches
Tags
No related merge requests found
......@@ -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 ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment