summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-03-17 15:01:20 -0700
committerKarolin Seeger <kseeger@samba.org>2009-04-15 09:07:02 +0200
commit54cf9adb8b1f1f3f8b156fba37357e379722c93f (patch)
tree7bcbaebe1eb96a936c12d3dd23da80bfa9d95b1e /source3/rpcclient
parent4c5e4ba358be2bcfd19495ab5a31c769041e62be (diff)
downloadsamba-54cf9adb8b1f1f3f8b156fba37357e379722c93f.tar.gz
Remove the global "struct cm_cred_struct" and associated calls, make
callers pass in a struct user_auth_info * instead. This commit causes smbc_set_credentials() to print out a message telling callers to use smbc_set_credentials_with_fallback() instead, as smbc_set_credentials() has a broken API (no SMBCCTX * pointer). No more global variables used in the connection manager API for client dfs calls. Jeremy. (cherry picked from commit 8b44877eb82c1c9270cb8099fefc621922f82719)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/rpcclient.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c
index 9a02c129b54..ea572eefd0a 100644
--- a/source3/rpcclient/rpcclient.c
+++ b/source3/rpcclient/rpcclient.c
@@ -868,12 +868,7 @@ out_free:
goto done;
}
- if (!get_cmdline_auth_info_got_pass(rpcclient_auth_info)) {
- char *pass = getpass("Password:");
- if (pass) {
- set_cmdline_auth_info_password(rpcclient_auth_info, pass);
- }
- }
+ set_cmdline_auth_info_getpass(rpcclient_auth_info);
if ((server[0] == '/' && server[1] == '/') ||
(server[0] == '\\' && server[1] == '\\')) {