From: Pierangelo Masarati Date: Wed, 17 Jan 2007 21:52:13 +0000 (+0000) Subject: test mapped error code (ITS#4808) X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~174 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b604ef8d52568d19c4914c577670bb7155420661;p=openldap test mapped error code (ITS#4808) --- diff --git a/servers/slapd/back-ldap/delete.c b/servers/slapd/back-ldap/delete.c index fa6ff873ac..4f1e67ddf8 100644 --- a/servers/slapd/back-ldap/delete.c +++ b/servers/slapd/back-ldap/delete.c @@ -63,7 +63,7 @@ retry: rc = ldap_back_op_result( lc, op, rs, msgid, li->li_timeout[ SLAP_OP_DELETE ], ( LDAP_BACK_SENDRESULT | retrying ) ); - if ( rs->sr_err == LDAP_SERVER_DOWN && retrying ) { + if ( rs->sr_err == LDAP_UNAVAILABLE && retrying ) { retrying &= ~LDAP_BACK_RETRYING; if ( ldap_back_retry( &lc, op, rs, LDAP_BACK_SENDERR ) ) { /* if the identity changed, there might be need to re-authz */ diff --git a/servers/slapd/back-ldap/modrdn.c b/servers/slapd/back-ldap/modrdn.c index a578dd19ab..8fa02ef6e2 100644 --- a/servers/slapd/back-ldap/modrdn.c +++ b/servers/slapd/back-ldap/modrdn.c @@ -88,7 +88,7 @@ retry: rc = ldap_back_op_result( lc, op, rs, msgid, li->li_timeout[ SLAP_OP_MODRDN ], ( LDAP_BACK_SENDRESULT | retrying ) ); - if ( rs->sr_err == LDAP_SERVER_DOWN && retrying ) { + if ( rs->sr_err == LDAP_UNAVAILABLE && retrying ) { retrying &= ~LDAP_BACK_RETRYING; if ( ldap_back_retry( &lc, op, rs, LDAP_BACK_SENDERR ) ) { /* if the identity changed, there might be need to re-authz */