diff options
author | Günther Deschner <gd@samba.org> | 2009-10-08 00:58:02 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-11-04 00:55:18 +0100 |
commit | 40f3f456bcea3d37537e807dbcd3a09b08dbc870 (patch) | |
tree | 7e37bf5a96bb0693ad23d4913ea54eba46cb8af2 | |
parent | b3a21474971d3ffd6135011daa5f2fe521f535d1 (diff) | |
download | samba-40f3f456bcea3d37537e807dbcd3a09b08dbc870.tar.gz samba-40f3f456bcea3d37537e807dbcd3a09b08dbc870.tar.bz2 samba-40f3f456bcea3d37537e807dbcd3a09b08dbc870.zip |
s3-netlogon: implement _netr_NETLOGON_INFO_4 in netr_LogonControl2Ex() and friends as well.
Guenther
-rw-r--r-- | source3/rpc_server/srv_netlog_nt.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_netlog_nt.c b/source3/rpc_server/srv_netlog_nt.c index 15ea5ff042..017d3bbcb7 100644 --- a/source3/rpc_server/srv_netlog_nt.c +++ b/source3/rpc_server/srv_netlog_nt.c @@ -144,6 +144,7 @@ WERROR _netr_LogonControl2Ex(pipes_struct *p, struct netr_NETLOGON_INFO_1 *info1; struct netr_NETLOGON_INFO_2 *info2; struct netr_NETLOGON_INFO_3 *info3; + struct netr_NETLOGON_INFO_4 *info4; const char *fn; switch (p->hdr_req.opnum) { @@ -254,6 +255,15 @@ WERROR _netr_LogonControl2Ex(pipes_struct *p, r->out.query->info3 = info3; break; + case 4: + info4 = TALLOC_ZERO_P(p->mem_ctx, struct netr_NETLOGON_INFO_4); + W_ERROR_HAVE_NO_MEMORY(info4); + + info4->trusted_dc_name = dc_name; + info4->trusted_domain_name = r->in.data->domain; + + r->out.query->info4 = info4; + break; default: return WERR_UNKNOWN_LEVEL; } |