Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
packet-ldap.h
1 /* Do not modify this file. Changes will be overwritten. */
2 /* Generated automatically by the ASN.1 to Wireshark dissector compiler */
3 /* packet-ldap.h */
4 /* asn2wrs.py -b -p ldap -c ./ldap.cnf -s ./packet-ldap-template -D . -O ../.. Lightweight-Directory-Access-Protocol-V3.asn */
5 
6 /* Input file: packet-ldap-template.h */
7 
8 #line 1 "./asn1/ldap/packet-ldap-template.h"
9 /* packet-ldap.h
10  * Routines for ros packet dissection
11  * Copyright 2005, Anders Broman <anders.broman@ericsson.com>
12  *
13  * Wireshark - Network traffic analyzer
14  * By Gerald Combs <gerald@wireshark.org>
15  * Copyright 1998 Gerald Combs
16  *
17  * SPDX-License-Identifier: GPL-2.0-or-later
18  */
19 
20 #ifndef __PACKET_LDAP_H__
21 #define __PACKET_LDAP_H__
22 
23 # include <epan/packet.h> /* for dissector_*_t types */
24 #include "ws_symbol_export.h"
25 
26 /*
27  * These are all APPLICATION types; the value is the type tag.
28  */
29 #define LDAP_REQ_BIND 0
30 #define LDAP_REQ_UNBIND 2
31 #define LDAP_REQ_SEARCH 3
32 #define LDAP_REQ_MODIFY 6
33 #define LDAP_REQ_ADD 8
34 #define LDAP_REQ_DELETE 10
35 #define LDAP_REQ_MODRDN 12
36 #define LDAP_REQ_COMPARE 14
37 #define LDAP_REQ_ABANDON 16
38 #define LDAP_REQ_EXTENDED 23 /* LDAP V3 only */
39 
40 #define LDAP_RES_BIND 1
41 #define LDAP_RES_SEARCH_ENTRY 4
42 #define LDAP_RES_SEARCH_REF 19 /* LDAP V3 only */
43 #define LDAP_RES_SEARCH_RESULT 5
44 #define LDAP_RES_MODIFY 7
45 #define LDAP_RES_ADD 9
46 #define LDAP_RES_DELETE 11
47 #define LDAP_RES_MODRDN 13
48 #define LDAP_RES_COMPARE 15
49 #define LDAP_RES_EXTENDED 24 /* LDAP V3 only */
50 #define LDAP_RES_INTERMEDIATE 25 /* LDAP V3 only */
51 
52 /*
53  * These are all CONTEXT types; the value is the type tag.
54  */
55 
56 /* authentication type tags */
57 #define LDAP_AUTH_SIMPLE 0
58 #define LDAP_AUTH_KRBV4LDAP 1 /* LDAP V2 only */
59 #define LDAP_AUTH_KRBV4DSA 2 /* LDAP V2 only */
60 #define LDAP_AUTH_SASL 3 /* LDAP V3 only */
61 
62 /* filter type tags */
63 #define LDAP_FILTER_AND 0
64 #define LDAP_FILTER_OR 1
65 #define LDAP_FILTER_NOT 2
66 #define LDAP_FILTER_EQUALITY 3
67 #define LDAP_FILTER_SUBSTRINGS 4
68 #define LDAP_FILTER_GE 5
69 #define LDAP_FILTER_LE 6
70 #define LDAP_FILTER_PRESENT 7
71 #define LDAP_FILTER_APPROX 8
72 #define LDAP_FILTER_EXTENSIBLE 9 /* LDAP V3 only */
73 
74 #define LDAP_MOD_ADD 0
75 #define LDAP_MOD_DELETE 1
76 #define LDAP_MOD_REPLACE 2
77 #define LDAP_MOD_INCREMENT 3
78 
79 #define LDAP_SASL_MAX_BUF 1024*1024
80 
81 #define NETLOGON_NT_VERSION_1 1
82 #define NETLOGON_NT_VERSION_5 2
83 #define NETLOGON_NT_VERSION_5EX 4
84 #define NETLOGON_NT_VERSION_5EX_WITH_IP 8
85 #define NETLOGON_NT_VERSION_WITH_CLOSEST_SITE 16
86 
87 #define LOGON_SAM_LOGON_RESPONSE 19
88 #define LOGON_SAM_LOGON_RESPONSE_EX 23
89 
90 typedef struct ldap_call_response {
91  gboolean is_request;
92  guint32 req_frame;
93  nstime_t req_time;
94  guint32 rep_frame;
95  guint messageId;
96  guint protocolOpTag;
98 
99 WS_DLL_PUBLIC
100 int dissect_mscldap_string(tvbuff_t *tvb, int offset, char *str, int max_len, gboolean prepend_dot _U_);
101 
102 WS_DLL_PUBLIC const value_string ldap_procedure_names[];
103 
104 /*#include "packet-ldap-exp.h" */
105 
106 #endif /* PACKET_LDAP_H */
107 
108 
Definition: tvbuff-int.h:35
Definition: nstime.h:27
Definition: packet-ldap-template.h:82
Definition: value_string.h:24