]> git.sur5r.net Git - openldap/commitdiff
Remove -P 3 option.
authorKurt Zeilenga <kurt@openldap.org>
Mon, 31 May 1999 02:36:15 +0000 (02:36 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 31 May 1999 02:36:15 +0000 (02:36 +0000)
clients/tools/ldappasswd.c

index 6a1cbb8a72f5a105078f348da7c71da578cdd2ca..2e2ec5eaf16c7bfb86a1dcf6521e3a5986dfcd9b 100644 (file)
@@ -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;