Opened 17 years ago
Last modified 7 years ago
#1663 new defect
Ldap plugin general problem
Reported by: | Owned by: | Emmanuel Blot | |
---|---|---|---|
Priority: | high | Component: | LdapPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
Hello! I've done some settings with trac including LdapPlugin-0.5.1dev-py2.4.egg. I've read manual but still can't make it work.
Traceback (most recent call last): File "/var/lib/python-support/python2.4/trac/web/main.py", line 387, in dispatch_request dispatcher.dispatch(req) File "/var/lib/python-support/python2.4/trac/web/main.py", line 183, in dispatch req.perm = PermissionCache(self.env, req.authname) File "/var/lib/python-support/python2.4/trac/perm.py", line 263, in __init__ self.perms = PermissionSystem(env).get_user_permissions(username) File "/var/lib/python-support/python2.4/trac/perm.py", line 227, in get_user_permissions for perm in self.store.get_user_permissions(username): File "build/bdist.linux-i686/egg/ldapplugin/api.py", line 205, in get_user_permissions File "build/bdist.linux-i686/egg/ldapplugin/api.py", line 108, in get_permission_groups File "build/bdist.linux-i686/egg/ldapplugin/api.py", line 149, in _get_user_groups File "build/bdist.linux-i686/egg/ldapplugin/api.py", line 541, in get_groups File "build/bdist.linux-i686/egg/ldapplugin/api.py", line 564, in get_dn File "build/bdist.linux-i686/egg/ldapplugin/api.py", line 647, in _search File "build/bdist.linux-i686/egg/ldapplugin/api.py", line 640, in _open TypeError: unsubscriptable object
Please give any suggestions :( Distro is Debian lenny/sid
Attachments (0)
Change History (8)
comment:1 Changed 17 years ago by
comment:2 follow-up: 4 Changed 17 years ago by
I've done this but nothing change :( Will ask for access to ldap plugins!
comment:4 Changed 17 years ago by
Replying to anonymous:
I've done this but nothing change :( Will ask for access to ldap plugins!
There's something wrong: you should get an error trace, but the message should be different (as there is no array in the code, no "unsubscriptable object" exception can be triggered.
Did you restart the server after the change - and if you've installed the plugin as an egg, have you rebuilt the egg file and re-installed it?
comment:5 follow-up: 6 Changed 17 years ago by
The servers were restarted and plugin was build again, but the case is same :( Still this messages.
comment:6 Changed 17 years ago by
Replying to anonymous:
The servers were restarted and plugin was build again, but the case is same :( Still this messages.
There is an issue w/ your installation: raise TracError("Unable to open LDAP cnx: %s" % e)
cannot trigger unsubscriptable object
exception.
Something went wrong when you applied the patch.
comment:7 follow-up: 8 Changed 17 years ago by
Hello I've did it again and again and received same errors :( I've installed Track 0.10.4 is it ok?
comment:8 Changed 17 years ago by
Replying to anonymous:
Hello I've did it again and again and received same errors :( I've installed Track 0.10.4 is it ok?
P.S. I mean .. Did you test it with this version?
Ok, it seems there is an error with the LDAP connection, and the trace message you're observing is a second-level issue: while attempting to print out the error, a second exception is triggered when accessing the error message.. I should have made this code more robust.
Meanwhile, can you try to replace line 640 of
api.py
with:to see whether you can get the original error.
It also would help if you have access to the LDAP server log message.