From 0ac02ed7c344a7462d5d797b46e89e9d4a6937de Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 10 May 2005 02:01:25 +0000 Subject: r6693: first version of cldap client library, with async interface (This used to be commit cbeffe830b2d3aee2ba346034548fa273a08f409) --- source4/librpc/idl/nbt.idl | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) (limited to 'source4/librpc') diff --git a/source4/librpc/idl/nbt.idl b/source4/librpc/idl/nbt.idl index 3dd5816474..3719b2fdad 100644 --- a/source4/librpc/idl/nbt.idl +++ b/source4/librpc/idl/nbt.idl @@ -449,6 +449,52 @@ [switch_is(command)] nbt_netlogon_request req; } nbt_netlogon_packet; + /*******************************************/ + /* CLDAP netlogon response */ + + typedef enum { + CLDAP_NETLOGON_19 = 0x13, + CLDAP_NETLOGON_23 = 0x17 + } nbt_cldap_netlogon_command; + + /* cldap type 19 netlogon response */ + typedef struct { + nstring pdc_name; + nstring unknown; + nstring domain_name; + uint32 nt_version; + uint16 lmnt_token; + uint16 lm20_token; + } nbt_cldap_netlogon_19; + + /* cldap type 23 netlogon response */ + typedef struct { + [flag(NDR_ALIGN4)] DATA_BLOB _pad; + nbt_server_type server_type; + GUID domain_uuid; + nbt_string forest; + nbt_string dns_domain; + nbt_string pdc_dns_name; + nbt_string domain; + nbt_string pdc_name; + nbt_string user_name; + nbt_string site_name; + nbt_string site_name2; + uint32 nt_version; + uint16 lmnt_token; + uint16 lm20_token; + } nbt_cldap_netlogon_23; + + typedef [nodiscriminant] union { + [case(CLDAP_NETLOGON_19)] nbt_cldap_netlogon_19 logon19; + [case(CLDAP_NETLOGON_23)] nbt_cldap_netlogon_23 logon23; + } nbt_cldap_netlogon_info; + + typedef [flag(NDR_NOALIGN),public] struct { + nbt_cldap_netlogon_command command; + [switch_is(command)] nbt_cldap_netlogon_info info; + } nbt_cldap_netlogon; + /*******************************************/ /* \MAILSLOT\NET\NTLOGON mailslot requests */ typedef enum { -- cgit