mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-21 22:34:08 -05:00
removing global overlays should work now as well
This commit is contained in:
parent
fa4aa9845f
commit
d4757e170b
1 changed files with 1 additions and 8 deletions
|
|
@ -6187,14 +6187,7 @@ config_back_delete( Operation *op, SlapReply *rs )
|
|||
ldap_pvt_thread_pool_pause( &connection_pool );
|
||||
|
||||
if ( ce->ce_type == Cft_Overlay ){
|
||||
if ( SLAP_ISGLOBALOVERLAY(ce->ce_be ) ) {
|
||||
rs->sr_err = LDAP_UNWILLING_TO_PERFORM;
|
||||
rs->sr_text = "Cannot delete global overlays";
|
||||
ldap_pvt_thread_pool_resume( &connection_pool );
|
||||
goto out;
|
||||
} else {
|
||||
overlay_remove( ce->ce_be, (slap_overinst *)ce->ce_bi, op );
|
||||
}
|
||||
overlay_remove( ce->ce_be, (slap_overinst *)ce->ce_bi, op );
|
||||
} else { /* Cft_Database*/
|
||||
if ( ce->ce_be == frontendDB || ce->ce_be == op->o_bd ){
|
||||
rs->sr_err = LDAP_UNWILLING_TO_PERFORM;
|
||||
|
|
|
|||
Loading…
Reference in a new issue