diff options
Diffstat (limited to 'rwm.c')
-rw-r--r-- | rwm.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -1911,6 +1911,16 @@ static ConfigTable rwmcfg[] = { { NULL, NULL, 0, 0, 0, ARG_IGNORED } }; +static int +rwm_ldadd( CfEntryInfo *p, Entry *e, struct config_args_s *ca ) +{ + if ( p->ce_type != Cft_Database && p->ce_type != Cft_Misc ) { + return LDAP_CONSTRAINT_VIOLATION; + } + + return LDAP_SUCCESS; +} + static ConfigOCs rwmocs[] = { { "( OLcfgOvOc:16.1 " "NAME 'olcRwmConfig' " @@ -1922,7 +1932,7 @@ static ConfigOCs rwmocs[] = { "olcRwmMap $ " "olcRwmNormalizeMapped " ") )", - Cft_Overlay, rwmcfg, NULL, NULL }, + Cft_Overlay, rwmcfg, rwm_ldadd, NULL }, { NULL, 0, NULL } }; |