]> git.sur5r.net Git - openldap/commitdiff
call frontend's be_unbind, if any, to honor hooks registered by global overlays ...
authorPierangelo Masarati <ando@openldap.org>
Mon, 11 Apr 2005 19:12:30 +0000 (19:12 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 11 Apr 2005 19:12:30 +0000 (19:12 +0000)
servers/slapd/unbind.c

index 4dec901ce9a2c4a0974a5c71f8ddfd84ed4c09a1..0a9d4e4fd4d282b46147c2bdb4394342e1a176fe 100644 (file)
@@ -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;
 }
+