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