| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
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 -q -L -p ldap -c ./ldap.cnf -s ./packet-ldap-template -D . -O ../.. Lightweight-Directory-Access-Protocol-V3.asn */
5
6/* packet-ldap.h
7 * Routines for ros packet dissection
8 * Copyright 2005, Anders Broman <anders.broman@ericsson.com>
9 *
10 * Wireshark - Network traffic analyzer
11 * By Gerald Combs <gerald@wireshark.org>
12 * Copyright 1998 Gerald Combs
13 *
14 * SPDX-License-Identifier: GPL-2.0-or-later
15 */
16
17#ifndef __PACKET_LDAP_H__
18#define __PACKET_LDAP_H__
19
20# include <epan/packet.h> /* for dissector_*_t types */
21#include "ws_symbol_export.h"
22
23/*
24 * These are all APPLICATION types; the value is the type tag.
25 */
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 */
36
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 */
48
49/*
50 * These are all CONTEXT types; the value is the type tag.
51 */
52
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 */
58
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 */
70
71#define LDAP_MOD_ADD 0
72#define LDAP_MOD_DELETE 1
73#define LDAP_MOD_REPLACE 2
74#define LDAP_MOD_INCREMENT 3
75
76#define LDAP_SASL_MAX_BUF 1024*1024
77
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
83
84#define LOGON_SAM_LOGON_RESPONSE 19
85#define LOGON_SAM_LOGON_RESPONSE_EX 23
86
87 typedef struct ldap_call_response {
88 bool is_request;
89 uint32_t req_frame;
90 nstime_t req_time;
91 uint32_t rep_frame;
92 unsigned messageId;
93 unsigned protocolOpTag;
94} ldap_call_response_t;
95
96WS_DLL_PUBLIC
97 int dissect_mscldap_string(wmem_allocator_t *scope, tvbuff_t *tvb, int offset, int max_len, char **str);
98
99WS_DLL_PUBLIC const value_string ldap_procedure_names[];
100
101#define maxInt 2147483647
102
103#endif /* PACKET_LDAP_H */
104
105
packet.h
_value_string
Mapping between a 32-bit integer value and its string representation.
Definition value_string.h:33
_wmem_allocator_t
Internal memory allocator interface used by the wmem subsystem.
Definition wmem_allocator.h:34
ldap_call_response
Definition packet-ldap.h:87
nstime_t
Definition nstime.h:26
tvbuff
Definition tvbuff-int.h:36