Hi again and thanks for your help,
as you advised me, i have installed the ldapplugin using the "api.py"
file. I copied it into my plugins/ directory and the ldapplugin module
is loading fine this time :
DEBUG: Loading file plugin api from /tmp/trac/devjava/plugins/api.py
2008-07-17 16:32:13,232 Trac[__init__] DEBUG: Loading egg plugin
webadmin.logging from /usr/lib/python2.4/site-packages/
tracwebadmin.egg
2008-07-17 16:32:13,247 Trac[__init__] DEBUG: Loading egg plugin
webadmin.ticket from /usr/lib/python2.4/site-packages/tracwebadmin.egg
2008-07-17 16:32:13,327 Trac[__init__] DEBUG: Loading egg plugin
webadmin.basics from /usr/lib/python2.4/site-packages/tracwebadmin.egg
2008-07-17 16:32:13,338 Trac[__init__] DEBUG: Loading egg plugin
webadmin.perm from /usr/lib/python2.4/site-packages/tracwebadmin.egg
2008-07-17 16:32:13,340 Trac[__init__] DEBUG: Loading egg plugin
webadmin.web_ui from /usr/lib/python2.4/site-packages/tracwebadmin.egg
2008-07-17 16:32:13,341 Trac[__init__] DEBUG: Loading egg plugin
webadmin.plugin from /usr/lib/python2.4/site-packages/tracwebadmin.egg
2008-07-17 16:32:14,657 Trac[__init__] DEBUG: new: []
2008-07-17 16:32:14,737 Trac[__init__] INFO: Check for sync [1] vs.
cached [1]
As i said earlier, i am trying to make user permissions work. I added
the "trac.schema" to my slapd.conf and the "tracuser" objectclass to
several test users.
I also added the attribute "tracperm" which i filled this way for my
test users : "project: TRAC_ADMIN".
When I try to login to my trac environnement, the pop-up window
appears to authenticate but trac doesn't seem to accept permissions
and asks me for authentication again and again ? Maybe i've configured
the search filter the wrong way, but after several hours of work, i
can't help it and i'm a bit confused ...
my trac.ini looks like this :
[ldap]
enable = true
use_tls = false
host = @ip
basedn = dc=*
bind_user = cn=Manager,dc=*
bind_passwd = *
user_rdn = ou=People
group_rdn = ou=Group
groupattr = cn
uidattr = uid
permattr = tracperm
store_bind = true
permfilter = objectclass=*
[components]
ldapplugin.* = enabled
and my apache 2.2.3 virtual host file :
<Location /devjava/login>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvDir "/tmp/trac/devjava"
PythonOption TracUriRoot "/devjava/login"
AuthType Basic
AuthName "login LDAP"
AuthBasicProvider ldap
Order Allow,Deny
Allow from all
AuthLDAPURL "ldap://@ip/dc*?uid"
AuthzLDAPAuthoritative on
Require valid-user
</Location>
When i set "AuthzLDAPAuthoritative" to "off", i succeed in login but
every ldap user can and permissions doesn't work either.
I precise that i can bind my openldap base anonymously from the host
i'm using with an ldapsearch. All files in my /trac/project/ belong to
www-data user and group.
Thanks again, i keep on looking for informations ...
Baptiste
On 17 juil, 11:58, "Emmanuel Blot" <[EMAIL PROTECTED]> wrote:
> I don't think it is related to a Trac version error.
>
> Try installing the plugin without using an egg file.
>
> Cheers,
> Manu
>
> On Thu, Jul 17, 2008 at 11:52 AM, <[EMAIL PROTECTED]> wrote:
>
> > Here is the components part of my trac.ini file :
>
> > [components]
> > ldapplugin.* = enabled
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---