summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-05-04 17:28:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:16:43 -0500
commit52e778e6f85c5affbcc40e5ce629792e6f16b553 (patch)
treecfdf0189bf23ff251c97557634cbf4620658c46e /source3/rpc_server
parenta0ff50efa79f08f538f0c341744572929ac5a298 (diff)
downloadsamba-52e778e6f85c5affbcc40e5ce629792e6f16b553.tar.gz
samba-52e778e6f85c5affbcc40e5ce629792e6f16b553.tar.bz2
samba-52e778e6f85c5affbcc40e5ce629792e6f16b553.zip
r15438: Fix samrQueryDomainInfo level 5 where we returned our netbios
name eversince instead of the domain name when we are a DC. Yes, there are applications relying on this call to be correct. Guenther (This used to be commit 26dd22c9af8caf3db236984e4683ba210376ca59)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_samr_nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index c4b3d3512c..d672ab4a5b 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -2301,7 +2301,7 @@ NTSTATUS _samr_query_dom_info(pipes_struct *p, SAMR_Q_QUERY_DOMAIN_INFO *q_u, SA
init_unk_info3(&ctr->info.inf3, nt_logout);
break;
case 0x05:
- init_unk_info5(&ctr->info.inf5, global_myname());
+ init_unk_info5(&ctr->info.inf5, get_global_sam_name());
break;
case 0x06:
init_unk_info6(&ctr->info.inf6);
@@ -4802,7 +4802,7 @@ NTSTATUS _samr_query_domain_info2(pipes_struct *p,
init_unk_info3(&ctr->info.inf3, nt_logout);
break;
case 0x05:
- init_unk_info5(&ctr->info.inf5, global_myname());
+ init_unk_info5(&ctr->info.inf5, get_global_sam_name());
break;
case 0x06:
init_unk_info6(&ctr->info.inf6);