Commit 701cc91e authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Fix getpassword bug

parent bfa08623
......@@ -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
......
......@@ -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
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment