Modify

Opened 2 years ago

Last modified 5 weeks ago

#10443 new defect

ADauth can't authenticate against AD for user with NON-ASCII-Signs in the password

Reported by: didiboo@… Owned by: sandinak
Priority: high Component: DirectoryAuthPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.11

Description

If user within AD try to authenticate, and don't have strict ASCII-Passwords, authentication fails.

According to: http://www.mail-archive.com/python-ldap-dev@lists.sourceforge.net/msg00811.html

The Patch:

Change line 120 in auth.py from:

password = passwd or self.bin_pw

to

password = (passwd or self.bind_pw).encode('utf-8')

Attachments (0)

Change History (2)

comment:1 Changed 5 weeks ago by hanno

Same problem still exists. Tested with most current version of the plugin (v1.0.1, r13570) and Trac 1.0 .

To fix it, I had to change in Line 186 in auth.py from

user_ldap.simple_bind_s(user_dn, passwd)

to

user_ldap.simple_bind_s(user_dn, passwd.encode('utf-8'))

comment:2 Changed 5 weeks ago by rjollos

Did you also apply the patch in comment:description? Since the plugin is unmaintained I'll commit an untested patch if I get confirmation on the fix.

Add Comment

Modify Ticket

Action
as new The owner will remain sandinak.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.