diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-12-23 15:26:07 +0100 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2012-07-17 10:58:38 +0200 |
commit | 342a2e6181a07737e2f9cb7476fa86c39b0731ec (patch) | |
tree | d110c96ecb01ad97a3091f51df406c31814ddd7b /source4/librpc | |
parent | e7c7a911302fa6c3df70303a529e0ba362f9e838 (diff) | |
download | samba-342a2e6181a07737e2f9cb7476fa86c39b0731ec.tar.gz samba-342a2e6181a07737e2f9cb7476fa86c39b0731ec.tar.bz2 samba-342a2e6181a07737e2f9cb7476fa86c39b0731ec.zip |
s4:librpc/rpc/dcerpc_schannel: just append NETLOGON_NEG_RODC_PASSTHROUGH as rodc
The RODC stuff doesn't depend on the schannel algorithm.
metze
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source4/librpc')
-rw-r--r-- | source4/librpc/rpc/dcerpc_schannel.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source4/librpc/rpc/dcerpc_schannel.c b/source4/librpc/rpc/dcerpc_schannel.c index 1655e6bad0..3a3dec068b 100644 --- a/source4/librpc/rpc/dcerpc_schannel.c +++ b/source4/librpc/rpc/dcerpc_schannel.c @@ -321,10 +321,6 @@ struct composite_context *dcerpc_schannel_key_send(TALLOC_CTX *mem_ctx, s->local_negotiate_flags = NETLOGON_NEG_AUTH2_FLAGS; /* allocate credentials */ - /* type of authentication depends on schannel type */ - if (schannel_type == SEC_CHAN_RODC) { - s->local_negotiate_flags = NETLOGON_NEG_AUTH2_RODC_FLAGS; - } if (s->pipe->conn->flags & DCERPC_SCHANNEL_128) { s->local_negotiate_flags = NETLOGON_NEG_AUTH2_ADS_FLAGS; } @@ -333,6 +329,11 @@ struct composite_context *dcerpc_schannel_key_send(TALLOC_CTX *mem_ctx, s->dcerpc_schannel_auto = true; } + /* type of authentication depends on schannel type */ + if (schannel_type == SEC_CHAN_RODC) { + s->local_negotiate_flags |= NETLOGON_NEG_RODC_PASSTHROUGH; + } + /* allocate binding structure */ s->binding = talloc_zero(c, struct dcerpc_binding); if (composite_nomem(s->binding, c)) return c; |