diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-01-22 11:19:15 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-03-25 00:45:29 +0100 |
commit | 1d819eda5c60e83ae9f337c1b648b1d6a03402c5 (patch) | |
tree | 2a8e22e0865c5fceb323bfb054abeb535c4aa32d /source4/torture | |
parent | 08ec25555d8ff2c5b74606c6313651c56bcbe726 (diff) | |
download | samba-1d819eda5c60e83ae9f337c1b648b1d6a03402c5.tar.gz samba-1d819eda5c60e83ae9f337c1b648b1d6a03402c5.tar.xz samba-1d819eda5c60e83ae9f337c1b648b1d6a03402c5.zip |
s4:torture/rpc: make use of dcerpc_binding_handle_auth_info() in lsa.c
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/lsa.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source4/torture/rpc/lsa.c b/source4/torture/rpc/lsa.c index ed618b7a64a..f09fed2e68b 100644 --- a/source4/torture/rpc/lsa.c +++ b/source4/torture/rpc/lsa.c @@ -1003,12 +1003,17 @@ bool test_many_LookupSids(struct dcerpc_pipe *p, } } else if (transport == NCACN_IP_TCP) { struct lsa_TransNameArray2 names; + enum dcerpc_AuthType auth_type; + enum dcerpc_AuthLevel auth_level; names.count = 0; names.names = NULL; - if (p->conn->security_state.auth_info->auth_type == DCERPC_AUTH_TYPE_SCHANNEL && - p->conn->security_state.auth_info->auth_level >= DCERPC_AUTH_LEVEL_INTEGRITY) { + dcerpc_binding_handle_auth_info(p->binding_handle, + &auth_type, &auth_level); + + if (auth_type == DCERPC_AUTH_TYPE_SCHANNEL && + auth_level >= DCERPC_AUTH_LEVEL_INTEGRITY) { if (!test_LookupSids3(b, tctx, &sids)) { return false; } |