diff options
author | Gerald Carter <jerry@samba.org> | 2002-10-04 21:39:09 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2002-10-04 21:39:09 +0000 |
commit | d2eae2a2999de61ddb494780f2477f7f7569b804 (patch) | |
tree | c5d3c8a6faedc72c2d778fa3875ef87e47f88801 /source3/nsswitch/winbindd_util.c | |
parent | f7832e935f99ade0c764e063bb06e5ca36dd0bee (diff) | |
download | samba-d2eae2a2999de61ddb494780f2477f7f7569b804.tar.gz samba-d2eae2a2999de61ddb494780f2477f7f7569b804.tar.bz2 samba-d2eae2a2999de61ddb494780f2477f7f7569b804.zip |
merge native_mode flag in winbindd_domain struct from app-head
(This used to be commit dd948a302ad6bd4307ecdfb10510e12185150eae)
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); |