struct berval *hash = NULL;
DB_TXN *ltid = NULL;
struct bdb_op_info opinfo;
+ char textbuf[SLAP_TEXT_BUFLEN];
+ size_t textlen = sizeof textbuf;
struct berval *id = NULL;
struct berval *new = NULL;
if( e == NULL ) {
*text = "could not locate authorization entry";
- rc = LDAP_OPERATIONS_ERROR;
+ rc = LDAP_NO_SUCH_OBJECT;
goto done;
}
ml.sml_next = NULL;
rc = bdb_modify_internal( be, conn, op, ltid,
- &ml, e, text );
+ &ml, e, text, textbuf, textlen );
switch(rc) {
case DB_LOCK_DEADLOCK:
case DB_LOCK_NOTGRANTED:
+ *text = NULL;
bdb_entry_return( be, e );
e = NULL;
goto retry;