Skip to content

ldap.initialize() unknown keyword parameter bytes_strictness #249

@jdennis

Description

@jdennis

ldap.initialize() is documented as having a bytes_strictness parameter as seen here: http://www.python-ldap.org/en/latest/reference/ldap.html#ldap.initialize.

It needs to be added to the parameter list here:

def initialize(uri,trace_level=0,trace_file=sys.stdout,trace_stack_limit=None, bytes_mode=None):

also the docstring, and finally in the call to LDAPObject().

The LDAPObject (SimpleLDAPObject in ldapobject.py) already supports the bytes_strictness parameter.

As an initial work-around one can do this:

conn = ldap.initialize(url, bytes_mode=False)
conn.bytes_strictness = 'silent'

bytes_strictness defaults to 'error' thus defeating the automatic type conversion described here: http://www.python-ldap.org/en/latest/bytes_mode.html#bytes-mode

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy