From aa16988d3c823dbe6f7f67200c2a9b45d4106e8b Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 25 Jun 2005 15:05:02 +0000 Subject: [PATCH] don't try to lookup the rootdn; handle errors separately --- servers/slapd/overlays/retcode.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/servers/slapd/overlays/retcode.c b/servers/slapd/overlays/retcode.c index 105be67bce..5c2320ee59 100644 --- a/servers/slapd/overlays/retcode.c +++ b/servers/slapd/overlays/retcode.c @@ -183,9 +183,10 @@ retcode_cb_response( Operation *op, SlapReply *rs ) if ( rs->sr_err == LDAP_SUCCESS ) { rdc->rdc_flags = SLAP_CB_CONTINUE; + return 0; } - return 0; + return SLAP_CB_CONTINUE; } static int @@ -252,8 +253,13 @@ retcode_op_func( Operation *op, SlapReply *rs ) case LDAP_REQ_ADD: return retcode_op_add( op, rs ); - case LDAP_REQ_MODIFY: case LDAP_REQ_BIND: + if ( be_isroot_pw( op ) ) { + return SLAP_CB_CONTINUE; + } + /* fallthru */ + + case LDAP_REQ_MODIFY: case LDAP_REQ_DELETE: case LDAP_REQ_MODRDN: case LDAP_REQ_COMPARE: -- 2.39.5