Here is the components part of my trac.ini file :

[components]
ldapplugin.* = enabled

You were right, here's the trac.log of the project :

2008-07-17 11:45:28,514 Trac[__init__] DEBUG: Loading egg plugin
ldapplugin.api from /tmp/trac/devjava/plugins/LdapPlugin-0.5.1-
py2.4.egg
2008-07-17 11:45:28,515 Trac[__init__] ERROR: Failed to load plugin
ldapplugin.api from /tmp/trac/devjava/plugins/LdapPlugin-0.5.1-
py2.4.egg
Traceback (most recent call last):
  File "/var/lib/python-support/python2.4/trac/loader.py", line 101,
in load_components
    entry_point.load()
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/
pkg_resources.py", line 1912, in load
    entry = __import__(self.module_name, globals(),globals(),
['__name__'])
ImportError: No module named ldapplugin.api

I have built the egg file as mentionned in the documentation and
copied it to plugins/, but it seems it isn't loading.
I noticed this explanation in the ldapplugin installation
instructions :
"As the trunk API may vary without notice, the plugin may be broken if
you run it with a different release."

Is there any link between my error and the api file missing ?

Thanks

On Jul 17, 11:34 am, "Emmanuel Blot" <[EMAIL PROTECTED]> wrote:
> First thing to check: is the LdapPlugin actually loaded ?
>
> Have you enabled it in the [components] section ?
>
> Enable Trac debug log level, and check out the status of the loader.
>
> HTH,
> Manu
>
>
>
> On Thu, Jul 17, 2008 at 10:09 AM,  <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
>
> > i'm actually a new user on this mailing list and a newbie to trac
> > utilisation ...
> > i have installed trac 0.10.3 on a server running apache 2.2.3
> > following the official instructions and everything seems to
> > work fine (with apache2 password files) : authentication and
> > permissions.
> > In order to manage several projects, i am trying to authenticate users
> > against our new OpenLDAP database.
> > I have followed the instructions mentionned on the LdapPlugin page,
> > installed the .egg file in the plugins directory of a test trac
> > project, and added the trac.schema in my slapd.conf file.
>
> > Whenever i want to access the url of my trac project, i always get the
> > following error message :
>
> > "AttributeError: Cannot find an implementation of the
> > "IPermissionStore" interface named "LdapPermissionStore".  Please
> > update the option trac.permission_store in trac.ini."
>
> > Due to my lack of experiment, i can't find if this problem comes from
> > my apache2 configuration, or a missing instruction in trac.ini.
>
> > Has anyone already met this problem before ? I c/c my configuration
> > below if it might help ...
>
> > ldap.ini :
>
> > [trac]
> > ...
> > permission_store = LdapPermissionStore
>
> > apache2 virtual host file :
>
> > <Location /devjava/login>
> >           SetHandler mod_python
> >           PythonInterpreter main_interpreter
> >           PythonHandler trac.web.modpython_frontend
> >           PythonOption TracEnvParentDir "/tmp/trac"
> >           PythonOption TracUriRoot "/devjava/login"
> >           AuthType Basic
> >           AuthName "login LDAP"
> >           AuthBasicProvider ldap
> >           Order Allow,Deny
> >           Allow from all
> >           AuthLDAPURL "ldap://@ip:389/dc=*?uid";
> >           AuthzLDAPAuthoritative off
> >           Require valid-user
> > </Location>
>
> > thanks.
>
> > Baptiste
>
> --
> Manu
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to