]> git.sur5r.net Git - openldap/blobdiff - clients/tools/ldapexop.c
move getpassphrase inside tool_bind; make sure password is always malloc'd and freed
[openldap] / clients / tools / ldapexop.c
index e9f5d285dec5535bd4a2370d2108afd723c38ade..b69a4dfe64528deb457f5645cedadf539907774d 100644 (file)
@@ -89,16 +89,6 @@ main( int argc, char *argv[] )
                usage();
        }
 
-       if ( pw_file || want_bindpw ) {
-               if ( pw_file ) {
-                       rc = lutil_get_filed_password( pw_file, &passwd );
-                       if( rc ) return EXIT_FAILURE;
-               } else {
-                       passwd.bv_val = getpassphrase( _("Enter LDAP Password: ") );
-                       passwd.bv_len = passwd.bv_val ? strlen( passwd.bv_val ) : 0;
-               }
-       }
-
        ld = tool_conn_setup( 0, 0 );
 
        tool_bind( ld );