diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-17 10:44:28 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:58:46 -0500 |
commit | df2ed66bb0e592010b3b68734c508690c3f393ea (patch) | |
tree | 8516bf8b371cbcbc7370a2555c54713da8d6a815 /source4/librpc | |
parent | be480ac55c1f3ebe29781ad718f28e5b95441d13 (diff) | |
download | samba-df2ed66bb0e592010b3b68734c508690c3f393ea.tar.gz samba-df2ed66bb0e592010b3b68734c508690c3f393ea.tar.bz2 samba-df2ed66bb0e592010b3b68734c508690c3f393ea.zip |
r2382: considerably improved the Bind and Unbind IDL and test code. We can
now do these two calls successfully against w2k3.
note that you must use ncacn_ip_tcp, and must enable dcerpc sealing,
otherwise w2k3 refuses the first DRSUAPI call.
(This used to be commit 7d3e34742277f264e41739721dbf08036eebb598)
Diffstat (limited to 'source4/librpc')
-rw-r--r-- | source4/librpc/idl/drsuapi.idl | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/source4/librpc/idl/drsuapi.idl b/source4/librpc/idl/drsuapi.idl index 2ced72398f..93a7caa48c 100644 --- a/source4/librpc/idl/drsuapi.idl +++ b/source4/librpc/idl/drsuapi.idl @@ -11,18 +11,24 @@ interface drsuapi { /*****************/ /* Function 0x00 */ - void DRSUAPI_BIND( - /* [in] 8-60 bytes are possible - * but I saw 56 bytes - */ - [in] uint8 blob[56], - /* [out] 60 bytes */ - [out] uint8 blob[60] + + typedef [flag(NDR_PAHEX)] struct { + uint32 length; + [size_is(length)] uint8 data[]; + } drsuapi_BindInfo; + + NTSTATUS drsuapi_Bind( + [in] GUID *server_guid, + [in] uint32 unknown, + [out] drsuapi_BindInfo *info, + [out,ref] policy_handle *handle ); /*****************/ /* Function 0x01 */ - void DRSUAPI_UNBIND(); + NTSTATUS drsuapi_Unbind( + [in,out,ref] policy_handle *handle + ); /*****************/ /* Function 0x02 */ |