summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-02-09 14:22:16 +1100
committerAndrew Tridgell <tridge@samba.org>2011-02-10 06:51:06 +0100
commitd66150c14def46711a15a35b4734e8f438b6dad6 (patch)
tree78aa50274367fd6af3f9647fbded3f9305a91d7a /librpc
parent248c8217803341aa48626f5b68cc939d28aea5ab (diff)
downloadsamba-d66150c14def46711a15a35b4734e8f438b6dad6.tar.gz
libcli/named_pipe_auth Change from 'info3' to auth_session_info_transport
This changes the structure being used to convey the current user state from the netlogon-derived 'netr_SamInfo3' structure to a purpose-built structure that matches the internals of the Samba auth subsystem and contains the final group list, as well as the final privilege set and session key. These previously had to be re-created on the server side of the pipe each time. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r--librpc/idl/named_pipe_auth.idl17
-rw-r--r--librpc/wscript_build7
2 files changed, 12 insertions, 12 deletions
diff --git a/librpc/idl/named_pipe_auth.idl b/librpc/idl/named_pipe_auth.idl
index de89588664a..721667eef98 100644
--- a/librpc/idl/named_pipe_auth.idl
+++ b/librpc/idl/named_pipe_auth.idl
@@ -3,7 +3,7 @@
miscellaneous IDL structures
*/
-import "netlogon.idl";
+import "netlogon.idl", "security.idl", "auth.idl";
[
pointer_default(unique)
@@ -19,16 +19,11 @@ interface named_pipe_auth
[charset(UTF8),string] uint8 *server_name;
[charset(DOS),string] uint8 *server_addr;
uint16 server_port;
- netr_SamInfo3 *sam_info3;
- uint32 session_key_length;
- [size_is(session_key_length)] uint8 *session_key;
- uint32 gssapi_delegated_creds_length;
- [size_is(gssapi_delegated_creds_length)]
- uint8 *gssapi_delegated_creds;
- } named_pipe_auth_req_info3;
+ auth_session_info_transport *session_info;
+ } named_pipe_auth_req_info4;
typedef [switch_type(uint32)] union {
- [case(3)] named_pipe_auth_req_info3 info3;
+ [case(4)] named_pipe_auth_req_info4 info4;
} named_pipe_auth_req_info;
typedef [public,gensize] struct {
@@ -44,10 +39,10 @@ interface named_pipe_auth
uint16 file_type;
uint16 device_state;
hyper allocation_size;
- } named_pipe_auth_rep_info3;
+ } named_pipe_auth_rep_info4;
typedef [switch_type(uint32)] union {
- [case(3)] named_pipe_auth_rep_info3 info3;
+ [case(4)] named_pipe_auth_rep_info4 info4;
} named_pipe_auth_rep_info;
typedef [public,gensize] struct {
diff --git a/librpc/wscript_build b/librpc/wscript_build
index d15e8b225d9..706977c45df 100644
--- a/librpc/wscript_build
+++ b/librpc/wscript_build
@@ -8,9 +8,14 @@ bld.SAMBA_SUBSYSTEM('NDR_AUDIOSRV',
public_deps='ndr'
)
+bld.SAMBA_SUBSYSTEM('NDR_AUTH',
+ source='gen_ndr/ndr_auth.c',
+ public_deps='ndr NDR_SECURITY'
+ )
+
bld.SAMBA_SUBSYSTEM('NDR_NAMED_PIPE_AUTH',
source='gen_ndr/ndr_named_pipe_auth.c',
- public_deps='ndr'
+ public_deps='ndr NDR_AUTH'
)
bld.SAMBA_SUBSYSTEM('NDR_DNSSERVER',