id summary reporter owner description type status priority component severity resolution keywords cc release 2360 Hack TracLDAP for resolve mail adress before request of group permission yoann.gini@… Emmanuel Blot "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 api.py 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 api.py 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/loader.py"", line 101, in load_components entry_point.load() File ""/Library/Python/2.3/site-packages/setuptools-0.6c7-py2.3.egg/pkg_resources.py"", 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/__init__.py"", 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 ? :-)" defect new normal LdapPlugin normal 0.10