From: Kurt Zeilenga Date: Sat, 28 Oct 2006 04:47:58 +0000 (+0000) Subject: More ldapbis cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_3_MP~26 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dbaf7c5c2503b2770c9075e30a9a63b6ff577d6f;p=openldap More ldapbis cleanup --- diff --git a/libraries/libldap/getdn.c b/libraries/libldap/getdn.c index 6e584019bc..d7f5c54e9d 100644 --- a/libraries/libldap/getdn.c +++ b/libraries/libldap/getdn.c @@ -337,9 +337,8 @@ ldap_dn2ad_canonical( LDAP_CONST char *dn ) * from ( fin & LDAP_DN_FORMAT_MASK ) to ( fout & LDAP_DN_FORMAT_MASK ) * * fin can be one of: - * LDAP_DN_FORMAT_LDAP (RFC 4514 and ldapbis liberal, - * plus some RFC 1779) - * LDAP_DN_FORMAT_LDAPV3 (RFC 4514 and ldapbis) + * LDAP_DN_FORMAT_LDAP (RFC 4514 liberal, plus some RFC 1779) + * LDAP_DN_FORMAT_LDAPV3 (RFC 4514) * LDAP_DN_FORMAT_LDAPV2 (RFC 1779) * LDAP_DN_FORMAT_DCE (?) * @@ -433,14 +432,14 @@ ldap_dn_normalize( LDAP_CONST char *dnin, #define LDAP_DN_VALUE_END(c) \ ( LDAP_DN_RDN_SEP(c) || LDAP_DN_AVA_SEP(c) ) -/* NOTE: according to draft-ietf-ldapbis-dn, '=' can be escaped - * and treated as special, i.e. escaped both as "\" and - * as "\=", but it is treated as a regular char, i.e. it can also - * appear as '='. +/* NOTE: according to RFC 4514, '=' can be escaped and treated as special, + * i.e. escaped both as "\" and * as "\=", but it is treated as + * a regular char, i.e. it can also appear as '='. * - * As such, in 2.2 we used to allow reading unescaped '=', - * but we always produced escaped '\3D'; this changes - * since 2.3, if compatibility issues do not arise */ + * As such, in 2.2 we used to allow reading unescaped '=', but we always + * produced escaped '\3D'; this changes since 2.3, if compatibility issues + * do not arise + */ #define LDAP_DN_NE(c) \ ( LDAP_DN_RDN_SEP_V2(c) || LDAP_DN_AVA_SEP(c) \ || LDAP_DN_QUOTES(c) \ diff --git a/libraries/libldap/schema.c b/libraries/libldap/schema.c index 46271968e6..4b180bb9c8 100644 --- a/libraries/libldap/schema.c +++ b/libraries/libldap/schema.c @@ -1028,7 +1028,7 @@ get_token( const char ** sp, char ** token_val ) **sp != '$' && **sp != '\'' && /* for suggested minimum upper bound on the number - * of characters */ + * of characters (RFC 4517) */ **sp != '{' && **sp != '\0' ) (*sp)++; diff --git a/servers/slapd/back-ldap/chain.c b/servers/slapd/back-ldap/chain.c index b81de4fb87..673109444c 100644 --- a/servers/slapd/back-ldap/chain.c +++ b/servers/slapd/back-ldap/chain.c @@ -421,7 +421,7 @@ ldap_chain_op( /* We're setting the URI of the first referral; * what if there are more? -Document: draft-ietf-ldapbis-protocol-27.txt +Document: RFC 4511 4.1.10. Referral ... diff --git a/servers/slapd/filterentry.c b/servers/slapd/filterentry.c index f10ff2232d..5790b0a209 100644 --- a/servers/slapd/filterentry.c +++ b/servers/slapd/filterentry.c @@ -276,14 +276,14 @@ static int test_mra_filter( if ( normalize_attribute && mra->ma_rule->smr_normalize ) { /* - Document: draft-ietf-ldapbis-protocol + Document: RFC 4511 4.5.1. Search Request ... If the type field is present and the matchingRule is present, the matchValue is compared against entry attributes of the specified type. In this case, the matchingRule MUST be one - suitable for use with the specified type (see [Syntaxes]), + suitable for use with the specified type (see [RFC4517]), otherwise the filter item is Undefined. diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 152ea67614..9916253657 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -795,7 +795,7 @@ bitStringValidate( [X.520]. * - * draft-ietf-ldapbis-models-xx.txt [MODELS] says: + * RFC 4512 says: * 1.4. Common ABNF Productions @@ -813,11 +813,11 @@ bitStringValidate( * * 1.3.6.1.4.1.1466.0=#04024869,o=test,c=gb#'101'B * - * Since draft-ietf-ldapbis-dn-xx.txt clarifies that SHARP, - * i.e. "#", doesn't have to be escaped except when at the - * beginning of a value, the definition of Name and Optional - * UID appears to be flawed, because there is no clear means - * to determine whether the UID part is present or not. + * RFC 4514 clarifies that SHARP, i.e. "#", doesn't have to + * be escaped except when at the beginning of a value, the + * definition of Name and Optional UID appears to be flawed, + * because there is no clear means to determine whether the + * UID part is present or not. * * Example: * @@ -1263,7 +1263,7 @@ Summary: TelephoneNumber subset subset i + ignore all spaces and "-" - See draft-ietf-ldapbis-strpro for details (once published). + See RFC 4518 for details. Directory String -