Skip to content

LDAPObject.search attrlist case sensitivity #492

@BShadeWork

Description

@BShadeWork

If you found a bug in python-ldap, or would request a new feature,
this is the place to let us know.

Please describe the issue and your environment here.


Issue description:
Using LDAPObject.search_s(base, scope[, filterstr='(objectClass=*)'[, attrlist=None[, attrsonly=0]]]) → list|None
and assumed the attrlist as case insensitive, but these seems not to be the case.
As (I believe) most ldap are by default case insensitive on attribute names, would it be possible to have as flag like case_ignore_attr_types like there is already for ldap.modlist.modifyModlist where "If case_ignore_attr_types is a list of attribute type names for which the comparison will be conducted case-insensitive."

Or maybe I have it wrong!

Steps to reproduce:
Use search_s with a attrlist but the ldap attributes have a different case to the list

Operating system:
RHEL 6.8
Python version:
Python 3.6.8

python-ldap version:
3.3.1

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