diff options
author | Gerald Carter <jerry@samba.org> | 2002-10-04 21:42:04 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2002-10-04 21:42:04 +0000 |
commit | 055e6d1491d56c85f01e70cf83a928fa6492e2aa (patch) | |
tree | 15213b550263aff40bcb8ad893213669104d4d10 /source3/nsswitch/winbindd_util.c | |
parent | 9c1b62c0fd06cc65853269db3c63b169daa90664 (diff) | |
download | samba-055e6d1491d56c85f01e70cf83a928fa6492e2aa.tar.gz samba-055e6d1491d56c85f01e70cf83a928fa6492e2aa.tar.bz2 samba-055e6d1491d56c85f01e70cf83a928fa6492e2aa.zip |
* merge native_mode flag in winbindd_domain struct from app-head
* add some files missing from a previous commit
(This used to be commit 29159c97371c75327e377f9d13406dad46095568)
Diffstat (limited to 'source3/nsswitch/winbindd_util.c')
-rw-r--r-- | source3/nsswitch/winbindd_util.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_util.c b/source3/nsswitch/winbindd_util.c index 2016c27881..005b1609b6 100644 --- a/source3/nsswitch/winbindd_util.c +++ b/source3/nsswitch/winbindd_util.c @@ -73,6 +73,7 @@ void free_domain_list(void) } } + /* Add a trusted domain to our list of domains */ static struct winbindd_domain *add_trusted_domain(const char *domain_name, const char *alt_name, struct winbindd_methods *methods, @@ -116,12 +117,20 @@ static struct winbindd_domain *add_trusted_domain(const char *domain_name, const } } - domain->methods = methods; + domain->methods = methods; domain->sequence_number = DOM_SEQUENCE_NONE; domain->last_seq_check = 0; if (sid) { sid_copy(&domain->sid, sid); } + + /* see if this is a native mode win2k domain, but only for our own domain */ + + if ( strequal( lp_workgroup(), domain_name) ) { + domain->native_mode = cm_check_for_native_mode_win2k( domain_name ); + DEBUG(5,("add_trusted_domain: %s is a %s mode domain\n", domain_name, + domain->native_mode ? "native" : "mixed" )); + } /* Link to domain list */ DLIST_ADD(_domain_list, domain); |