summaryrefslogtreecommitdiff
path: root/source4/rpc_server/netlogon
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2011-09-27 15:11:36 -0400
committerStefan Metzmacher <metze@samba.org>2011-11-27 12:50:49 +0100
commit1770dafafd51ee9989005c9214b1b1b9d3ecada7 (patch)
treefc8d9d17def0634e73d9932574f1c0542e5e24dd /source4/rpc_server/netlogon
parentb89374934feced586b21152795f40543fe7b007b (diff)
downloadsamba-1770dafafd51ee9989005c9214b1b1b9d3ecada7.tar.gz
samba-1770dafafd51ee9989005c9214b1b1b9d3ecada7.tar.bz2
samba-1770dafafd51ee9989005c9214b1b1b9d3ecada7.zip
s4-netlogon: return WERR_NO_SUCH_DOMAIN instead of WERR_DS_UNAVAILABLE if we are unable to translate the domain to a dn
Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/rpc_server/netlogon')
-rw-r--r--source4/rpc_server/netlogon/dcerpc_netlogon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/netlogon/dcerpc_netlogon.c b/source4/rpc_server/netlogon/dcerpc_netlogon.c
index cbf223be47..814b9699ed 100644
--- a/source4/rpc_server/netlogon/dcerpc_netlogon.c
+++ b/source4/rpc_server/netlogon/dcerpc_netlogon.c
@@ -1056,7 +1056,7 @@ static WERROR dcesrv_netr_GetDcName(struct dcesrv_call_state *dce_call, TALLOC_C
domain_dn = samdb_domain_to_dn(sam_ctx, mem_ctx,
r->in.domainname);
if (domain_dn == NULL) {
- return WERR_DS_UNAVAILABLE;
+ return WERR_NO_SUCH_DOMAIN;
}
ret = gendb_search_dn(sam_ctx, mem_ctx,