diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index 6a1cbb8a72..2e2ec5eaf1 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -343,7 +343,6 @@ usage (char *s) #endif fprintf (stderr, " -l time\ttime limit\n"); fprintf (stderr, " -n\t\tmake no modifications\n"); - fprintf (stderr, " -P version\tprotocol version (2 or 3)\n"); fprintf (stderr, " -p port\tldap port\n"); fprintf (stderr, " -s scope\tsearch scope: base, one, sub (default: sub)\n"); fprintf (stderr, " -t targetdn\tdn to change password\n"); @@ -375,7 +374,6 @@ main (int argc, char *argv[]) int scope = LDAP_SCOPE_SUBTREE; int sizelimit = -1; int timelimit = -1; - int version = -1; int want_bindpw = 0; int want_newpw = 0; LDAP *ld; @@ -468,18 +466,6 @@ main (int argc, char *argv[]) noupdates++; break; - case 'P': - switch(optarg[0]) - { - case '2': - version = LDAP_VERSION2; - break; - case '3': - version = LDAP_VERSION3; - break; - } - break; - case 'p': /* ldap port */ ldapport = strtol (optarg, NULL, 10); break;