summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-07-31 13:22:10 +0200
committerAndrew Bartlett <abartlet@samba.org>2013-08-05 17:48:03 +1200
commit36b3c9506c1ac5549a38140e7ffd57644290069f (patch)
treedee7c4f6147d5e4a384bbbffb0104c9067b62c45
parentcfeeb3ce3de5d1df07299fb83327ae258da0bf8d (diff)
downloadsamba-36b3c9506c1ac5549a38140e7ffd57644290069f.tar.gz
samba-36b3c9506c1ac5549a38140e7ffd57644290069f.tar.bz2
samba-36b3c9506c1ac5549a38140e7ffd57644290069f.zip
s4:torture/shell: simplify cli_credentials_set_password() call
All we want is to avoid a possible callback... Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source4/torture/shell.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source4/torture/shell.c b/source4/torture/shell.c
index d6cc94c665..aa85da3a8f 100644
--- a/source4/torture/shell.c
+++ b/source4/torture/shell.c
@@ -110,10 +110,7 @@ void torture_shell(struct torture_context *tctx)
* stops the credentials system prompting when we use the "auth"
* command to display the current auth parameters.
*/
- if (cmdline_credentials->password_obtained != CRED_SPECIFIED) {
- cli_credentials_set_password(cmdline_credentials, "",
- CRED_SPECIFIED);
- }
+ cli_credentials_set_password(cmdline_credentials, "", CRED_GUESS_ENV);
while (1) {
cline = smb_readline("torture> ", NULL, NULL);