mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
call frontend's be_unbind, if any, to honor hooks registered by global overlays (ITS#3649)
This commit is contained in:
parent
b0627689e8
commit
e17ec4eb52
@ -47,8 +47,15 @@ do_unbind( Operation *op, SlapReply *rs )
|
||||
Statslog( LDAP_DEBUG_STATS, "%s UNBIND\n", op->o_log_prefix,
|
||||
0, 0, 0, 0 );
|
||||
|
||||
if ( frontendDB->be_unbind ) {
|
||||
op->o_bd = frontendDB;
|
||||
(void)frontendDB->be_unbind( op, rs );
|
||||
op->o_bd = NULL;
|
||||
}
|
||||
|
||||
/* pass the unbind to all backends */
|
||||
backend_unbind( op, rs );
|
||||
(void)backend_unbind( op, rs );
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user