From 3063738c240260ebca63d037a69d2c02603db4b5 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Tue, 2 Jan 2007 22:14:26 +0000 Subject: [PATCH] r20489: Missed patch ofthe forest_name patch for lookupname (This used to be commit 25c4ebb55f425816e033491138f1216125de6edb) --- source3/nsswitch/winbindd_cm.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/source3/nsswitch/winbindd_cm.c b/source3/nsswitch/winbindd_cm.c index f743d7a5554..3f61da12dc7 100644 --- a/source3/nsswitch/winbindd_cm.c +++ b/source3/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); -- 2.11.4.GIT