summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2009-06-09 18:05:50 +0200
committerKai Blin <kai@samba.org>2009-06-09 18:09:18 +0200
commit38cd0e086f50ce54d88a19aa5a6803469af90489 (patch)
treef8ac40253d9321fc57a07b7f81ecd520b68bb29d
parentba42cccf008bfeb2bb4621fef7882bd3077dfe41 (diff)
downloadsamba-38cd0e086f50ce54d88a19aa5a6803469af90489.tar.gz
samba-38cd0e086f50ce54d88a19aa5a6803469af90489.tar.bz2
samba-38cd0e086f50ce54d88a19aa5a6803469af90489.zip
net: Only use the in memory ccache when not already using a kerberos ticket in net ads
-rw-r--r--source3/utils/net_ads.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index 588f57f030..38b59d9cdf 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -236,7 +236,8 @@ retry:
set_cmdline_auth_info_getpass(c->auth_info);
}
- if (get_cmdline_auth_info_got_pass(c->auth_info)) {
+ if (get_cmdline_auth_info_got_pass(c->auth_info) ||
+ !get_cmdline_auth_info_use_kerberos(c->auth_info)) {
use_in_memory_ccache();
SAFE_FREE(ads->auth.password);
ads->auth.password = smb_xstrdup(