]> git.sur5r.net Git - openldap/commitdiff
Fix getpassword bug
authorKurt Zeilenga <kurt@openldap.org>
Wed, 14 Jun 2000 03:07:33 +0000 (03:07 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 14 Jun 2000 03:07:33 +0000 (03:07 +0000)
clients/tools/ldapdelete.c
clients/tools/ldapmodify.c
clients/tools/ldapmodrdn.c

index 4dc1d532cbf5af8320acaa7ee856ad1cbc8eb58b..ff1675528c9b982fe2e5711e0a5bf4d621573b18 100644 (file)
@@ -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
index 352c79a40f9f316e763b8b23c59bd2cffd1c698b..5789f3dd2d9783f6c37b44bdb2b3348545085881 100644 (file)
@@ -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
index d26b741474b24f560a32f48bd4d0ff599ee06889..c7f20c778aa9d5bfaa7f4ad68e54fdfe2ef8fdf9 100644 (file)
@@ -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