]> git.sur5r.net Git - openldap/commitdiff
ITS#4404: fix typo in ValuesReturnFilter control OID, add
authorKurt Zeilenga <kurt@openldap.org>
Wed, 15 Feb 2006 21:30:35 +0000 (21:30 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 15 Feb 2006 21:30:35 +0000 (21:30 +0000)
temporary server-side support for old OID.

include/ldap.h
servers/slapd/controls.c

index 5c7e0b121a7f74ec217bc615748a12a0c8564249..55e9af68fd2b63d575b69ee5a6126525180f4703 100644 (file)
@@ -208,7 +208,9 @@ typedef struct ldapcontrol {
 #define LDAP_CONTROL_PROXY_AUTHZ       "2.16.840.1.113730.3.4.18" /* RFC 4370 */
 #define LDAP_CONTROL_SUBENTRIES                "1.3.6.1.4.1.4203.1.10.1"  /* RFC 3672 */
 
-#define LDAP_CONTROL_VALUESRETURNFILTER        "1.2.826.0.1.334810.2.3"/* RFC 3876 */
+#define LDAP_CONTROL_VALUESRETURNFILTER "1.2.826.0.1.3344810.2.3"/* RFC 3876 */
+#define LDAP_CONTROL_X_VALUESRETURNFILTER "1.2.826.0.1.334810.2.3"/* bad OID */
+
 #define LDAP_CONTROL_ASSERT                            "1.3.6.1.1.12"                  /* RFC TBD */
 #define LDAP_CONTROL_PRE_READ                  "1.3.6.1.1.13.1"                /* RFC TBD */
 #define LDAP_CONTROL_POST_READ                 "1.3.6.1.1.13.2"                /* RFC TBD */
index 33d71d1f01471c177f83b5b6c49784a0b7b260df..050f0ac7e14aa0ebda16ae63e23ae58d1f8ed143 100644 (file)
@@ -128,6 +128,13 @@ static struct slap_control control_defs[] = {
                SLAP_CTRL_GLOBAL|SLAP_CTRL_SEARCH,
                NULL, NULL,
                parseValuesReturnFilter, LDAP_SLIST_ENTRY_INITIALIZER(next) },
+#ifdef LDAP_CONTROL_X_VALUESRETURNFILTER
+       { LDAP_CONTROL_X_VALUESRETURNFILTER /* bad OID */,
+               (int)offsetof(struct slap_control_ids, sc_valuesReturnFilter),
+               SLAP_CTRL_GLOBAL|SLAP_CTRL_SEARCH|SLAP_CTRL_HIDE,
+               NULL, NULL,
+               parseValuesReturnFilter, LDAP_SLIST_ENTRY_INITIALIZER(next) },
+#endif
        { LDAP_CONTROL_PAGEDRESULTS,
                (int)offsetof(struct slap_control_ids, sc_pagedResults),
                SLAP_CTRL_SEARCH,