Skip to content
Open
Show file tree
Hide file tree
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
8 changes: 7 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ Next release
- Prevent the use of zero-length password authentication. See
https://github.com/Pylons/pyramid_ldap/pull/13

0.1
0.2
---

- Patched escape sequence issue:

http://social.technet.microsoft.com/wiki/contents/articles/5392.active-directory-ldap-syntax-filters.aspx

"The backslash character must be escaped in LDAP filters. Substitute \5C"

- Initial version
1 change: 1 addition & 0 deletions pyramid_ldap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ def groupfinder(userdn, request):
principal in the list of results; if the user does not exist, it returns
None."""
connector = get_ldap_connector(request)
userdn = userdn.replace('\\', '\\5c')
group_list = connector.user_groups(userdn)
if group_list is None:
return None
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
docs_extras = ['Sphinx']

setup(name='pyramid_ldap',
version='0.1',
version='0.2',
description='pyramid_ldap',
long_description=README + '\n\n' + CHANGES,
classifiers=[
Expand Down