From 701cc91e8d9cd5333ae1222c5bbe4abc348d3da0 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 14 Jun 2000 03:07:33 +0000 Subject: [PATCH] Fix getpassword bug --- clients/tools/ldapdelete.c | 3 ++- clients/tools/ldapmodify.c | 3 ++- clients/tools/ldapmodrdn.c | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) 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 -- 2.39.5