Add missing propset ...

svn path=/trunk/; revision=16749
This commit is contained in:
Jörg Mayer 2005-12-09 16:46:24 +00:00
parent 9e0577d0d2
commit 50d94b2f95
6 changed files with 1112 additions and 1112 deletions

168
asn1/ldap/Lightweight-Directory-Access-Protocol-V3.asn Executable file → Normal file
View File

@ -117,9 +117,9 @@ Control ::= SEQUENCE {
criticality BOOLEAN DEFAULT FALSE,
controlValue OCTET STRING OPTIONAL
}
ControlType ::= LDAPOID
BindRequest ::= [APPLICATION 0] SEQUENCE {
version INTEGER(1..127),
name LDAPDN,
@ -135,53 +135,53 @@ AuthenticationChoice ::= CHOICE {
SaslCredentials ::= SEQUENCE {
mechanism Mechanism,
credentials OCTET STRING OPTIONAL
}
}
Mechanism ::= LDAPString
BindResponse ::= [APPLICATION 1] SEQUENCE {
-- COMPONENTS OF LDAPResult,
resultCode
ENUMERATED {success(0), operationsError(1), protocolError(2),
timeLimitExceeded(3), sizeLimitExceeded(4), compareFalse(5),
compareTrue(6), authMethodNotSupported(7),
strongAuthRequired(8),
-- 9 reserved
referral(10),-- new-- adminLimitExceeded(11),-- new--
unavailableCriticalExtension(12),-- new--
confidentialityRequired(13),-- new--
saslBindInProgress(14),-- new-- noSuchAttribute(16),
undefinedAttributeType(17), inappropriateMatching(18),
constraintViolation(19), attributeOrValueExists(20),
invalidAttributeSyntax(21),
-- 22-31 unused
noSuchObject(32), aliasProblem(33),
invalidDNSyntax(34),
-- 35 reserved for undefined isLeaf
aliasDereferencingProblem(36),
-- 37-47 unused
inappropriateAuthentication(48), invalidCredentials(49),
insufficientAccessRights(50), busy(51), unavailable(52),
unwillingToPerform(53),
loopDetect(54),
-- 55-63 unused
namingViolation(64), objectClassViolation(65),
notAllowedOnNonLeaf(66), notAllowedOnRDN(67),
entryAlreadyExists(68),
objectClassModsProhibited(69),
-- 70 reserved for CLDAP
affectsMultipleDSAs(71),-- new--
-- 72-79 unused
other(80)},
-- 81-90 reserved for APIs
matchedDN LDAPDN,
errorMessage ErrorMessage,
referral [3] Referral OPTIONAL,
-- COMPONENTS OF LDAPResult,
resultCode
ENUMERATED {success(0), operationsError(1), protocolError(2),
timeLimitExceeded(3), sizeLimitExceeded(4), compareFalse(5),
compareTrue(6), authMethodNotSupported(7),
strongAuthRequired(8),
-- 9 reserved
referral(10),-- new-- adminLimitExceeded(11),-- new--
unavailableCriticalExtension(12),-- new--
confidentialityRequired(13),-- new--
saslBindInProgress(14),-- new-- noSuchAttribute(16),
undefinedAttributeType(17), inappropriateMatching(18),
constraintViolation(19), attributeOrValueExists(20),
invalidAttributeSyntax(21),
-- 22-31 unused
noSuchObject(32), aliasProblem(33),
invalidDNSyntax(34),
-- 35 reserved for undefined isLeaf
aliasDereferencingProblem(36),
-- 37-47 unused
inappropriateAuthentication(48), invalidCredentials(49),
insufficientAccessRights(50), busy(51), unavailable(52),
unwillingToPerform(53),
loopDetect(54),
-- 55-63 unused
namingViolation(64), objectClassViolation(65),
notAllowedOnNonLeaf(66), notAllowedOnRDN(67),
entryAlreadyExists(68),
objectClassModsProhibited(69),
-- 70 reserved for CLDAP
affectsMultipleDSAs(71),-- new--
-- 72-79 unused
other(80)},
-- 81-90 reserved for APIs
matchedDN LDAPDN,
errorMessage ErrorMessage,
referral [3] Referral OPTIONAL,
-- end of components
serverSaslCreds [7] OCTET STRING OPTIONAL
}
}
ErrorMessage ::= LDAPString
UnbindRequest ::= [APPLICATION 2] NULL
@ -232,7 +232,7 @@ MatchingRuleAssertion ::= SEQUENCE {
SearchResultEntry ::= [APPLICATION 4] SEQUENCE {
objectName LDAPDN,
attributes PartialAttributeList
}
}
PartialAttributeList ::=
SEQUENCE OF SEQUENCE {type AttributeDescription,
@ -297,47 +297,47 @@ ExtendedRequest ::= [APPLICATION 23] SEQUENCE {
ExtendedResponse ::= [APPLICATION 24] SEQUENCE {
-- COMPONENTS OF LDAPResult,
resultCode
ENUMERATED {success(0), operationsError(1), protocolError(2),
timeLimitExceeded(3), sizeLimitExceeded(4), compareFalse(5),
compareTrue(6), authMethodNotSupported(7),
strongAuthRequired(8),
-- 9 reserved
referral(10),-- new-- adminLimitExceeded(11),-- new--
unavailableCriticalExtension(12),-- new--
confidentialityRequired(13),-- new--
saslBindInProgress(14),-- new-- noSuchAttribute(16),
undefinedAttributeType(17), inappropriateMatching(18),
constraintViolation(19), attributeOrValueExists(20),
invalidAttributeSyntax(21),
-- 22-31 unused
noSuchObject(32), aliasProblem(33),
invalidDNSyntax(34),
-- 35 reserved for undefined isLeaf
aliasDereferencingProblem(36),
-- 37-47 unused
inappropriateAuthentication(48), invalidCredentials(49),
insufficientAccessRights(50), busy(51), unavailable(52),
unwillingToPerform(53),
loopDetect(54),
-- 55-63 unused
namingViolation(64), objectClassViolation(65),
notAllowedOnNonLeaf(66), notAllowedOnRDN(67),
entryAlreadyExists(68),
objectClassModsProhibited(69),
-- 70 reserved for CLDAP
affectsMultipleDSAs(71),-- new--
-- 72-79 unused
other(80)},
-- 81-90 reserved for APIs
matchedDN LDAPDN,
errorMessage ErrorMessage,
referral [3] Referral OPTIONAL,
-- end of COMPONENTS
resultCode
ENUMERATED {success(0), operationsError(1), protocolError(2),
timeLimitExceeded(3), sizeLimitExceeded(4), compareFalse(5),
compareTrue(6), authMethodNotSupported(7),
strongAuthRequired(8),
-- 9 reserved
referral(10),-- new-- adminLimitExceeded(11),-- new--
unavailableCriticalExtension(12),-- new--
confidentialityRequired(13),-- new--
saslBindInProgress(14),-- new-- noSuchAttribute(16),
undefinedAttributeType(17), inappropriateMatching(18),
constraintViolation(19), attributeOrValueExists(20),
invalidAttributeSyntax(21),
-- 22-31 unused
noSuchObject(32), aliasProblem(33),
invalidDNSyntax(34),
-- 35 reserved for undefined isLeaf
aliasDereferencingProblem(36),
-- 37-47 unused
inappropriateAuthentication(48), invalidCredentials(49),
insufficientAccessRights(50), busy(51), unavailable(52),
unwillingToPerform(53),
loopDetect(54),
-- 55-63 unused
namingViolation(64), objectClassViolation(65),
notAllowedOnNonLeaf(66), notAllowedOnRDN(67),
entryAlreadyExists(68),
objectClassModsProhibited(69),
-- 70 reserved for CLDAP
affectsMultipleDSAs(71),-- new--
-- 72-79 unused
other(80)},
-- 81-90 reserved for APIs
matchedDN LDAPDN,
errorMessage ErrorMessage,
referral [3] Referral OPTIONAL,
-- end of COMPONENTS
responseName [10] ResponseName OPTIONAL,
response [11] OCTET STRING OPTIONAL
}
}
ResponseName ::= LDAPOID
END

View File

@ -117,9 +117,9 @@ Control ::= SEQUENCE {
criticality BOOLEAN DEFAULT FALSE,
controlValue OCTET STRING OPTIONAL
}
ControlType ::= LDAPOID
BindRequest ::= [APPLICATION 0] SEQUENCE {
version INTEGER(1..127),
name LDAPDN,
@ -135,53 +135,53 @@ AuthenticationChoice ::= CHOICE {
SaslCredentials ::= SEQUENCE {
mechanism Mechanism,
credentials OCTET STRING OPTIONAL
}
}
Mechanism ::= LDAPString
BindResponse ::= [APPLICATION 1] SEQUENCE {
-- COMPONENTS OF LDAPResult,
resultCode
ENUMERATED {success(0), operationsError(1), protocolError(2),
timeLimitExceeded(3), sizeLimitExceeded(4), compareFalse(5),
compareTrue(6), authMethodNotSupported(7),
strongAuthRequired(8),
-- 9 reserved
referral(10),-- new-- adminLimitExceeded(11),-- new--
unavailableCriticalExtension(12),-- new--
confidentialityRequired(13),-- new--
saslBindInProgress(14),-- new-- noSuchAttribute(16),
undefinedAttributeType(17), inappropriateMatching(18),
constraintViolation(19), attributeOrValueExists(20),
invalidAttributeSyntax(21),
-- 22-31 unused
noSuchObject(32), aliasProblem(33),
invalidDNSyntax(34),
-- 35 reserved for undefined isLeaf
aliasDereferencingProblem(36),
-- 37-47 unused
inappropriateAuthentication(48), invalidCredentials(49),
insufficientAccessRights(50), busy(51), unavailable(52),
unwillingToPerform(53),
loopDetect(54),
-- 55-63 unused
namingViolation(64), objectClassViolation(65),
notAllowedOnNonLeaf(66), notAllowedOnRDN(67),
entryAlreadyExists(68),
objectClassModsProhibited(69),
-- 70 reserved for CLDAP
affectsMultipleDSAs(71),-- new--
-- 72-79 unused
other(80)},
-- 81-90 reserved for APIs
matchedDN LDAPDN,
errorMessage ErrorMessage,
referral [3] Referral OPTIONAL,
-- COMPONENTS OF LDAPResult,
resultCode
ENUMERATED {success(0), operationsError(1), protocolError(2),
timeLimitExceeded(3), sizeLimitExceeded(4), compareFalse(5),
compareTrue(6), authMethodNotSupported(7),
strongAuthRequired(8),
-- 9 reserved
referral(10),-- new-- adminLimitExceeded(11),-- new--
unavailableCriticalExtension(12),-- new--
confidentialityRequired(13),-- new--
saslBindInProgress(14),-- new-- noSuchAttribute(16),
undefinedAttributeType(17), inappropriateMatching(18),
constraintViolation(19), attributeOrValueExists(20),
invalidAttributeSyntax(21),
-- 22-31 unused
noSuchObject(32), aliasProblem(33),
invalidDNSyntax(34),
-- 35 reserved for undefined isLeaf
aliasDereferencingProblem(36),
-- 37-47 unused
inappropriateAuthentication(48), invalidCredentials(49),
insufficientAccessRights(50), busy(51), unavailable(52),
unwillingToPerform(53),
loopDetect(54),
-- 55-63 unused
namingViolation(64), objectClassViolation(65),
notAllowedOnNonLeaf(66), notAllowedOnRDN(67),
entryAlreadyExists(68),
objectClassModsProhibited(69),
-- 70 reserved for CLDAP
affectsMultipleDSAs(71),-- new--
-- 72-79 unused
other(80)},
-- 81-90 reserved for APIs
matchedDN LDAPDN,
errorMessage ErrorMessage,
referral [3] Referral OPTIONAL,
-- end of components
serverSaslCreds [7] OCTET STRING OPTIONAL
}
}
ErrorMessage ::= LDAPString
UnbindRequest ::= [APPLICATION 2] NULL
@ -232,7 +232,7 @@ MatchingRuleAssertion ::= SEQUENCE {
SearchResultEntry ::= [APPLICATION 4] SEQUENCE {
objectName LDAPDN,
attributes PartialAttributeList
}
}
PartialAttributeList ::=
SEQUENCE OF SEQUENCE {type AttributeDescription,
@ -297,47 +297,47 @@ ExtendedRequest ::= [APPLICATION 23] SEQUENCE {
ExtendedResponse ::= [APPLICATION 24] SEQUENCE {
-- COMPONENTS OF LDAPResult,
resultCode
ENUMERATED {success(0), operationsError(1), protocolError(2),
timeLimitExceeded(3), sizeLimitExceeded(4), compareFalse(5),
compareTrue(6), authMethodNotSupported(7),
strongAuthRequired(8),
-- 9 reserved
referral(10),-- new-- adminLimitExceeded(11),-- new--
unavailableCriticalExtension(12),-- new--
confidentialityRequired(13),-- new--
saslBindInProgress(14),-- new-- noSuchAttribute(16),
undefinedAttributeType(17), inappropriateMatching(18),
constraintViolation(19), attributeOrValueExists(20),
invalidAttributeSyntax(21),
-- 22-31 unused
noSuchObject(32), aliasProblem(33),
invalidDNSyntax(34),
-- 35 reserved for undefined isLeaf
aliasDereferencingProblem(36),
-- 37-47 unused
inappropriateAuthentication(48), invalidCredentials(49),
insufficientAccessRights(50), busy(51), unavailable(52),
unwillingToPerform(53),
loopDetect(54),
-- 55-63 unused
namingViolation(64), objectClassViolation(65),
notAllowedOnNonLeaf(66), notAllowedOnRDN(67),
entryAlreadyExists(68),
objectClassModsProhibited(69),
-- 70 reserved for CLDAP
affectsMultipleDSAs(71),-- new--
-- 72-79 unused
other(80)},
-- 81-90 reserved for APIs
matchedDN LDAPDN,
errorMessage ErrorMessage,
referral [3] Referral OPTIONAL,
-- end of COMPONENTS
resultCode
ENUMERATED {success(0), operationsError(1), protocolError(2),
timeLimitExceeded(3), sizeLimitExceeded(4), compareFalse(5),
compareTrue(6), authMethodNotSupported(7),
strongAuthRequired(8),
-- 9 reserved
referral(10),-- new-- adminLimitExceeded(11),-- new--
unavailableCriticalExtension(12),-- new--
confidentialityRequired(13),-- new--
saslBindInProgress(14),-- new-- noSuchAttribute(16),
undefinedAttributeType(17), inappropriateMatching(18),
constraintViolation(19), attributeOrValueExists(20),
invalidAttributeSyntax(21),
-- 22-31 unused
noSuchObject(32), aliasProblem(33),
invalidDNSyntax(34),
-- 35 reserved for undefined isLeaf
aliasDereferencingProblem(36),
-- 37-47 unused
inappropriateAuthentication(48), invalidCredentials(49),
insufficientAccessRights(50), busy(51), unavailable(52),
unwillingToPerform(53),
loopDetect(54),
-- 55-63 unused
namingViolation(64), objectClassViolation(65),
notAllowedOnNonLeaf(66), notAllowedOnRDN(67),
entryAlreadyExists(68),
objectClassModsProhibited(69),
-- 70 reserved for CLDAP
affectsMultipleDSAs(71),-- new--
-- 72-79 unused
other(80)},
-- 81-90 reserved for APIs
matchedDN LDAPDN,
errorMessage ErrorMessage,
referral [3] Referral OPTIONAL,
-- end of COMPONENTS
responseName [10] ResponseName OPTIONAL,
response [11] OCTET STRING OPTIONAL
}
}
ResponseName ::= LDAPOID
END

84
asn1/ldap/Makefile.nmake Executable file → Normal file
View File

@ -1,42 +1,42 @@
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
#
# $Id: Makefile.nmake 13077 2005-01-16 23:26:02Z lroland $
include ../../config.nmake
UNIX2DOS=$(PERL) ../../tools/unix2dos.pl
PROTOCOL_NAME=ldap
DISSECTOR_FILES=packet-$(PROTOCOL_NAME).c packet-$(PROTOCOL_NAME).h
all: generate_dissector
generate_dissector: $(DISSECTOR_FILES)
$(DISSECTOR_FILES): ../../tools/asn2eth.py Lightweight-Directory-Access-Protocol-V3.asn packet-ldap-template.c packet-ldap-template.h ldap.cnf
!IFDEF PYTHON
$(PYTHON) ../../tools/asn2eth.py -X -b -e -p $(PROTOCOL_NAME) -c ldap.cnf -s packet-ldap-template Lightweight-Directory-Access-Protocol-V3.asn
!ELSE
@echo Error: You need Python to use asn2eth.py
@exit 1
!ENDIF
clean:
rm -f parsetab.py $(DISSECTOR_FILES)
# Fix EOL in generated dissectors. Cygwin's python generates files with
# mixed EOL styles, which can't be commited to the SVN repository.
# Stuff included from template and "cnf" files has "\r\n" on windows, while
# the generated stuff has "\n".
fix_eol: generate_dissector
move packet-$(PROTOCOL_NAME).c packet-$(PROTOCOL_NAME).c.tmp
move packet-$(PROTOCOL_NAME).h packet-$(PROTOCOL_NAME).h.tmp
$(UNIX2DOS) < packet-$(PROTOCOL_NAME).c.tmp > packet-$(PROTOCOL_NAME).c
$(UNIX2DOS) < packet-$(PROTOCOL_NAME).h.tmp > packet-$(PROTOCOL_NAME).h
del /f packet-$(PROTOCOL_NAME).c.tmp packet-$(PROTOCOL_NAME).h.tmp
copy_files: generate_dissector fix_eol
xcopy packet-$(PROTOCOL_NAME).c ..\..\epan\dissectors /d /y
xcopy packet-$(PROTOCOL_NAME).h ..\..\epan\dissectors /d /y
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
#
# $Id$
include ../../config.nmake
UNIX2DOS=$(PERL) ../../tools/unix2dos.pl
PROTOCOL_NAME=ldap
DISSECTOR_FILES=packet-$(PROTOCOL_NAME).c packet-$(PROTOCOL_NAME).h
all: generate_dissector
generate_dissector: $(DISSECTOR_FILES)
$(DISSECTOR_FILES): ../../tools/asn2eth.py Lightweight-Directory-Access-Protocol-V3.asn packet-ldap-template.c packet-ldap-template.h ldap.cnf
!IFDEF PYTHON
$(PYTHON) ../../tools/asn2eth.py -X -b -e -p $(PROTOCOL_NAME) -c ldap.cnf -s packet-ldap-template Lightweight-Directory-Access-Protocol-V3.asn
!ELSE
@echo Error: You need Python to use asn2eth.py
@exit 1
!ENDIF
clean:
rm -f parsetab.py $(DISSECTOR_FILES)
# Fix EOL in generated dissectors. Cygwin's python generates files with
# mixed EOL styles, which can't be commited to the SVN repository.
# Stuff included from template and "cnf" files has "\r\n" on windows, while
# the generated stuff has "\n".
fix_eol: generate_dissector
move packet-$(PROTOCOL_NAME).c packet-$(PROTOCOL_NAME).c.tmp
move packet-$(PROTOCOL_NAME).h packet-$(PROTOCOL_NAME).h.tmp
$(UNIX2DOS) < packet-$(PROTOCOL_NAME).c.tmp > packet-$(PROTOCOL_NAME).c
$(UNIX2DOS) < packet-$(PROTOCOL_NAME).h.tmp > packet-$(PROTOCOL_NAME).h
del /f packet-$(PROTOCOL_NAME).c.tmp packet-$(PROTOCOL_NAME).h.tmp
copy_files: generate_dissector fix_eol
xcopy packet-$(PROTOCOL_NAME).c ..\..\epan\dissectors /d /y
xcopy packet-$(PROTOCOL_NAME).h ..\..\epan\dissectors /d /y

76
asn1/ldap/ldap.cnf Executable file → Normal file
View File

@ -1,38 +1,38 @@
# ros.cnf
# ros conformation file
# Copyright 2005 Anders Broman
# $Id:$
#.PDU
LDAPMessage
#.TYPE_RENAME
BindResponse/resultCode BindResponse_resultCode
ExtendedResponse/resultCode ExtendedResponse_resultCode
ModifyRequest/modification ModifyRequest_modification
#.FIELD_RENAME
BindResponse/resultCode bindResponse_resultCode
ExtendedResponse/resultCode extendedResponse_resultCode
SearchRequest/attributes searchRequest_attributes
SearchResultEntry/attributes searchResultEntry_attributes
ModifyRequest/modification modifyRequest_modification
SubstringFilter/substrings substringFilter_substrings
#.TYPE_ATTR
LDAPDN TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL
RelativeLDAPDN TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL
AttributeType TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL
AttributeDescription TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL
MatchingRuleId TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL
ErrorMessage TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL
LDAPURL TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL
Mechanism TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL
ControlType TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL
ResponseName TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL
#.FN_PARS MessageID VAL_PTR = &MessageID
#.FN_PARS AuthenticationChoice VAL_PTR = &AuthenticationChoice
# ros.cnf
# ros conformation file
# Copyright 2005 Anders Broman
# $Id$
#.PDU
LDAPMessage
#.TYPE_RENAME
BindResponse/resultCode BindResponse_resultCode
ExtendedResponse/resultCode ExtendedResponse_resultCode
ModifyRequest/modification ModifyRequest_modification
#.FIELD_RENAME
BindResponse/resultCode bindResponse_resultCode
ExtendedResponse/resultCode extendedResponse_resultCode
SearchRequest/attributes searchRequest_attributes
SearchResultEntry/attributes searchResultEntry_attributes
ModifyRequest/modification modifyRequest_modification
SubstringFilter/substrings substringFilter_substrings
#.TYPE_ATTR
LDAPDN TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL
RelativeLDAPDN TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL
AttributeType TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL
AttributeDescription TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL
MatchingRuleId TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL
ErrorMessage TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL
LDAPURL TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL
Mechanism TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL
ControlType TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL
ResponseName TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL
#.FN_PARS MessageID VAL_PTR = &MessageID
#.FN_PARS AuthenticationChoice VAL_PTR = &AuthenticationChoice

1540
asn1/ldap/packet-ldap-template.c Executable file → Normal file

File diff suppressed because it is too large Load Diff

188
asn1/ldap/packet-ldap-template.h Executable file → Normal file
View File

@ -1,94 +1,94 @@
/* packet-ldap.h
* Routines for ros packet dissection
* Copyright 2005, Anders Broman <anders.broman@ericsson.com>
*
* $Id: packet-ros-template.h 12203 2004-10-05 09:18:55Z guy $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __PACKET_LDAP_H__
#define __PACKET_LDAP_H__
/*
* These are all APPLICATION types; the value is the type tag.
*/
#define LDAP_REQ_BIND 0
#define LDAP_REQ_UNBIND 2
#define LDAP_REQ_SEARCH 3
#define LDAP_REQ_MODIFY 6
#define LDAP_REQ_ADD 8
#define LDAP_REQ_DELETE 10
#define LDAP_REQ_MODRDN 12
#define LDAP_REQ_COMPARE 14
#define LDAP_REQ_ABANDON 16
#define LDAP_REQ_EXTENDED 23 /* LDAP V3 only */
#define LDAP_RES_BIND 1
#define LDAP_RES_SEARCH_ENTRY 4
#define LDAP_RES_SEARCH_REF 19 /* LDAP V3 only */
#define LDAP_RES_SEARCH_RESULT 5
#define LDAP_RES_MODIFY 7
#define LDAP_RES_ADD 9
#define LDAP_RES_DELETE 11
#define LDAP_RES_MODRDN 13
#define LDAP_RES_COMPARE 15
#define LDAP_RES_EXTENDED 24 /* LDAP V3 only */
/*
* These are all CONTEXT types; the value is the type tag.
*/
/* authentication type tags */
#define LDAP_AUTH_SIMPLE 0
#define LDAP_AUTH_KRBV4LDAP 1 /* LDAP V2 only */
#define LDAP_AUTH_KRBV4DSA 2 /* LDAP V2 only */
#define LDAP_AUTH_SASL 3 /* LDAP V3 only */
/* filter type tags */
#define LDAP_FILTER_AND 0
#define LDAP_FILTER_OR 1
#define LDAP_FILTER_NOT 2
#define LDAP_FILTER_EQUALITY 3
#define LDAP_FILTER_SUBSTRINGS 4
#define LDAP_FILTER_GE 5
#define LDAP_FILTER_LE 6
#define LDAP_FILTER_PRESENT 7
#define LDAP_FILTER_APPROX 8
#define LDAP_FILTER_EXTENSIBLE 9 /* LDAP V3 only */
#define LDAP_MOD_ADD 0
#define LDAP_MOD_DELETE 1
#define LDAP_MOD_REPLACE 2
typedef struct ldap_call_response {
gboolean is_request;
guint32 req_frame;
nstime_t req_time;
guint32 rep_frame;
guint messageId;
guint protocolOpTag;
} ldap_call_response_t;
/*#include "packet-ldap-exp.h" */
#endif /* PACKET_LDAP_H */
/* packet-ldap.h
* Routines for ros packet dissection
* Copyright 2005, Anders Broman <anders.broman@ericsson.com>
*
* $Id$
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __PACKET_LDAP_H__
#define __PACKET_LDAP_H__
/*
* These are all APPLICATION types; the value is the type tag.
*/
#define LDAP_REQ_BIND 0
#define LDAP_REQ_UNBIND 2
#define LDAP_REQ_SEARCH 3
#define LDAP_REQ_MODIFY 6
#define LDAP_REQ_ADD 8
#define LDAP_REQ_DELETE 10
#define LDAP_REQ_MODRDN 12
#define LDAP_REQ_COMPARE 14
#define LDAP_REQ_ABANDON 16
#define LDAP_REQ_EXTENDED 23 /* LDAP V3 only */
#define LDAP_RES_BIND 1
#define LDAP_RES_SEARCH_ENTRY 4
#define LDAP_RES_SEARCH_REF 19 /* LDAP V3 only */
#define LDAP_RES_SEARCH_RESULT 5
#define LDAP_RES_MODIFY 7
#define LDAP_RES_ADD 9
#define LDAP_RES_DELETE 11
#define LDAP_RES_MODRDN 13
#define LDAP_RES_COMPARE 15
#define LDAP_RES_EXTENDED 24 /* LDAP V3 only */
/*
* These are all CONTEXT types; the value is the type tag.
*/
/* authentication type tags */
#define LDAP_AUTH_SIMPLE 0
#define LDAP_AUTH_KRBV4LDAP 1 /* LDAP V2 only */
#define LDAP_AUTH_KRBV4DSA 2 /* LDAP V2 only */
#define LDAP_AUTH_SASL 3 /* LDAP V3 only */
/* filter type tags */
#define LDAP_FILTER_AND 0
#define LDAP_FILTER_OR 1
#define LDAP_FILTER_NOT 2
#define LDAP_FILTER_EQUALITY 3
#define LDAP_FILTER_SUBSTRINGS 4
#define LDAP_FILTER_GE 5
#define LDAP_FILTER_LE 6
#define LDAP_FILTER_PRESENT 7
#define LDAP_FILTER_APPROX 8
#define LDAP_FILTER_EXTENSIBLE 9 /* LDAP V3 only */
#define LDAP_MOD_ADD 0
#define LDAP_MOD_DELETE 1
#define LDAP_MOD_REPLACE 2
typedef struct ldap_call_response {
gboolean is_request;
guint32 req_frame;
nstime_t req_time;
guint32 rep_frame;
guint messageId;
guint protocolOpTag;
} ldap_call_response_t;
/*#include "packet-ldap-exp.h" */
#endif /* PACKET_LDAP_H */