From: Kurt Zeilenga Date: Sun, 16 Jul 2000 00:21:41 +0000 (+0000) Subject: Add -x (simple authentication) X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2438 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2c323d2b2a32acc5b4dbca9c39dce2552dd051f2;p=openldap Add -x (simple authentication) --- diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index 6a995374f6..91dd6fb53b 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -49,6 +49,7 @@ usage(const char *s) " -v\t\tverbose mode\n" " -w passwd\tbind password (for simple authentication)\n" " -W\t\tprompt for bind password\n" +" -x\t\tSimple authentication\n" " -X id\t\tSASL authorization identity (\"dn:\" or \"u:\")\n" " -Y mech\t\tSASL mechanism\n" " -Z\t\tissue Start TLS request (-ZZ to require successful response)\n" @@ -217,6 +218,14 @@ main( int argc, char *argv[] ) return( EXIT_FAILURE ); #endif break; + case 'x': + if( authmethod != -1 && authmethod != LDAP_AUTH_SIMPLE ) { + fprintf( stderr, "%s: incompatible with previous " + "authentication choice\n", prog ); + return EXIT_FAILURE; + } + authmethod = LDAP_AUTH_SIMPLE; + break; case 'X': #ifdef HAVE_CYRUS_SASL sasl_authz_id = strdup( optarg );