X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=clients%2Ftools%2Fldappasswd.c;h=b0cdfb6dea4f8d95883831cfb412320d78be8b8e;hb=fd4b8ba0cd8c1aedb91837d36cfaafac3a64a735;hp=365db634e8fe8beb82315acf79ca8ef615059849;hpb=bca61801a1251c90ca7399ea9f95bcc0c6ba9be2;p=openldap diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index 365db634e8..b0cdfb6dea 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -481,7 +481,7 @@ main( int argc, char *argv[] ) default: - fprintf( stderr, "%s: unrecongized option -%c\n", + fprintf( stderr, "%s: unrecognized option -%c\n", prog, optopt ); usage (argv[0]); } @@ -533,7 +533,9 @@ main( int argc, char *argv[] ) if (want_bindpw && passwd.bv_val == NULL ) { /* handle bind password */ - fprintf( stderr, "Bind DN: %s\n", binddn ); + if( binddn != NULL ) { + fprintf( stderr, "Bind DN: %s\n", binddn ); + } passwd.bv_val = strdup( getpassphrase("Enter bind password: ")); passwd.bv_len = passwd.bv_val ? strlen( passwd.bv_val ) : 0; }