summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorBo Yang <boyang@samba.org>2009-11-06 08:20:25 +0800
committerBo Yang <boyang@samba.org>2009-11-06 08:24:51 +0800
commitdde1c420037bfea48741ba1f600c047cca788a21 (patch)
tree42c6862c70dd33cbd8b81d9ae131f543aa387496 /source3/winbindd
parent170d6a3084dcf4a72d5bc7dca69b1036431e0022 (diff)
downloadsamba-dde1c420037bfea48741ba1f600c047cca788a21.tar.gz
samba-dde1c420037bfea48741ba1f600c047cca788a21.tar.bz2
samba-dde1c420037bfea48741ba1f600c047cca788a21.zip
s3: Fix kerberos refresh chain.
Signed-off-by: Bo Yang <boyang@samba.org>
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_pam.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c
index fe6485522e..43f81f79ae 100644
--- a/source3/winbindd/winbindd_pam.c
+++ b/source3/winbindd/winbindd_pam.c
@@ -986,7 +986,9 @@ static NTSTATUS winbindd_dual_pam_auth_cached(struct winbindd_domain *domain,
#ifdef HAVE_KRB5
if ((state->request->flags & WBFLAG_PAM_KRB5) &&
((tdc_domain = wcache_tdc_fetch_domain(state->mem_ctx, name_domain)) != NULL) &&
- (tdc_domain->trust_type & NETR_TRUST_TYPE_UPLEVEL)) {
+ ((tdc_domain->trust_type & NETR_TRUST_TYPE_UPLEVEL) ||
+ /* used to cope with the case winbindd starting without network. */
+ !strequal(tdc_domain->domain_name, tdc_domain->dns_name))) {
uid_t uid = -1;
const char *cc = NULL;