Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix up LDIF_LINE_LENGTH as per issue #950 #1158

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ldap3/protocol/rfc2849.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down