diff options
author | Günther Deschner <gd@samba.org> | 2008-05-05 16:58:24 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-05-05 16:59:53 +0200 |
commit | 4d8836ab96889bcdc35e86bedffa6117f9c35095 (patch) | |
tree | 381e8fe6d2d2efd6da763bdd238f8a5fac8acf44 /source3/utils/smbtree.c | |
parent | 1a3f50559e06c9dc45556c2c52d68a23c05d7e41 (diff) | |
download | samba-4d8836ab96889bcdc35e86bedffa6117f9c35095.tar.gz |
Fix client authentication with -P switch in client tools (Bug 5435).
Guenther
(This used to be commit d077ef64cd1d9bbaeb936566c2c70da508de829f)
Diffstat (limited to 'source3/utils/smbtree.c')
-rw-r--r-- | source3/utils/smbtree.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/utils/smbtree.c b/source3/utils/smbtree.c index c2b364d1e9a..e975a1c8a27 100644 --- a/source3/utils/smbtree.c +++ b/source3/utils/smbtree.c @@ -302,6 +302,12 @@ static bool print_tree(struct user_auth_info *user_info) /* Parse command line args */ + if (get_cmdline_auth_info_use_machine_account() && + !set_cmdline_auth_info_machine_account_creds()) { + TALLOC_FREE(frame); + return 1; + } + if (!get_cmdline_auth_info_got_pass()) { char *pass = getpass("Password: "); if (pass) { |