Skip to content
Snippets Groups Projects
Commit 757631d2 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Attempt to whip user password from command line.

parent fe002638
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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 ) {
......
......@@ -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 );
......
......@@ -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 );
......
......@@ -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 */
......
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment