From 9160c85a78b66dab5318e2c9c922f00b6b3560f5 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Sat, 11 Oct 1997 15:10:57 +0000 Subject: namelogon.c : added NTLOGON. (fixed the case 0:) namepacket.c: call to NTLOGON mailslot nameserv.h defines for NETLOGON and NTLOGON mailslot util.c: added andrew's dump_data() function. (This used to be commit 1eaad1c99463dcd42eb8ff4ea5686ad9ec6fc42e) --- source3/include/nameserv.h | 7 +++++++ source3/include/proto.h | 1 + 2 files changed, 8 insertions(+) (limited to 'source3/include') diff --git a/source3/include/nameserv.h b/source3/include/nameserv.h index 83f3a3c524..593c101d92 100644 --- a/source3/include/nameserv.h +++ b/source3/include/nameserv.h @@ -82,6 +82,7 @@ /* mail slots */ #define BROWSE_MAILSLOT "\\MAILSLOT\\BROWSE" #define NET_LOGON_MAILSLOT "\\MAILSLOT\\NET\\NETLOGON" +#define NT_LOGON_MAILSLOT "\\MAILSLOT\\NET\\NTLOGON" enum name_source {STATUS_QUERY, LMHOSTS, REGISTER, SELF, DNS, DNSFAIL}; enum node_type {B_NODE=0, P_NODE=1, M_NODE=2, NBDD_NODE=3}; @@ -372,6 +373,12 @@ struct packet_struct } packet; }; +/* NETLOGON opcodes */ +#define QUERYFORPDC 7 /* Query for PDC */ +#define QUERYFORPDC_R 12 /* Response to Query for PDC */ +#define SAMLOGON 18 +#define SAMLOGON_R 19 + /* ids for netbios packet types */ #define ANN_HostAnnouncement 1 diff --git a/source3/include/proto.h b/source3/include/proto.h index 93458bcaf9..f859e9bfa2 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -1071,3 +1071,4 @@ void pstrcpy(char *dest, char *src); char *align4(char *q, char *base); char *align2(char *q, char *base); char *align_offset(char *q, char *base, int align_offset_len); +void dump_data(int level,unsigned char *buf,int len); -- cgit