Attempt to whip user password from command line.

This commit is contained in:
Kurt Zeilenga 1999-06-29 18:59:11 +00:00
parent fe00263875
commit 757631d205
6 changed files with 36 additions and 1 deletions

View File

@ -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

View File

@ -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 ) {

View File

@ -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 );

View File

@ -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 );

View File

@ -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 */

View File

@ -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 );