From: Kurt Zeilenga Date: Wed, 14 Jun 2000 03:07:33 +0000 (+0000) Subject: Fix getpassword bug X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2652 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=701cc91e8d9cd5333ae1222c5bbe4abc348d3da0;p=openldap Fix getpassword bug --- diff --git a/clients/tools/ldapdelete.c b/clients/tools/ldapdelete.c index 4dc1d532cb..ff1675528c 100644 --- a/clients/tools/ldapdelete.c +++ b/clients/tools/ldapdelete.c @@ -317,9 +317,10 @@ main( int argc, char **argv ) } } - if (want_bindpw) + if (want_bindpw) { passwd.bv_val = getpassphrase("Enter LDAP Password: "); passwd.bv_len = strlen( passwd.bv_val ); + } if ( authmethod == LDAP_AUTH_SASL ) { #ifdef HAVE_CYRUS_SASL diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c index 352c79a40f..5789f3dd2d 100644 --- a/clients/tools/ldapmodify.c +++ b/clients/tools/ldapmodify.c @@ -381,9 +381,10 @@ main( int argc, char **argv ) } } - if (want_bindpw) + if (want_bindpw) { passwd.bv_val = getpassphrase("Enter LDAP Password: "); passwd.bv_len = strlen( passwd.bv_val ); + } if ( authmethod == LDAP_AUTH_SASL ) { #ifdef HAVE_CYRUS_SASL diff --git a/clients/tools/ldapmodrdn.c b/clients/tools/ldapmodrdn.c index d26b741474..c7f20c778a 100644 --- a/clients/tools/ldapmodrdn.c +++ b/clients/tools/ldapmodrdn.c @@ -364,9 +364,10 @@ main(int argc, char **argv) } } - if (want_bindpw) + if (want_bindpw) { passwd.bv_val = getpassphrase("Enter LDAP Password: "); passwd.bv_len = strlen( passwd.bv_val ); + } if ( authmethod == LDAP_AUTH_SASL ) { #ifdef HAVE_CYRUS_SASL