]> git.sur5r.net Git - openldap/blobdiff - clients/tools/ldapmodrdn.c
move getpassphrase inside tool_bind; make sure password is always malloc'd and freed
[openldap] / clients / tools / ldapmodrdn.c
index 93570f701ec3e36caa58242d10c92c90b9277f87..74cbf0ba24fa9717de6124a1f310fe10c15a60a8 100644 (file)
@@ -194,19 +194,6 @@ main(int argc, char **argv)
 
        ld = tool_conn_setup( 0, 0 );
 
-       if ( pw_file || want_bindpw ) {
-               if ( pw_file ) {
-                       rc = lutil_get_filed_password( pw_file, &passwd );
-                       if( rc ) {
-                               retval = EXIT_FAILURE;
-                               goto fail;
-                       }
-               } else {
-                       passwd.bv_val = getpassphrase( _("Enter LDAP Password: ") );
-                       passwd.bv_len = passwd.bv_val ? strlen( passwd.bv_val ) : 0;
-               }
-       }
-
        tool_bind( ld );
 
        tool_server_controls( ld, NULL, 0 );