From 2a5a4a95b5e87dcbe88f1f512597ffaaded59cba Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Thu, 14 Sep 2006 20:30:19 +0000 Subject: Bug(s) fixed: 206450 Bug Description: pass thru auth plugin should be configured by default Reviewed by: rcritten (Thanks!) Fix Description: If you do a core DS build, you don't have a config DS or a user DS, and therefore the pass thru auth plugin is not added to the server config. It should always be added, disabled if not used immediately. The fix is to add it in this case, disabled. Platforms tested: RHEL4 Flag Day: no Doc impact: no --- ldap/admin/src/create_instance.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'ldap/admin/src/create_instance.c') diff --git a/ldap/admin/src/create_instance.c b/ldap/admin/src/create_instance.c index 4f718ae3..e3823f8c 100644 --- a/ldap/admin/src/create_instance.c +++ b/ldap/admin/src/create_instance.c @@ -3751,6 +3751,18 @@ char *ds_gen_confs(char *sroot, server_config_s *cf, free(suffix); ldap_free_urldesc(desc); } + } else { /* just add the config, disabled */ + fprintf(f, "dn: cn=Pass Through Authentication,cn=plugins,cn=config\n"); + fprintf(f, "objectclass: top\n"); + fprintf(f, "objectclass: nsSlapdPlugin\n"); + fprintf(f, "objectclass: extensibleObject\n"); + fprintf(f, "cn: Pass Through Authentication\n"); + fprintf(f, "nsslapd-pluginpath: %s/lib/passthru-plugin%s\n", sroot, shared_lib); + fprintf(f, "nsslapd-plugininitfunc: passthruauth_init\n"); + fprintf(f, "nsslapd-plugintype: preoperation\n"); + fprintf(f, "nsslapd-pluginenabled: off\n"); + fprintf(f, "nsslapd-plugin-depends-on-type: database\n"); + fprintf(f, "\n"); } #ifdef BUILD_PAM_PASSTHRU -- cgit