diff options
author | Gerald Carter <jerry@samba.org> | 2007-01-02 22:14:26 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:16:52 -0500 |
commit | 25c4ebb55f425816e033491138f1216125de6edb (patch) | |
tree | 6bebb396b27551ef094942b3350376369a3e4881 /source | |
parent | 7b2bf0e5a6b8d4119657c7a34aa53c9a0c1d5723 (diff) | |
download | samba-25c4ebb55f425816e033491138f1216125de6edb.tar.gz samba-25c4ebb55f425816e033491138f1216125de6edb.tar.xz samba-25c4ebb55f425816e033491138f1216125de6edb.zip |
r20489: Missed patch ofthe forest_name patch for lookupname
Diffstat (limited to 'source')
-rw-r--r-- | source/nsswitch/winbindd_cm.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source/nsswitch/winbindd_cm.c b/source/nsswitch/winbindd_cm.c index f743d7a5554..3f61da12dc7 100644 --- a/source/nsswitch/winbindd_cm.c +++ b/source/nsswitch/winbindd_cm.c @@ -1480,7 +1480,8 @@ static void set_dc_type_and_flags( struct winbindd_domain *domain ) char *domain_name = NULL; char *dns_name = NULL; - DOM_SID *dom_sid = NULL; + char *forest_name = NULL; + DOM_SID *dom_sid = NULL; ZERO_STRUCT( ctr ); @@ -1545,7 +1546,7 @@ static void set_dc_type_and_flags( struct winbindd_domain *domain ) to determine that the DC is active directory */ result = rpccli_lsa_query_info_policy2(cli, mem_ctx, &pol, 12, &domain_name, - &dns_name, NULL, + &dns_name, &forest_name, NULL, &dom_sid); } @@ -1558,6 +1559,9 @@ static void set_dc_type_and_flags( struct winbindd_domain *domain ) if (dns_name) fstrcpy(domain->alt_name, dns_name); + if ( forest_name ) + fstrcpy(domain->forest_name, forest_name); + if (dom_sid) sid_copy(&domain->sid, dom_sid); } else { @@ -1584,10 +1588,10 @@ static void set_dc_type_and_flags( struct winbindd_domain *domain ) } done: - DEBUG(5, ("set_dc_type_and_flags: domain %s is %snative mode.\n", + DEBUG(5, ("set_dc_type_and_flags: domain %s is %sin native mode.\n", domain->name, domain->native_mode ? "" : "NOT ")); - DEBUG(5,("set_dc_type_and_flags: domain %s is %sactive directory.\n", + DEBUG(5,("set_dc_type_and_flags: domain %s is %srunning active directory.\n", domain->name, domain->active_directory ? "" : "NOT ")); cli_rpc_pipe_close(cli); |