ReviewBoard 4.0.2 + Issue with LDAP based authentication

17 views
Skip to first unread message

harish.va...@gmail.com

unread,
Jun 26, 2021, 1:40:46 PM6/26/21
to reviewboard-issues
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.

Christian Hammond

unread,
Jun 27, 2021, 3:53:47 AM6/27/21
to reviewboa...@googlegroups.com
Your version of the ldap module needs to be upgraded. Try installing the “ReviewBoard[ldap]” package (using the same installation method, pip or easy_install, that you used to install Review Board).

Christian
--
You received this message because you are subscribed to the Google Groups "reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard-iss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard-issues/b8110876-e025-4aa3-b7aa-ecd6ff7d66acn%40googlegroups.com.
--
--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board

harish.va...@gmail.com

unread,
Jun 27, 2021, 7:30:30 AM6/27/21
to reviewboard-issues
Thanks Christian.
It did help solve the problem.

I have another issue now starting the httpd server.
will start it as a separate thread so that its easier to track.

Reply all
Reply to author
Forward
0 new messages