1 /* overlays.c - Static overlay framework */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 2003-2004 The OpenLDAP Foundation.
6 * Copyright 2003 by Howard Chu.
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted only as authorized by the OpenLDAP
13 * A copy of this license is available in the file LICENSE in the
14 * top-level directory of the distribution or, alternatively, at
15 * <http://www.OpenLDAP.org/license.html>.
18 * This work was initially developed by Howard Chu for inclusion in
27 #if SLAPD_OVER_DYNGROUP == SLAPD_MOD_STATIC
28 extern int dyngroup_init();
30 #if SLAPD_OVER_PROXYCACHE == SLAPD_MOD_STATIC
31 extern int pcache_init();
33 #if SLAPD_OVER_RWM == SLAPD_MOD_STATIC
34 extern int rwm_init();
41 #if SLAPD_OVER_DYNGROUP == SLAPD_MOD_STATIC
42 { "Dynamic Group", dyngroup_init },
44 #if SLAPD_OVER_PROXYCACHE == SLAPD_MOD_STATIC
45 { "Proxy Cache", pcache_init },
47 #if SLAPD_OVER_RWM == SLAPD_MOD_STATIC
48 { "Rewrite/Remap", rwm_init },
58 for ( i=0; funcs[i].name; i++ ) {
62 LDAP_LOG( BACKEND, ERR,
63 "%s overlay setup failed, err %d\n", funcs[i].name, rc, 0 );
65 Debug( LDAP_DEBUG_ANY,
66 "%s overlay setup failed, err %d\n", funcs[i].name, rc, 0 );