diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:46:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:46:31 +0000 |
commit | 32afea41ba8b7328e252ae97ca32c56f98d42a90 (patch) | |
tree | 11b25ffd59d9190c8316cd48ace4e198531d0e7d /debian/patches/03_ldap3_by_default.diff | |
parent | Adding upstream version 3.4.23. (diff) | |
download | postfix-debian.tar.xz postfix-debian.zip |
Adding debian version 3.4.23-0+deb10u1.debian/3.4.23-0+deb10u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | debian/patches/03_ldap3_by_default.diff | 47 |
1 files changed, 47 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..e63ce8c --- /dev/null +++ b/debian/patches/03_ldap3_by_default.diff @@ -0,0 +1,47 @@ +Index: postfix/src/global/dict_ldap.c +=================================================================== +--- postfix.orig/src/global/dict_ldap.c 2018-02-23 02:37:11.468712118 -0500 ++++ postfix/src/global/dict_ldap.c 2018-02-23 02:37:11.460712118 -0500 +@@ -102,7 +102,7 @@ + /* How to handle LDAP aliases. See ldap.h or ldap_open(3) man page. + /* .IP version + /* Specifies the LDAP protocol version to use. Default is version +-/* \fI2\fR. ++/* \fI3\fR. + /* .IP "\fBsasl_mechs (empty)\fR" + /* Specifies a space-separated list of LDAP SASL Mechanisms. + /* .IP "\fBsasl_realm (empty)\fR" +@@ -1669,7 +1669,7 @@ + /* + * 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; +@@ -1678,9 +1678,9 @@ + 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 2018-02-23 02:37:11.468712118 -0500 ++++ postfix/man/man5/ldap_table.5 2018-02-23 02:37:11.464712118 -0500 +@@ -501,7 +501,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. |