]> git.sur5r.net Git - openldap/commitdiff
Misc CLIENT_UPDATE cleanups
authorKurt Zeilenga <kurt@openldap.org>
Sun, 15 Sep 2002 22:22:51 +0000 (22:22 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 15 Sep 2002 22:22:51 +0000 (22:22 +0000)
servers/slapd/controls.c
servers/slapd/result.c
servers/slapd/schema_init.c
servers/slapd/schema_prep.c

index 7489fb66a457540f162b7640b574ca61c9bf2f33..7c26ff1c38fb4876cf072298de6dfbda2dcc92e7 100644 (file)
@@ -703,15 +703,15 @@ static int parseClientUpdate (
 
        /* TODO : Cookie Scheme Validation */
 #if 0
-       if ( lcup_cookie_validate(scheme, cookie) != LDAP_SUCCESS ) {
-               *text = "Invalid LCUP cookie";
-               return LCUP_INVALID_COOKIE;
-       }
-
        if ( lcup_cookie_scheme_validate(scheme) != LDAP_SUCCESS ) {
                *text = "Unsupported LCUP cookie scheme";
                return LCUP_UNSUPPORTED_SCHEME;
        }
+
+       if ( lcup_cookie_validate(scheme, cookie) != LDAP_SUCCESS ) {
+               *text = "Invalid LCUP cookie";
+               return LCUP_INVALID_COOKIE;
+       }
 #endif
 
        ber_dupbv( &op->o_clientupdate_state, &cookie );
index 425db124c59807174b2ba1dbcc98e89a9efe8b41..65ef7ae29019efed38f0beb0562409c6464f4e70 100644 (file)
@@ -224,10 +224,6 @@ send_ldap_response(
                return;
        }
                
-#ifndef LDAP_CLIENT_UPDATE
-       assert( ctrls == NULL ); /* ctrls not implemented */
-#endif /* LDAP_CLIENT_UPDATE */
-
        ber_init_w_nullc( ber, LBER_USE_DER );
 
 #ifdef NEW_LOGGING
index af322982a376b6580790b7d67600706937d1b6db..5409bc1e002969ca07af2155b6e96591380517d1 100644 (file)
 #define caseIgnoreOrderingMatch                        caseIgnoreMatch
 #define caseExactOrderingMatch                 caseExactMatch
 #define integerOrderingMatch                   integerMatch
-
-#ifdef LDAP_CLIENT_UPDATE
 #define        octetStringOrderingMatch                octetStringMatch
-#endif /* LDAP_CLIENT_UPDATE */
 
 /* unimplemented matching routines */
 #define caseIgnoreListMatch                            NULL
@@ -4462,7 +4459,6 @@ char *objectIdentifierFirstComponentMatchSyntaxes[] = {
  * Other matching rules in X.520 that we do not use (yet):
  *
  * 2.5.13.9            numericStringOrderingMatch
- * 2.5.13.18   octetStringOrderingMatch
  * 2.5.13.19   octetStringSubstringsMatch
  * 2.5.13.25   uTCTimeMatch
  * 2.5.13.26   uTCTimeOrderingMatch
@@ -4635,14 +4631,12 @@ static slap_mrule_defs_rec mrule_defs[] = {
                octetStringMatch, octetStringIndexer, octetStringFilter,
                NULL},
 
-#ifdef LDAP_CLIENT_UPDATE
        {"( 2.5.13.18 NAME 'octetStringOrderingMatch' "
                "SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 )",
                SLAP_MR_ORDERING, NULL,
                NULL, NULL,
                octetStringOrderingMatch, NULL, NULL,
                NULL},
-#endif /* LDAP_CLIENT_UPDATE */
 
        {"( 2.5.13.20 NAME 'telephoneNumberMatch' "
                "SYNTAX 1.3.6.1.4.1.1466.115.121.1.50 )",
index b9bf64226eb6ad594e3cd3f703dd6487fe42839e..ed5b819b574a475599866408b66741d4c1f6d4f4 100644 (file)
@@ -450,9 +450,7 @@ static struct slap_schema_ad_map {
        { "entryCSN", "( 1.3.6.1.4.1.4203.666.1.7 NAME 'entryCSN' "
                        "DESC 'LCUP/LDUP: change sequence number' "
                        "EQUALITY octetStringMatch "
-#ifdef LDAP_CLIENT_UPDATE
                        "ORDERING octetStringOrderingMatch "
-#endif /* LDAP_CLIENT_UPDATE */
                        "SYNTAX 1.3.6.1.4.1.1466.115.121.1.40{64} "
                        "SINGLE-VALUE NO-USER-MODIFICATION USAGE directoryOperation )",
                NULL, SLAP_AT_HIDE,