Error in bind_user method
See original GitHub issueI’m on Python 3.6.3 and I get this exception when I hit line 153
in __init__.py
(https://github.com/admiralobvious/flask-simpleldap/blob/master/flask_simpleldap/__init__.py#L153):
AttributeError: 'str' object has no attribute 'decode'
I changed it back to a recent commit you had in v1.1.2, which fixed the issue:
conn.simple_bind_s(user_dn, password)
(instead of conn.simple_bind_s(user_dn.decode('utf-8'), password)
)
Can we get that fix back?
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (1 by maintainers)
Top Results From Across the Web
Connection reset by peer trying to use LDAP against AD
Hello,. Trying to use LDAP authentication against Active Directory (AD). According to known howtos, the below is in /etc/gitlab/gitlab.rb:
Read more >Internal error in radius server with with bind DN | Security
The access tracker record shows the authentication method as "-". That is nothing. When I enable Bind User and it works, authentication method...
Read more >Receiving "ldap operation failed: failed to bind as user" error ...
Introduction Problem When the LDAP authentication method is configured, the first Vault client login via the newly configured LDAP...
Read more >Solved: Atlas LDAP authentication failed - Cloudera Community
I could log into ranger with LDAP ids ok, but atlas always returns me a error. log says "LDAP: error code 49 -...
Read more >Add unexpected exception log when bind user can ... - GitHub
Preflight Checklist I have completed all Troubleshooting Steps. I'm on the latest version of Directus. There's no other issue that already ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
i crafted a little monkey patch, works for me:
Have a nice day 😃
Same issue, solved applying @lindycoder code.