From 3c704f4d14395c7d29a637a8264cdf922e41993d Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 7 Apr 2003 19:47:31 +0000 Subject: [PATCH] Fix returncode checks --- servers/slapd/back-ldap/map.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; } -- 2.39.5