]> git.sur5r.net Git - openldap/commitdiff
Fix returncode checks
authorHoward Chu <hyc@openldap.org>
Mon, 7 Apr 2003 19:47:31 +0000 (19:47 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 7 Apr 2003 19:47:31 +0000 (19:47 +0000)
servers/slapd/back-ldap/map.c

index 007ed1b985146e0550bc542ad8dccc2d0bcb9b2c..094ac9b846b09d89f10e5494965ff269af6bd9f8 100644 (file)
@@ -192,19 +192,21 @@ map_attr_value(
        {
                dncookie fdc = *dc;
 
+#ifdef ENABLE_REWRITE
                fdc.ctx = "searchFilter";
+#endif
 
                switch ( ldap_back_dn_massage( &fdc, value, &vtmp ) ) {
-               case REWRITE_REGEXEC_OK:
+               case LDAP_SUCCESS:
                        if ( vtmp.bv_val != value->bv_val ) {
                                freeval = 1;
                        }
                        break;
                
-               case REWRITE_REGEXEC_UNWILLING:
+               case LDAP_UNWILLING_TO_PERFORM:
                        return -1;
 
-               case REWRITE_REGEXEC_ERR:
+               case LDAP_OTHER:
                        return -1;
                }