From 996be22a8c966521eb8e277a95051be317de247f Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Mon, 10 Nov 2008 19:10:08 +0000 Subject: [PATCH] ITS#5705 --- servers/slapd/overlays/constraint.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/servers/slapd/overlays/constraint.c b/servers/slapd/overlays/constraint.c index 6a7506677c..c514da31a7 100644 --- a/servers/slapd/overlays/constraint.c +++ b/servers/slapd/overlays/constraint.c @@ -757,6 +757,10 @@ constraint_add( Operation *op, SlapReply *rs ) int rc; char *msg = NULL; + if (get_relax(op)) { + return SLAP_CB_CONTINUE; + } + if ((a = op->ora_e->e_attrs) == NULL) { op->o_bd->bd_info = (BackendInfo *)(on->on_info); send_ldap_error(op, rs, LDAP_INVALID_SYNTAX, @@ -833,6 +837,10 @@ constraint_update( Operation *op, SlapReply *rs ) int rc; char *msg = NULL; + if (get_relax(op)) { + return SLAP_CB_CONTINUE; + } + switch ( op->o_tag ) { case LDAP_REQ_MODIFY: modlist = op->orm_modlist; @@ -846,7 +854,6 @@ constraint_update( Operation *op, SlapReply *rs ) /* impossible! assert? */ return LDAP_OTHER; } - Debug( LDAP_DEBUG_CONFIG|LDAP_DEBUG_NONE, "constraint_update()\n", 0,0,0); if ((m = modlist) == NULL) { -- 2.39.5