Browse Source

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

Rich Megginson 19 years ago
parent
commit
2a5a4a95b5
1 changed files with 12 additions and 0 deletions
  1. 12 0
      ldap/admin/src/create_instance.c

+ 12 - 0
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