diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-12-19 09:53:30 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-12-19 09:53:30 +0000 |
commit | adf44a9bd0d997ba4dcfadc564a29149531525af (patch) | |
tree | 36f68b5ee8f140ce88c21672f2f6e471bcb368e7 /source/nsswitch/winbindd_util.c | |
parent | ee1c3e1f044b4ef62169ad74c5cac40eef81bfda (diff) | |
download | samba-adf44a9bd0d997ba4dcfadc564a29149531525af.tar.gz samba-adf44a9bd0d997ba4dcfadc564a29149531525af.tar.xz samba-adf44a9bd0d997ba4dcfadc564a29149531525af.zip |
added trusted realm support to ADS authentication
the method used for checking if a domain is a trusted domain is very
crude, we should really call a backend fn of some sort. For now I'm
using winbindd to do the dirty work.
Diffstat (limited to 'source/nsswitch/winbindd_util.c')
-rw-r--r-- | source/nsswitch/winbindd_util.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/nsswitch/winbindd_util.c b/source/nsswitch/winbindd_util.c index f760b635d64..2f21f81ea87 100644 --- a/source/nsswitch/winbindd_util.c +++ b/source/nsswitch/winbindd_util.c @@ -55,7 +55,8 @@ struct winbindd_domain *find_domain_from_name(char *domain_name) /* Search through list */ for (tmp = domain_list; tmp != NULL; tmp = tmp->next) { - if (strcasecmp(domain_name, tmp->name) == 0) + if (strcasecmp(domain_name, tmp->name) == 0 || + strcasecmp(domain_name, tmp->full_name) == 0) return tmp; } @@ -164,6 +165,9 @@ BOOL get_domain_info(void) DEBUG(1,("Added domain %s (%s)\n", domain->name, sid_string_static(&domain->sid))); + + /* this primes the connection */ + cache_methods.domain_sid(domain, &domain->sid); } } |