From 3f9201e95b9966039bda8850fcb5077cc065f85d Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 15 Jun 2006 05:18:06 +0000 Subject: [PATCH] some LDAP ASN.1 updates from 4511/4526 --- libraries/libldap/controls.c | 8 ++--- libraries/libldap/filter.c | 60 ++++++++++++++++++------------------ libraries/libldap/result.c | 14 ++++----- 3 files changed, 41 insertions(+), 41 deletions(-) diff --git a/libraries/libldap/controls.c b/libraries/libldap/controls.c index d12afd41b5..ad8384e9c3 100644 --- a/libraries/libldap/controls.c +++ b/libraries/libldap/controls.c @@ -30,13 +30,13 @@ * can be found in the file "build/LICENSE-2.0.1" in this distribution * of OpenLDAP Software. */ -/* Portions Copyright (C) The Internet Society (1997) - * ASN.1 fragments are from RFC 2251; see RFC for full legal notices. +/* Portions Copyright (C) The Internet Society (2006) + * ASN.1 fragments are from RFC 4511; see RFC for full legal notices. */ -/* LDAPv3 Controls (RFC2251) +/* LDAPv3 Controls (RFC 4511) * - * Controls ::= SEQUENCE OF Control + * Controls ::= SEQUENCE OF control Control * * Control ::= SEQUENCE { * controlType LDAPOID, diff --git a/libraries/libldap/filter.c b/libraries/libldap/filter.c index 9241a61c8b..c6453a09fa 100644 --- a/libraries/libldap/filter.c +++ b/libraries/libldap/filter.c @@ -16,8 +16,8 @@ /* Portions Copyright (c) 1990 Regents of the University of Michigan. * All rights reserved. */ -/* Portions Copyright (C) The Internet Society (1997). - * ASN.1 fragments are from RFC 2251; see RFC for full legal notices. +/* Portions Copyright (C) The Internet Society (2006) + * ASN.1 fragments are from RFC 4511; see RFC for full legal notices. */ #include "portable.h" @@ -334,36 +334,36 @@ ldap_pvt_put_filter( BerElement *ber, const char *str_in ) int parens, balance, escape; /* - * A Filter looks like this: - * Filter ::= CHOICE { - * and [0] SET OF Filter, - * or [1] SET OF Filter, - * not [2] Filter, - * equalityMatch [3] AttributeValueAssertion, - * substrings [4] SubstringFilter, - * greaterOrEqual [5] AttributeValueAssertion, - * lessOrEqual [6] AttributeValueAssertion, - * present [7] AttributeType, - * approxMatch [8] AttributeValueAssertion, - * extensibleMatch [9] MatchingRuleAssertion -- LDAPv3 - * } + * A Filter looks like this (RFC 4511 as extended by RFC 4526): + * Filter ::= CHOICE { + * and [0] SET SIZE (0..MAX) OF filter Filter, + * or [1] SET SIZE (0..MAX) OF filter Filter, + * not [2] Filter, + * equalityMatch [3] AttributeValueAssertion, + * substrings [4] SubstringFilter, + * greaterOrEqual [5] AttributeValueAssertion, + * lessOrEqual [6] AttributeValueAssertion, + * present [7] AttributeDescription, + * approxMatch [8] AttributeValueAssertion, + * extensibleMatch [9] MatchingRuleAssertion, + * ... } * - * SubstringFilter ::= SEQUENCE { - * type AttributeType, - * SEQUENCE OF CHOICE { - * initial [0] IA5String, - * any [1] IA5String, - * final [2] IA5String - * } - * } + * SubstringFilter ::= SEQUENCE { + * type AttributeDescription, + * substrings SEQUENCE SIZE (1..MAX) OF substring CHOICE { + * initial [0] AssertionValue, -- only once + * any [1] AssertionValue, + * final [2] AssertionValue -- only once + * } + * } * - * MatchingRuleAssertion ::= SEQUENCE { -- LDAPv3 - * matchingRule [1] MatchingRuleId OPTIONAL, - * type [2] AttributeDescription OPTIONAL, - * matchValue [3] AssertionValue, - * dnAttributes [4] BOOLEAN DEFAULT FALSE } + * MatchingRuleAssertion ::= SEQUENCE { + * matchingRule [1] MatchingRuleId OPTIONAL, + * type [2] AttributeDescription OPTIONAL, + * matchValue [3] AssertionValue, + * dnAttributes [4] BOOLEAN DEFAULT FALSE } * - * Note: tags in a choice are always explicit + * Note: tags in a CHOICE are always explicit */ Debug( LDAP_DEBUG_TRACE, "put_filter: \"%s\"\n", str_in, 0, 0 ); @@ -586,7 +586,7 @@ put_simple_filter( break; case ':': - /* RFC2254 extensible filters are off the form: + /* RFC 4515 extensible filters are off the form: * type [:dn] [:rule] := value * or [:dn]:rule := value */ diff --git a/libraries/libldap/result.c b/libraries/libldap/result.c index 810348d2b9..9045dd32fd 100644 --- a/libraries/libldap/result.c +++ b/libraries/libldap/result.c @@ -37,17 +37,17 @@ * can be found in the file "build/LICENSE-2.0.1" in this distribution * of OpenLDAP Software. */ -/* Portions Copyright (C) The Internet Society (1997) - * ASN.1 fragments are from RFC 2251; see RFC for full legal notices. +/* Portions Copyright (C) The Internet Society (2006) + * ASN.1 fragments are from RFC 4511; see RFC for full legal notices. */ /* - * LDAPv3 (RFC2251) + * LDAPv3 (RFC 4511) * LDAPResult ::= SEQUENCE { - * resultCode ENUMERATED { ... }, - * matchedDN LDAPDN, - * errorMessage LDAPString, - * referral Referral OPTIONAL + * resultCode ENUMERATED { ... }, + * matchedDN LDAPDN, + * diagnosticMessage LDAPString, + * referral [3] Referral OPTIONAL * } * Referral ::= SEQUENCE OF LDAPURL (one or more) * LDAPURL ::= LDAPString (limited to URL chars) -- 2.39.5