entry->e_ocflags = 0;
}
/* check that the entry still obeys the schema */
- rc = entry_schema_check( op, entry, NULL, 0, 0, NULL,
+ rc = entry_schema_check( op, entry, 0, 0, NULL,
&rs->sr_text, textbuf, SLAP_TEXT_BUFLEN );
}
Debug( LDAP_DEBUG_TRACE, "ldif_back_add: \"%s\"\n", e->e_dn );
- rc = entry_schema_check( op, e, NULL, 0, 1, NULL,
+ rc = entry_schema_check( op, e, 0, 1, NULL,
&rs->sr_text, textbuf, sizeof( textbuf ) );
if ( rc != LDAP_SUCCESS )
goto send_res;
ctrls[num_ctrls] = 0;
/* check entry's schema */
- rs->sr_err = entry_schema_check( op, op->ora_e, NULL,
+ rs->sr_err = entry_schema_check( op, op->ora_e,
get_relax(op), 1, NULL, &rs->sr_text, textbuf, textlen );
if ( rs->sr_err != LDAP_SUCCESS ) {
Debug( LDAP_DEBUG_TRACE,
/* check that the entry still obeys the schema */
ap = NULL;
- rc = entry_schema_check( op, e, save_attrs, get_relax(op), 0, &ap,
+ rc = entry_schema_check( op, e, get_relax(op), 0, &ap,
text, textbuf, textlen );
if ( rc != LDAP_SUCCESS || op->o_noop ) {
attrs_free( e->e_attrs );
}
/* check that the entry still obeys the schema */
- rc = entry_schema_check( op, e, save_attrs, 0, 0, NULL,
+ rc = entry_schema_check( op, e, 0, 0, NULL,
&text, textbuf, sizeof( textbuf ) );
if ( rc != LDAP_SUCCESS ) {
rs->sr_err = rc;
if ( BACKSQL_CHECK_SCHEMA( bi ) ) {
char textbuf[ SLAP_TEXT_BUFLEN ] = { '\0' };
- rs->sr_err = entry_schema_check( op, op->ora_e, NULL, 0, 1, NULL,
+ rs->sr_err = entry_schema_check( op, op->ora_e, 0, 1, NULL,
&rs->sr_text, textbuf, sizeof( textbuf ) );
if ( rs->sr_err != LDAP_SUCCESS ) {
Debug( LDAP_DEBUG_TRACE, " backsql_add(\"%s\"): "
goto do_transact;
}
- rs->sr_err = entry_schema_check( op, &m, NULL, 0, 0, NULL,
+ rs->sr_err = entry_schema_check( op, &m, 0, 0, NULL,
&rs->sr_text, textbuf, sizeof( textbuf ) );
if ( rs->sr_err != LDAP_SUCCESS ) {
Debug( LDAP_DEBUG_TRACE, " backsql_modify(\"%s\"): "
e_id = bsi.bsi_base_id;
- rs->sr_err = entry_schema_check( op, &r, NULL, 0, 0, NULL,
+ rs->sr_err = entry_schema_check( op, &r, 0, 0, NULL,
&rs->sr_text, textbuf, sizeof( textbuf ) );
if ( rs->sr_err != LDAP_SUCCESS ) {
Debug( LDAP_DEBUG_TRACE, " backsql_modrdn(\"%s\"): "
/* check entry's schema */
rs->sr_err = entry_schema_check(
- op, op->ora_e, NULL,
+ op, op->ora_e,
get_relax(op), 1, NULL, &rs->sr_text, textbuf, textlen );
if ( rs->sr_err != LDAP_SUCCESS ) {
Debug( LDAP_DEBUG_TRACE,
/* check that the entry still obeys the schema */
ap = NULL;
- rc = entry_schema_check( op, e, save_attrs, get_relax(op), 0, &ap,
+ rc = entry_schema_check( op, e, get_relax(op), 0, &ap,
text, textbuf, textlen );
if ( rc != LDAP_SUCCESS || op->o_noop ) {
attrs_free( e->e_attrs );
{
char textbuf[SLAP_TEXT_BUFLEN];
size_t textlen = sizeof textbuf;
- rs->sr_err = entry_schema_check(op, op->ora_e, NULL, 0, 1, NULL,
+ rs->sr_err = entry_schema_check(op, op->ora_e, 0, 1, NULL,
&rs->sr_text, textbuf, sizeof( textbuf ) );
if ( rs->sr_err != LDAP_SUCCESS )
goto out;
if ( rc == LDAP_SUCCESS) {
/* check that the entry still obeys the schema */
- rc = entry_schema_check(op, e, NULL, 0, 0, NULL,
+ rc = entry_schema_check(op, e, 0, 0, NULL,
&rs->sr_text, ca->cr_msg, sizeof(ca->cr_msg) );
}
if ( rc ) goto out_noop;
LDAP_SLAPD_F( int ) entry_schema_check(
Operation *op,
Entry *e,
- Attribute *attrs,
int manage,
int add,
Attribute **socp,
entry_schema_check(
Operation *op,
Entry *e,
- Attribute *oldattrs,
int manage,
int add,
Attribute **socp,
op->o_bd = be;
if ( (slapMode & SLAP_TOOL_NO_SCHEMA_CHECK) == 0) {
- int rc = entry_schema_check( op, e, NULL, manage, 1, NULL,
+ int rc = entry_schema_check( op, e, manage, 1, NULL,
text, textbuf, textlen );
if( rc != LDAP_SUCCESS ) {
pb->pb_op->o_bd = select_backend( &e->e_nname, 0 );
if ( pb->pb_op->o_bd != NULL ) {
- rc = entry_schema_check( pb->pb_op, e, NULL, 0, 0, NULL,
+ rc = entry_schema_check( pb->pb_op, e, 0, 0, NULL,
&text, textbuf, textlen );
}
pb->pb_op->o_bd = be_orig;
printf( "# id=%08lx\n", (long) id );
}
- rc = entry_schema_check( op, e, NULL, 0, 0, NULL,
+ rc = entry_schema_check( op, e, 0, 0, NULL,
&text, textbuf, textlen );
if ( rc != LDAP_SUCCESS ) {
fprintf( ldiffp->fp, "# (%d) %s%s%s\n",