1 /* overlays.c - Static overlay framework */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 2003-2005 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
26 #if SLAPD_OVER_DENYOP == SLAPD_MOD_STATIC
27 extern int denyop_init();
29 #if SLAPD_OVER_DYNGROUP == SLAPD_MOD_STATIC
30 extern int dyngroup_init();
32 #if SLAPD_OVER_DYNLIST == SLAPD_MOD_STATIC
33 extern int dynlist_init();
35 #if SLAPD_OVER_GLUE == SLAPD_MOD_STATIC
36 extern int glue_init();
38 #if SLAPD_OVER_LASTMOD == SLAPD_MOD_STATIC
39 extern int lastmod_init();
41 #if SLAPD_OVER_PPOLICY == SLAPD_MOD_STATIC
42 extern int ppolicy_init();
44 #if SLAPD_OVER_PROXYCACHE == SLAPD_MOD_STATIC
45 extern int pcache_init();
47 #if SLAPD_OVER_REFINT == SLAPD_MOD_STATIC
48 extern int refint_init();
50 #if SLAPD_OVER_RETCODE == SLAPD_MOD_STATIC
51 extern int retcode_init();
53 #if SLAPD_OVER_RWM == SLAPD_MOD_STATIC
54 extern int rwm_init();
56 #if SLAPD_OVER_SYNCPROV == SLAPD_MOD_STATIC
57 extern int syncprov_init();
59 #if SLAPD_OVER_TRANSLUCENT == SLAPD_MOD_STATIC
60 extern int translucent_init();
62 #if SLAPD_OVER_UNIQUE == SLAPD_MOD_STATIC
63 extern int unique_init();
70 #if SLAPD_OVER_DENYOP == SLAPD_MOD_STATIC
71 { "Deny Operation", denyop_init },
73 #if SLAPD_OVER_DYNGROUP == SLAPD_MOD_STATIC
74 { "Dynamic Group", dyngroup_init },
76 #if SLAPD_OVER_DYNLIST == SLAPD_MOD_STATIC
77 { "Dynamic List", dynlist_init },
79 #if SLAPD_OVER_GLUE == SLAPD_MOD_STATIC
80 { "Backend Glue", glue_init },
82 #if SLAPD_OVER_LASTMOD == SLAPD_MOD_STATIC
83 { "Last Modification", lastmod_init },
85 #if SLAPD_OVER_PPOLICY == SLAPD_MOD_STATIC
86 { "Password Policy", ppolicy_init },
88 #if SLAPD_OVER_PROXYCACHE == SLAPD_MOD_STATIC
89 { "Proxy Cache", pcache_init },
91 #if SLAPD_OVER_REFINT == SLAPD_MOD_STATIC
92 { "Referential Integrity", refint_init },
94 #if SLAPD_OVER_RETCODE == SLAPD_MOD_STATIC
95 { "Return Code", retcode_init },
97 #if SLAPD_OVER_RWM == SLAPD_MOD_STATIC
98 { "Rewrite/Remap", rwm_init },
100 #if SLAPD_OVER_SYNCPROV == SLAPD_MOD_STATIC
101 { "Syncrepl Provider", syncprov_init },
103 #if SLAPD_OVER_TRANSLUCENT == SLAPD_MOD_STATIC
104 { "Translucent Proxy", translucent_init },
106 #if SLAPD_OVER_UNIQUE == SLAPD_MOD_STATIC
107 { "Attribute Uniqueness", unique_init },
117 for ( i=0; funcs[i].name; i++ ) {
118 rc = funcs[i].func();
120 Debug( LDAP_DEBUG_ANY,
121 "%s overlay setup failed, err %d\n", funcs[i].name, rc, 0 );