Opened 4 years ago

Closed 4 years ago

#10196 closed defect (fixed)

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

Reported by: sandeep Owned by: sandinak
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 4 years ago by anonymous

  • Status changed from new to assigned

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 4 years ago by anonymous

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

comment:3 Changed 4 years ago by sandinak

  • Resolution set to fixed
  • Status changed from assigned to closed

No response .. closing

Add Comment

Modify Ticket

as closed The owner will remain sandinak.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.