From: Kurt Zeilenga Date: Tue, 29 Jun 1999 18:59:11 +0000 (+0000) Subject: Attempt to whip user password from command line. X-Git-Tag: OPENLDAP_REL_ENG_2_BP~216 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=757631d205f2646be812b4edcf955f48f17d16ee;p=openldap Attempt to whip user password from command line. --- diff --git a/clients/tools/Makefile.in b/clients/tools/Makefile.in index 0e1e976268..867f8352a6 100644 --- a/clients/tools/Makefile.in +++ b/clients/tools/Makefile.in @@ -10,7 +10,7 @@ LDAP_LIBDIR= ../../libraries XLIBS = -lldif -lldap -llber -llutil XXLIBS = $(KRB_LIBS) $(LUTIL_LIBS) -XSRCS = ldsversion.c ldmversion.c lddversion.c ldrversion.c +XSRCS = ldsversion.c ldmversion.c lddversion.c ldrversion.c ldpversion.c PROGRAMS = ldapsearch ldapmodify ldapdelete ldapmodrdn ldapadd ldappasswd diff --git a/clients/tools/ldapdelete.c b/clients/tools/ldapdelete.c index f6dbe16385..815d10e583 100644 --- a/clients/tools/ldapdelete.c +++ b/clients/tools/ldapdelete.c @@ -70,6 +70,13 @@ main( int argc, char **argv ) break; case 'w': /* password */ passwd = strdup( optarg ); + { + char* p; + + for( p = optarg; *p == NULL; p++ ) { + *p = 'X'; + } + } break; case 'f': /* read DNs from a file */ if (( fp = fopen( optarg, "r" )) == NULL ) { diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c index ebb9173019..37acfd6a0a 100644 --- a/clients/tools/ldapmodify.c +++ b/clients/tools/ldapmodify.c @@ -159,6 +159,13 @@ main( int argc, char **argv ) break; case 'w': /* password */ passwd = strdup( optarg ); + { + char* p; + + for( p = optarg; *p == NULL; p++ ) { + *p = 'X'; + } + } break; case 'd': debug |= atoi( optarg ); diff --git a/clients/tools/ldapmodrdn.c b/clients/tools/ldapmodrdn.c index 3642ab79d8..897196dd1e 100644 --- a/clients/tools/ldapmodrdn.c +++ b/clients/tools/ldapmodrdn.c @@ -90,6 +90,13 @@ main(int argc, char **argv) break; case 'w': /* password */ passwd = strdup( optarg ); + { + char* p; + + for( p = optarg; *p == NULL; p++ ) { + *p = 'X'; + } + } break; case 'd': debug |= atoi( optarg ); diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index b385ecbd92..02470392ac 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -514,6 +514,13 @@ main (int argc, char *argv[]) case 'w': /* bind password */ bindpw = strdup (optarg); + { + char* p; + + for( p = optarg; *p == NULL; p++ ) { + *p = 'X'; + } + } break; case 'Y': /* salt length */ diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index 5b227d1f72..ebb837d6f0 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -194,6 +194,13 @@ main( int argc, char **argv ) break; case 'w': /* bind password */ passwd = strdup( optarg ); + { + char* p; + + for( p = optarg; *p == NULL; p++ ) { + *p = 'X'; + } + } break; case 'l': /* time limit */ timelimit = atoi( optarg );