3 * $Id: packet-ldap.h,v 1.6 2002/08/28 21:00:19 jmayer Exp $
5 * Ethereal - Network traffic analyzer
6 * By Gerald Combs <gerald@zing.org>
7 * Copyright 1998 Gerald Combs
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 #ifndef __PACKET_LDAP_H__
26 #define __PACKET_LDAP_H__
29 * These are all APPLICATION types; the value is the type tag.
31 #define LDAP_REQ_BIND 0
32 #define LDAP_REQ_UNBIND 2
33 #define LDAP_REQ_SEARCH 3
34 #define LDAP_REQ_MODIFY 6
35 #define LDAP_REQ_ADD 8
36 #define LDAP_REQ_DELETE 10
37 #define LDAP_REQ_MODRDN 12
38 #define LDAP_REQ_COMPARE 14
39 #define LDAP_REQ_ABANDON 16
40 #define LDAP_REQ_EXTENDED 23 /* LDAP V3 only */
42 #define LDAP_RES_BIND 1
43 #define LDAP_RES_SEARCH_ENTRY 4
44 #define LDAP_RES_SEARCH_REF 19 /* LDAP V3 only */
45 #define LDAP_RES_SEARCH_RESULT 5
46 #define LDAP_RES_MODIFY 7
47 #define LDAP_RES_ADD 9
48 #define LDAP_RES_DELETE 11
49 #define LDAP_RES_MODRDN 13
50 #define LDAP_RES_COMPARE 15
51 #define LDAP_RES_EXTENDED 24 /* LDAP V3 only */
54 * These are all CONTEXT types; the value is the type tag.
57 /* authentication type tags */
58 #define LDAP_AUTH_SIMPLE 0
59 #define LDAP_AUTH_KRBV4LDAP 1 /* LDAP V2 only */
60 #define LDAP_AUTH_KRBV4DSA 2 /* LDAP V2 only */
61 #define LDAP_AUTH_SASL 3 /* LDAP V3 only */
63 /* filter type tags */
64 #define LDAP_FILTER_AND 0
65 #define LDAP_FILTER_OR 1
66 #define LDAP_FILTER_NOT 2
67 #define LDAP_FILTER_EQUALITY 3
68 #define LDAP_FILTER_SUBSTRINGS 4
69 #define LDAP_FILTER_GE 5
70 #define LDAP_FILTER_LE 6
71 #define LDAP_FILTER_PRESENT 7
72 #define LDAP_FILTER_APPROX 8
73 #define LDAP_FILTER_EXTENSIBLE 9 /* LDAP V3 only */
75 #define LDAP_MOD_ADD 0
76 #define LDAP_MOD_DELETE 1
77 #define LDAP_MOD_REPLACE 2