ReviewBoard 4.0,2 + issue with LDAP based authentication

39 views
Skip to first unread message

harish.va...@gmail.com

unread,
Jun 26, 2021, 1:41:22 PM6/26/21
to Review Board Community
Hi All,

we are getting the below error with LDAP (per httpd error_log) post upgrade to RB 4.0.2 and site upgrade.

[Sat Jun 26 17:35:57.763873 2021] [:error] [pid 24259] TypeError: initialize() got an unexpected keyword argument 'bytes_mode'
[Sat Jun 26 17:36:20.653493 2021] [:error] [pid 24262] 2021-06-26 17:36:20,653 - ERROR -  - reviewboard.accounts.backends.ldap - Unexpected error occurred while authenticating with LDAP: initialize() got an unexpected keyword argument 'bytes_mode'
[Sat Jun 26 17:36:20.653508 2021] [:error] [pid 24262] Traceback (most recent call last):
[Sat Jun 26 17:36:20.653510 2021] [:error] [pid 24262]   File "/usr/lib/python2.7/site-packages/ReviewBoard-4.0.2-py2.7.egg/reviewboard/accounts/backends/ldap.py", line 339, in _connect
[Sat Jun 26 17:36:20.653512 2021] [:error] [pid 24262]     bytes_mode=False)
[Sat Jun 26 17:36:20.653513 2021] [:error] [pid 24262] TypeError: initialize() got an unexpected keyword argument 'bytes_mode'

Any idea on how to fix this.

Thanks.

raghuveer mudiraj

unread,
Jun 26, 2021, 2:34:49 PM6/26/21
to revie...@googlegroups.com
Hi Harish,

I too faced the same problem some time back while setting the LDAP authentication.

Please refer the below link


In the class LDAPBackend, the actual code needs to modify as per the above link.

the above link helped me to solve this. Hope it solves yours.

thanks & Regards,
M Raghuveer

--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/f9ff392d-ae3b-4e38-9e85-5172b02d6ac0n%40googlegroups.com.

Christian Hammond

unread,
Jun 27, 2021, 3:54:37 AM6/27/21
to revie...@googlegroups.com
You should just need to install the ReviewBoard[ldap] package to ensure you’re using a compatible version.

Christian


--
--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board

Subodh Konhor

unread,
Jun 27, 2021, 3:55:17 AM6/27/21
to revie...@googlegroups.com
It looks to be an old python-ldap package. Could you check if the package is updated or should be atleast match the requirements?

https://github.com/python-ldap/python-ldap/blob/python-ldap-3.3.0/Doc/reference/ldap.rst


Thanks,
Subodh

harish.va...@gmail.com

unread,
Jun 27, 2021, 7:33:04 AM6/27/21
to Review Board Community
Hi @chrisian, @subodh, @raghuveer,

Thanks for the inputs.
The issue is addressed.

Thanks.
Reply all
Reply to author
Forward
0 new messages