3 * $Id: packet-ldap.h,v 1.4 2000/04/08 07:07:28 guy 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.
26 * These are all APPLICATION types; the value is the type tag.
28 #define LDAP_REQ_BIND 0
29 #define LDAP_REQ_UNBIND 2
30 #define LDAP_REQ_SEARCH 3
31 #define LDAP_REQ_MODIFY 6
32 #define LDAP_REQ_ADD 8
33 #define LDAP_REQ_DELETE 10
34 #define LDAP_REQ_MODRDN 12
35 #define LDAP_REQ_COMPARE 14
36 #define LDAP_REQ_ABANDON 16
37 #define LDAP_REQ_EXTENDED 23 /* LDAP V3 only */
39 #define LDAP_RES_BIND 1
40 #define LDAP_RES_SEARCH_ENTRY 4
41 #define LDAP_RES_SEARCH_REF 19 /* LDAP V3 only */
42 #define LDAP_RES_SEARCH_RESULT 5
43 #define LDAP_RES_MODIFY 7
44 #define LDAP_RES_ADD 9
45 #define LDAP_RES_DELETE 11
46 #define LDAP_RES_MODRDN 13
47 #define LDAP_RES_COMPARE 15
48 #define LDAP_RES_EXTENDED 24 /* LDAP V3 only */
51 * These are all CONTEXT types; the value is the type tag.
54 /* authentication type tags */
55 #define LDAP_AUTH_SIMPLE 0
56 #define LDAP_AUTH_KRBV4LDAP 1 /* LDAP V2 only */
57 #define LDAP_AUTH_KRBV4DSA 2 /* LDAP V2 only */
58 #define LDAP_AUTH_SASL 3 /* LDAP V3 only */
60 /* filter type tags */
61 #define LDAP_FILTER_AND 0
62 #define LDAP_FILTER_OR 1
63 #define LDAP_FILTER_NOT 2
64 #define LDAP_FILTER_EQUALITY 3
65 #define LDAP_FILTER_SUBSTRINGS 4
66 #define LDAP_FILTER_GE 5
67 #define LDAP_FILTER_LE 6
68 #define LDAP_FILTER_PRESENT 7
69 #define LDAP_FILTER_APPROX 8
70 #define LDAP_FILTER_EXTENSIBLE 9 /* LDAP V3 only */
72 #define LDAP_MOD_ADD 0
73 #define LDAP_MOD_DELETE 1
74 #define LDAP_MOD_REPLACE 2