summaryrefslogtreecommitdiffstats
path: root/debian/patches/03_ldap3_by_default.diff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 19:59:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 19:59:04 +0000
commitcc0cf222a55b518d86e9179ba08c61c298144c61 (patch)
tree98ad9d9c8459e9f7347678bbbaed28fa30739f6e /debian/patches/03_ldap3_by_default.diff
parentAdding upstream version 3.8.5. (diff)
downloadpostfix-cc0cf222a55b518d86e9179ba08c61c298144c61.tar.xz
postfix-cc0cf222a55b518d86e9179ba08c61c298144c61.zip
Adding debian version 3.8.5-1.debian/3.8.5-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/03_ldap3_by_default.diff')
-rw-r--r--debian/patches/03_ldap3_by_default.diff54
1 files changed, 54 insertions, 0 deletions
diff --git a/debian/patches/03_ldap3_by_default.diff b/debian/patches/03_ldap3_by_default.diff
new file mode 100644
index 0000000..b49be13
--- /dev/null
+++ b/debian/patches/03_ldap3_by_default.diff
@@ -0,0 +1,54 @@
+From: LaMont Jones <lamont@debian.org>
+Subject: Set default LDAP protocol version to 3
+Forwarded: not-needed
+Index: postfix/src/global/dict_ldap.c
+===================================================================
+--- postfix.orig/src/global/dict_ldap.c
++++ postfix/src/global/dict_ldap.c
+@@ -1557,7 +1557,7 @@ DICT *dict_ldap_open(const char *ldaps
+ /*
+ * Define LDAP Protocol Version.
+ */
+- dict_ldap->version = cfg_get_int(dict_ldap->parser, "version", 2, 2, 0);
++ dict_ldap->version = cfg_get_int(dict_ldap->parser, "version", 3, 2, 0);
+ switch (dict_ldap->version) {
+ case 2:
+ dict_ldap->version = LDAP_VERSION2;
+@@ -1566,9 +1566,9 @@ DICT *dict_ldap_open(const char *ldaps
+ dict_ldap->version = LDAP_VERSION3;
+ break;
+ default:
+- msg_warn("%s: %s Unknown version %d, using 2.", myname, ldapsource,
++ msg_warn("%s: %s Unknown version %d, using 3.", myname, ldapsource,
+ dict_ldap->version);
+- dict_ldap->version = LDAP_VERSION2;
++ dict_ldap->version = LDAP_VERSION3;
+ }
+
+ #if defined(LDAP_API_FEATURE_X_OPENLDAP)
+Index: postfix/man/man5/ldap_table.5
+===================================================================
+--- postfix.orig/man/man5/ldap_table.5
++++ postfix/man/man5/ldap_table.5
+@@ -501,7 +501,7 @@ attention of the postfix\-users@postfix.
+ .IP "\fBchase_referrals (default: 0)\fR"
+ Sets (or clears) LDAP_OPT_REFERRALS (requires LDAP version
+ 3 support).
+-.IP "\fBversion (default: 2)\fR"
++.IP "\fBversion (default: 3)\fR"
+ Specifies the LDAP protocol version to use.
+ .IP "\fBdebuglevel (default: 0)\fR"
+ What level to set for debugging in the OpenLDAP libraries.
+Index: postfix/proto/ldap_table
+===================================================================
+--- postfix.orig/proto/ldap_table
++++ postfix/proto/ldap_table
+@@ -491,7 +491,7 @@
+ # .IP "\fBchase_referrals (default: 0)\fR"
+ # Sets (or clears) LDAP_OPT_REFERRALS (requires LDAP version
+ # 3 support).
+-# .IP "\fBversion (default: 2)\fR"
++# .IP "\fBversion (default: 3)\fR"
+ # Specifies the LDAP protocol version to use.
+ # .IP "\fBdebuglevel (default: 0)\fR"
+ # What level to set for debugging in the OpenLDAP libraries.