From 72e586ba361011067208dc8e8f5a619a3f0a8ea4 Mon Sep 17 00:00:00 2001
From: Pierangelo Masarati <ando@openldap.org>
Date: Mon, 13 Nov 2006 23:51:52 +0000
Subject: [PATCH] revert previous commit; disable RESTART from ldap.conf

---
 doc/man/man5/ldap.conf.5 | 7 ++++---
 libraries/libldap/init.c | 3 +++
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/doc/man/man5/ldap.conf.5 b/doc/man/man5/ldap.conf.5
index 1b89325a80..33bd1b9b54 100644
--- a/doc/man/man5/ldap.conf.5
+++ b/doc/man/man5/ldap.conf.5
@@ -169,9 +169,10 @@ The default is on.
 Note that the command line tools
 .BR ldapsearch (1)
 &co always override this option.
-.TP
-.B RESTART <on/true/yes/off/false/no>
-Determines whether the library should implicitly restart connections (FIXME).
+.\" This should only be allowed via ldap_set_option(3)
+.\".TP
+.\".B RESTART <on/true/yes/off/false/no>
+.\"Determines whether the library should implicitly restart connections (FIXME).
 .TP
 .B SIZELIMIT <integer>
 Specifies a size limit to use when performing searches.  The
diff --git a/libraries/libldap/init.c b/libraries/libldap/init.c
index 3e0b2b2b06..a3892d3645 100644
--- a/libraries/libldap/init.c
+++ b/libraries/libldap/init.c
@@ -85,7 +85,10 @@ static const struct ol_attribute {
 	{0, ATTR_OPTION,	"HOST",			NULL,	LDAP_OPT_HOST_NAME}, /* deprecated */
 	{0, ATTR_OPTION,	"URI",			NULL,	LDAP_OPT_URI}, /* replaces HOST/PORT */
 	{0, ATTR_BOOL,		"REFERRALS",	NULL,	LDAP_BOOL_REFERRALS},
+#if 0
+	/* This should only be allowed via ldap_set_option(3) */
 	{0, ATTR_BOOL,		"RESTART",		NULL,	LDAP_BOOL_RESTART},
+#endif
 
 #ifdef HAVE_CYRUS_SASL
 	{0, ATTR_STRING,	"SASL_MECH",		NULL,
-- 
GitLab