Opened 6 years ago

Closed 6 years ago

#10196 closed defect (fixed)

TypeError: sequence item 2: expected string or Unicode, tuple found

Reported by: Sandeep Nadkarni Owned by: branson
Priority: high Component: DirectoryAuthPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12


Traceback (most recent call last):

File "/usr/lib/python2.6/site-packages/trac/web/", line 525, in _dispatch_request


File "/usr/lib/python2.6/site-packages/trac/web/", line 246, in dispatch

resp = chosen_handler.process_request(req)

File "/usr/lib/python2.6/site-packages/trac/wiki/", line 120, in process_request


File "/usr/lib/python2.6/site-packages/trac/", line 575, in require

if not self._has_permission(action, resource):

File "/usr/lib/python2.6/site-packages/trac/", line 567, in _has_permission

check_permission(action, perm.username, resource, perm)

File "/usr/lib/python2.6/site-packages/trac/", line 454, in check_permission


File "/usr/lib/python2.6/site-packages/trac/", line 286, in check_permission


File "/usr/lib/python2.6/site-packages/trac/", line 372, in get_user_permissions

for perm in or []:

File "/usr/lib/python2.6/site-packages/TracActiveDirectoryAuth-0.3-py2.6.egg/tracext/adauth/", line 43, in get_user_permissions


File "/usr/lib/python2.6/site-packages/TracActiveDirectoryAuth-0.3-py2.6.egg/tracext/adauth/", line 180, in get_permission_groups

dn = self._get_user_dn(username)

File "/usr/lib/python2.6/site-packages/TracActiveDirectoryAuth-0.3-py2.6.egg/tracext/adauth/", line 237, in _get_user_dn

if self.has_user(user):

File "/usr/lib/python2.6/site-packages/TracActiveDirectoryAuth-0.3-py2.6.egg/tracext/adauth/", line 129, in has_user

users = self.get_users()

File "/usr/lib/python2.6/site-packages/TracActiveDirectoryAuth-0.3-py2.6.egg/tracext/adauth/", line 76, in get_users

'proxyAddresses', 'displayName'])

File "/usr/lib/python2.6/site-packages/TracActiveDirectoryAuth-0.3-py2.6.egg/tracext/adauth/", line 389, in _ad_search

keystr = ",".join([ base_dn, str(scope), filter, ":".join(attrs) ])

TypeError: sequence item 2: expected string or Unicode, tuple found

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by anonymous

Status: newassigned

Looking at this .. can you send me the [account-manager] section of your trac.ini (Sanitized ;-) pls? There's two sequences there, and both are pre-defined in code.. so I am not sure what it's actually complaining about. Thanks.

comment:2 Changed 6 years ago by anonymous

Found it. patched per r11837, please test and let me know if resolved. Thanks!

comment:3 Changed 6 years ago by branson

Resolution: fixed
Status: assignedclosed

No response .. closing

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain branson.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.