diff options
author | Jeremy Allison <jra@samba.org> | 2009-03-17 14:53:06 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-03-17 14:53:06 -0700 |
commit | 8dd1faaa2992851f6852ba7ea4498445af5faadd (patch) | |
tree | 9720fbd58d974d3245d9c933e448ddff220277d1 /source3/utils/smbcacls.c | |
parent | 153a837bd61338c0b912c43458900224de0654f7 (diff) | |
download | samba-8dd1faaa2992851f6852ba7ea4498445af5faadd.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.
Diffstat (limited to 'source3/utils/smbcacls.c')
-rw-r--r-- | source3/utils/smbcacls.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index c12778f8c71..85b7baad007 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -973,12 +973,7 @@ static struct cli_state *connect_one(struct user_auth_info *auth_info, return NULL; } - if (!get_cmdline_auth_info_got_pass(auth_info)) { - char *pass = getpass("Password: "); - if (pass) { - set_cmdline_auth_info_password(auth_info, pass); - } - } + set_cmdline_auth_info_getpass(auth_info); nt_status = cli_full_connection(&c, global_myname(), server, &ss, 0, |