From: Kurt Zeilenga Date: Sun, 16 Jul 2000 00:23:41 +0000 (+0000) Subject: Fix authmethod defaulting X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2437 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=908368a245b6587076de6a280945fe7db3e8f72c;p=openldap Fix authmethod defaulting --- diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index 91dd6fb53b..d2e92702e9 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -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 ) {