1 /* Do not modify this file. Changes will be overwritten. */
2 /* Generated automatically by the ASN.1 to Wireshark dissector compiler */
4 /* ../../tools/asn2wrs.py -b -p ldap -c ./ldap.cnf -s ./packet-ldap-template -D . -O ../../epan/dissectors Lightweight-Directory-Access-Protocol-V3.asn */
6 /* Input file: packet-ldap-template.h */
8 #line 1 "../../asn1/ldap/packet-ldap-template.h"
10 * Routines for ros packet dissection
11 * Copyright 2005, Anders Broman <anders.broman@ericsson.com>
15 * Wireshark - Network traffic analyzer
16 * By Gerald Combs <gerald@wireshark.org>
17 * Copyright 1998 Gerald Combs
19 * This program is free software; you can redistribute it and/or
20 * modify it under the terms of the GNU General Public License
21 * as published by the Free Software Foundation; either version 2
22 * of the License, or (at your option) any later version.
24 * This program is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 * GNU General Public License for more details.
29 * You should have received a copy of the GNU General Public License
30 * along with this program; if not, write to the Free Software
31 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
34 #ifndef __PACKET_LDAP_H__
35 #define __PACKET_LDAP_H__
37 # include <epan/packet.h> /* for dissector_*_t types */
38 #include "ws_symbol_export.h"
41 * These are all APPLICATION types; the value is the type tag.
43 #define LDAP_REQ_BIND 0
44 #define LDAP_REQ_UNBIND 2
45 #define LDAP_REQ_SEARCH 3
46 #define LDAP_REQ_MODIFY 6
47 #define LDAP_REQ_ADD 8
48 #define LDAP_REQ_DELETE 10
49 #define LDAP_REQ_MODRDN 12
50 #define LDAP_REQ_COMPARE 14
51 #define LDAP_REQ_ABANDON 16
52 #define LDAP_REQ_EXTENDED 23 /* LDAP V3 only */
54 #define LDAP_RES_BIND 1
55 #define LDAP_RES_SEARCH_ENTRY 4
56 #define LDAP_RES_SEARCH_REF 19 /* LDAP V3 only */
57 #define LDAP_RES_SEARCH_RESULT 5
58 #define LDAP_RES_MODIFY 7
59 #define LDAP_RES_ADD 9
60 #define LDAP_RES_DELETE 11
61 #define LDAP_RES_MODRDN 13
62 #define LDAP_RES_COMPARE 15
63 #define LDAP_RES_EXTENDED 24 /* LDAP V3 only */
64 #define LDAP_RES_INTERMEDIATE 25 /* LDAP V3 only */
67 * These are all CONTEXT types; the value is the type tag.
70 /* authentication type tags */
71 #define LDAP_AUTH_SIMPLE 0
72 #define LDAP_AUTH_KRBV4LDAP 1 /* LDAP V2 only */
73 #define LDAP_AUTH_KRBV4DSA 2 /* LDAP V2 only */
74 #define LDAP_AUTH_SASL 3 /* LDAP V3 only */
76 /* filter type tags */
77 #define LDAP_FILTER_AND 0
78 #define LDAP_FILTER_OR 1
79 #define LDAP_FILTER_NOT 2
80 #define LDAP_FILTER_EQUALITY 3
81 #define LDAP_FILTER_SUBSTRINGS 4
82 #define LDAP_FILTER_GE 5
83 #define LDAP_FILTER_LE 6
84 #define LDAP_FILTER_PRESENT 7
85 #define LDAP_FILTER_APPROX 8
86 #define LDAP_FILTER_EXTENSIBLE 9 /* LDAP V3 only */
88 #define LDAP_MOD_ADD 0
89 #define LDAP_MOD_DELETE 1
90 #define LDAP_MOD_REPLACE 2
92 #define LDAP_SASL_MAX_BUF 1024*1024
94 #define NETLOGON_NT_VERSION_1 1
95 #define NETLOGON_NT_VERSION_5 2
96 #define NETLOGON_NT_VERSION_5EX 4
97 #define NETLOGON_NT_VERSION_5EX_WITH_IP 8
98 #define NETLOGON_NT_VERSION_WITH_CLOSEST_SITE 16
100 #define LOGON_SAM_LOGON_RESPONSE 19
101 #define LOGON_SAM_LOGON_RESPONSE_EX 23
103 typedef struct ldap_call_response
{
110 } ldap_call_response_t
;
112 void register_ldap_name_dissector_handle(const char *attr_type
, dissector_handle_t dissector
);
113 void register_ldap_name_dissector(const char *attr_type
, dissector_t dissector
, int proto
);
116 int dissect_mscldap_string(tvbuff_t
*tvb
, int offset
, char *str
, int max_len
, gboolean prepend_dot _U_
);
118 /*#include "packet-ldap-exp.h" */
120 #endif /* PACKET_LDAP_H */