[Date Prev][Date Next] [Chronological] [Thread] [Top]

Critical extension missing in shell backend (ITS#1400)



Full_Name: Michael Haardt
Version: OpenLDAP 2.0.18 Engineering
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (194.97.7.6)


I need the appended patch in order to use a slapd with shell backend as replica
server,
otherwise slurpd reports: Critical extension unavailable (spelling it Criticial,
btw).

servers/slapd/back-shell/init.c:

--- init.c.orig Mon Oct 22 12:29:38 2001
+++ init.c      Mon Oct 22 12:30:16 2001
@@ -34,6 +34,12 @@
     BackendInfo        *bi
 )
 {
+        static char *controls[] = {
+                LDAP_CONTROL_MANAGEDSAIT,
+                NULL
+        };
+
+        bi->bi_controls = controls;
        bi->bi_open = 0;
        bi->bi_config = 0;
        bi->bi_close = 0;