summaryrefslogtreecommitdiff
path: root/source3/lib/netapi
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-09-17 13:15:35 +0200
committerGünther Deschner <gd@samba.org>2010-09-19 02:47:11 +0200
commit8e73826b3c2323c6e81a285f49c6b9d606cb7a53 (patch)
tree163297af216d3f21ac017cd35bf12127e5cbc599 /source3/lib/netapi
parent47a7a5830c145dd12e200fa12fec41bc745046d3 (diff)
downloadsamba-8e73826b3c2323c6e81a285f49c6b9d606cb7a53.tar.gz
samba-8e73826b3c2323c6e81a285f49c6b9d606cb7a53.tar.bz2
samba-8e73826b3c2323c6e81a285f49c6b9d606cb7a53.zip
s3-libnetapi: support NETLOGON_CONTROL_FORCE_DNS_REG in I_NetLogonControl().
Guenther
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r--source3/lib/netapi/netlogon.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/netapi/netlogon.c b/source3/lib/netapi/netlogon.c
index d58b7ccf67..932ab8bb1d 100644
--- a/source3/lib/netapi/netlogon.c
+++ b/source3/lib/netapi/netlogon.c
@@ -43,6 +43,9 @@ static WERROR construct_data(enum netr_LogonControlCode function_code,
case NETLOGON_CONTROL_SET_DBFLAG:
data_out->debug_level = atoi((const char *)data_in);
break;
+ case NETLOGON_CONTROL_FORCE_DNS_REG:
+ ZERO_STRUCTP(data_out);
+ break;
default:
return WERR_INVALID_PARAM;
}
@@ -193,6 +196,7 @@ WERROR I_NetLogonControl2_r(struct libnetapi_ctx *ctx,
switch (r->in.function_code) {
case NETLOGON_CONTROL_TC_VERIFY:
case NETLOGON_CONTROL_SET_DBFLAG:
+ case NETLOGON_CONTROL_FORCE_DNS_REG:
status = rpccli_netr_LogonControl2Ex(pipe_cli, ctx,
r->in.server_name,
r->in.function_code,