mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-20 22:03:45 -05:00
Attempt to whip user password from command line.
This commit is contained in:
parent
fe00263875
commit
757631d205
6 changed files with 36 additions and 1 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue