diff options
author | Bo Yang <boyang@samba.org> | 2009-11-06 08:20:25 +0800 |
---|---|---|
committer | Bo Yang <boyang@samba.org> | 2009-11-06 08:24:51 +0800 |
commit | dde1c420037bfea48741ba1f600c047cca788a21 (patch) | |
tree | 42c6862c70dd33cbd8b81d9ae131f543aa387496 /source3 | |
parent | 170d6a3084dcf4a72d5bc7dca69b1036431e0022 (diff) | |
download | samba-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')
-rw-r--r-- | source3/winbindd/winbindd_pam.c | 4 |
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; |