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 ...@@ -10,7 +10,7 @@ LDAP_LIBDIR= ../../libraries
XLIBS = -lldif -lldap -llber -llutil XLIBS = -lldif -lldap -llber -llutil
XXLIBS = $(KRB_LIBS) $(LUTIL_LIBS) 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 PROGRAMS = ldapsearch ldapmodify ldapdelete ldapmodrdn ldapadd ldappasswd
......
...@@ -70,6 +70,13 @@ main( int argc, char **argv ) ...@@ -70,6 +70,13 @@ main( int argc, char **argv )
break; break;
case 'w': /* password */ case 'w': /* password */
passwd = strdup( optarg ); passwd = strdup( optarg );
{
char* p;
for( p = optarg; *p == NULL; p++ ) {
*p = 'X';
}
}
break; break;
case 'f': /* read DNs from a file */ case 'f': /* read DNs from a file */
if (( fp = fopen( optarg, "r" )) == NULL ) { if (( fp = fopen( optarg, "r" )) == NULL ) {
......
...@@ -159,6 +159,13 @@ main( int argc, char **argv ) ...@@ -159,6 +159,13 @@ main( int argc, char **argv )
break; break;
case 'w': /* password */ case 'w': /* password */
passwd = strdup( optarg ); passwd = strdup( optarg );
{
char* p;
for( p = optarg; *p == NULL; p++ ) {
*p = 'X';
}
}
break; break;
case 'd': case 'd':
debug |= atoi( optarg ); debug |= atoi( optarg );
......
...@@ -90,6 +90,13 @@ main(int argc, char **argv) ...@@ -90,6 +90,13 @@ main(int argc, char **argv)
break; break;
case 'w': /* password */ case 'w': /* password */
passwd = strdup( optarg ); passwd = strdup( optarg );
{
char* p;
for( p = optarg; *p == NULL; p++ ) {
*p = 'X';
}
}
break; break;
case 'd': case 'd':
debug |= atoi( optarg ); debug |= atoi( optarg );
......
...@@ -514,6 +514,13 @@ main (int argc, char *argv[]) ...@@ -514,6 +514,13 @@ main (int argc, char *argv[])
case 'w': /* bind password */ case 'w': /* bind password */
bindpw = strdup (optarg); bindpw = strdup (optarg);
{
char* p;
for( p = optarg; *p == NULL; p++ ) {
*p = 'X';
}
}
break; break;
case 'Y': /* salt length */ case 'Y': /* salt length */
......
...@@ -194,6 +194,13 @@ main( int argc, char **argv ) ...@@ -194,6 +194,13 @@ main( int argc, char **argv )
break; break;
case 'w': /* bind password */ case 'w': /* bind password */
passwd = strdup( optarg ); passwd = strdup( optarg );
{
char* p;
for( p = optarg; *p == NULL; p++ ) {
*p = 'X';
}
}
break; break;
case 'l': /* time limit */ case 'l': /* time limit */
timelimit = atoi( optarg ); 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