From 908368a245b6587076de6a280945fe7db3e8f72c Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sun, 16 Jul 2000 00:23:41 +0000 Subject: [PATCH] Fix authmethod defaulting --- clients/tools/ldappasswd.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 ) { -- 2.39.5