]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-dnssrv/init.c
ITS#2884 silence warning. We don't dereference this pointer, we just use
[openldap] / servers / slapd / back-dnssrv / init.c
index d2c44b4d3054ca9f6746d211913b98da36ec789b..d84c9176d518e46978b56dce1275c7634986de2a 100644 (file)
@@ -1,8 +1,22 @@
 /* init.c - initialize ldap backend */
 /* $OpenLDAP$ */
-/*
- * Copyright 2000 The OpenLDAP Foundation, All Rights Reserved.
- * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
+ *
+ * Copyright 2000-2003 The OpenLDAP Foundation.
+ * Portions Copyright 2000-2003 Kurt D. Zeilenga.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.
+ *
+ * A copy of this license is available in the file LICENSE in the
+ * top-level directory of the distribution or, alternatively, at
+ * <http://www.OpenLDAP.org/license.html>.
+ */
+/* ACKNOWLEDGEMENTS:
+ * This work was originally developed by Kurt D. Zeilenga for inclusion
+ * in OpenLDAP Software.
  */
 
 #include "portable.h"
@@ -16,7 +30,7 @@
 
 #ifdef SLAPD_DNSSRV_DYNAMIC
 
-int back_dnssrv_LTX_init_module(int argc, char *argv[])
+int init_module(int argc, char *argv[])
 {
     BackendInfo bi;
 
@@ -36,6 +50,7 @@ dnssrv_back_initialize(
 {
        static char *controls[] = {
                LDAP_CONTROL_MANAGEDSAIT,
+               LDAP_CONTROL_VALUESRETURNFILTER,
                NULL
        };
 
@@ -65,13 +80,6 @@ dnssrv_back_initialize(
        bi->bi_op_unbind = 0;
 
        bi->bi_extended = 0;
-       bi->bi_acl_group = 0;
-
-#ifdef HAVE_CYRUS_SASL
-       bi->bi_sasl_authorize = 0;
-       bi->bi_sasl_getsecret = 0;
-       bi->bi_sasl_putsecret = 0;
-#endif /* HAVE_CYRUS_SASL */
 
        bi->bi_connection_init = 0;
        bi->bi_connection_destroy = 0;