- /* supportedExtensions must be maintained for the root DSE.
- * Unfortunately, this global var is declared extern char *[],
- * which means it cannot grow dynamically. So, for now it is
- * a char *[n], and only (n-1) oids are tracked. In the off
- * chance that this is too few, the extensions will still be
- * loaded, but not reported in root DSE info. To increase
- * the maximum, change MAX_SUPP_EXT_TRACKED and recompile or
- * fix root_dse.c to use something other than a static array.
- */
- if (supp_ext_count < (MAX_SUPP_EXT_TRACKED - 1)) {
- supportedExtensions[supp_ext_count++] = ch_strdup(ext->oid);
- supportedExtensions[supp_ext_count] = NULL;
+ return(0);
+}
+
+int
+extops_init (void)
+{
+ int i;
+
+ for (i = 0; builtin_extops[i].oid.bv_val != NULL; i++) {
+ load_extop(builtin_extops[i].oid.bv_val, builtin_extops[i].ext_main);