From: Howard Chu Date: Mon, 7 Apr 2003 19:47:31 +0000 (+0000) Subject: Fix returncode checks X-Git-Tag: AUTOCONF_2_57~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3c704f4d14395c7d29a637a8264cdf922e41993d;p=openldap Fix returncode checks --- diff --git a/servers/slapd/back-ldap/map.c b/servers/slapd/back-ldap/map.c index 007ed1b985..094ac9b846 100644 --- a/servers/slapd/back-ldap/map.c +++ b/servers/slapd/back-ldap/map.c @@ -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; }