fprintf( stderr, "authzID: <%s> check failed %d (%s)\n",
authzID.bv_val, rc,
ldap_err2string( rc ) );
- rc = 1;
+ rc = -1;
BER_BVZERO( &authzID );
- goto destroy;
+ if ( !continuemode ) {
+ goto destroy;
+ }
}
authzID = authzdn;
op.o_tmpfree( authzID.bv_val, op.o_tmpmemctx );
BER_BVZERO( &authzID );
- if ( rc ) {
+ if ( rc && !continuemode ) {
goto destroy;
}
}
rc = do_check( &conn, &op, &id );
- if ( rc ) {
+ if ( rc && !continuemode ) {
goto destroy;
}
}