From 8812dfcfdb53fe51ace050a760d6c6db755530e8 Mon Sep 17 00:00:00 2001 From: Peter Lambrechtsen Date: Fri, 20 Sep 2024 08:30:30 +1200 Subject: [PATCH] Fix up LDIF_LINE_LENGTH as per issue #950 --- ldap3/protocol/rfc2849.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ldap3/protocol/rfc2849.py b/ldap3/protocol/rfc2849.py index af30a384..f56fa5af 100644 --- a/ldap3/protocol/rfc2849.py +++ b/ldap3/protocol/rfc2849.py @@ -34,8 +34,6 @@ # LDIF converter RFC 2849 compliant -conf_ldif_line_length = get_config_parameter('LDIF_LINE_LENGTH') - def safe_ldif_string(bytes_value): if not bytes_value: @@ -230,6 +228,8 @@ def operation_to_ldif(operation_type, entries, all_base64=False, sort_order=None else: lines = [] + conf_ldif_line_length = get_config_parameter('LDIF_LINE_LENGTH') + ldif_record = [] # check max line length and split as per note 2 of RFC 2849 for line in lines: