X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Ffrontend.c;h=a7796565bfd3ae623ff290215508c7c13eaa8d06;hb=d168b49464df8a034e244c6610721155aa6b42ba;hp=f9cfe6f466137c0110dc178e324dc7c27704b8ae;hpb=a6f8cd07f616f192284172ee372d6d14fac78d8b;p=openldap diff --git a/servers/slapd/frontend.c b/servers/slapd/frontend.c index f9cfe6f466..a7796565bf 100644 --- a/servers/slapd/frontend.c +++ b/servers/slapd/frontend.c @@ -1,7 +1,7 @@ /* frontend.c - routines for dealing with frontend */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2005 The OpenLDAP Foundation. + * Copyright 1998-2006 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -38,10 +38,6 @@ #include "ldap_rq.h" -#ifdef LDAP_SLAPI -#include "slapi/slapi.h" -#endif - static BackendInfo slap_frontendInfo; static BackendDB slap_frontendDB; BackendDB *frontendDB; @@ -82,6 +78,8 @@ frontend_init( void ) /* info */ frontendDB->bd_info = &slap_frontendInfo; + SLAP_BFLAGS(frontendDB) |= SLAP_BFLAG_FRONTEND; + /* name */ frontendDB->bd_info->bi_type = "frontend"; @@ -116,6 +114,16 @@ frontend_init( void ) frontendDB->bd_info->bi_op_modrdn = fe_op_modrdn; frontendDB->bd_info->bi_op_search = fe_op_search; frontendDB->bd_info->bi_extended = fe_extended; + frontendDB->bd_info->bi_operational = fe_aux_operational; +#if 0 + frontendDB->bd_info->bi_entry_get_rw = fe_entry_get_rw; + frontendDB->bd_info->bi_entry_release_rw = fe_entry_release_rw; +#endif +#ifdef SLAP_OVERLAY_ACCESS + frontendDB->bd_info->bi_access_allowed = fe_access_allowed; + frontendDB->bd_info->bi_acl_group = fe_acl_group; + frontendDB->bd_info->bi_acl_attribute = fe_acl_attribute; +#endif /* SLAP_OVERLAY_ACCESS */ #if 0 /* FIXME: is this too early? */