From 2c323d2b2a32acc5b4dbca9c39dce2552dd051f2 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sun, 16 Jul 2000 00:21:41 +0000 Subject: [PATCH] Add -x (simple authentication) --- clients/tools/ldappasswd.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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 ); -- 2.39.5