Opened 10 years ago

#2360 new defect

Hack TracLDAP for resolve mail adress before request of group permission

Reported by: yoann.gini@… Owned by: Emmanuel Blot
Priority: normal Component: LdapPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10


Hi, I would use the LDAP hacks for provide a LDAP group support in my trac environnement.

Actualy I've an LDAP athentification with UID but I use the AuthLDAPRemoteUserAttribute option in apache for display the mail addresse in the place of the UID.

But the LDAP hacks don't work with this option, I've try to modifiy it with a "out of box" script. In fact I've modify the file for replace the mail by the uid in the _get_user_groups function (and only here), for do that I've add a new function in the LdapPermissionGroupProvider class.

When I try my function in other code it's work, when I load in the python interpreter it's good too but when I deploy the hack LDAP Trac on my server I've that :

008-01-08 12:41:20,731 Trac[loader] ERROR: Failed to load plugin ldapplugin.api from /Library/Python/2.3/site-packages/LdapPlugin-0.5.1dev_r1611-py2.3.egg Traceback (most recent call last):

File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/trac/", line 101, in load_components


File "/Library/Python/2.3/site-packages/setuptools-0.6c7-py2.3.egg/", line 1912, in load

entry = import(self.module_name, globals(),globals(), __name__?)

File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/LdapPlugin-0.5.1dev_r1611-py2.3.egg/ldapplugin/", line 2, in ?

ZipImportError: bad local file header in /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/LdapPlugin-0.5.1dev_r1611-py2.3.egg

Can you help me ? :-)

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain Emmanuel Blot.

Add Comment

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

Note: See TracTickets for help on using tickets.