Graham Dumpleton schrieb:
> On Oct 11, 6:04 am, Gunnar Thielebein <[EMAIL PROTECTED]>
> wrote:
>   
>> Hi.
>>
>> someone knows a better regex for 2 trac environments one with
>> accountmanager plugin the other with apache ldap auth this line
>>
>> LocationMatch "/[^/]+/login
>>
>> does interfer with all webapps which have a
>>
>> /login
>>
>> my config entries two debian sites-enable/ files are:
>>
>>     <Location /own>
>>         SetHandler mod_python
>>         PythonInterpreter main_interpreter
>>         PythonHandler trac.web.modpython_frontend
>>         #PythonOption TracEnvParentDir /var/own
>>         PythonOption    TracEnv /var/trac/own
>>         PythonOption TracUriRoot /own
>>         SetEnv PYTHON_EGG_CACHE /var/tmp
>>     </Location>
>>
>>     <Location /trac>
>>         SetHandler mod_python
>>         PythonInterpreter main_interpreter
>>         PythonHandler trac.web.modpython_frontend
>>         #PythonOption TracEnvParentDir /var/trac
>>         PythonOption    TracEnv /var/trac/trac
>>         PythonOption TracUriRoot /trac
>>         SetEnv PYTHON_EGG_CACHE /var/tmp
>>     </Location>
>>
>>     <LocationMatch "/[^/]+/login">
>>         AuthType Basic
>>         AuthName "Trac"
>>         Require valid-user
>>         AuthBasicProvider ldap
>>         AuthLDAPURL "ldap://ldap.tpip.net:389/dc=****,dc=net?uid";
>>         AuthLDAPGroupAttribute memberUid
>>         AuthLDAPGroupAttributeIsDN off
>>         Require ldap-group cn=Trac-TEST Users,ou=Groups,dc=****,dc=net
>>    </LocationMatch>
>>     
>
> Just duplicate the section and explicitly list the full URL for the
> Trac you want it applied to instead of using a pattern.
>
>      <Location "/trac/login">
>          AuthType Basic
>          AuthName "Trac"
>          Require valid-user
>          AuthBasicProvider ldap
>          AuthLDAPURL "ldap://ldap.tpip.net:389/dc=****,dc=net?uid";
>          AuthLDAPGroupAttribute memberUid
>          AuthLDAPGroupAttributeIsDN off
>          Require ldap-group cn=Trac-TEST
> Users,ou=Groups,dc=****,dc=net
>     </Location>
>
> In doing this, use Location, not LocationMatch.
>
> Read the Apache documentation on how these directives work for more
> information.
>
> Graham
>
>
>   
thanks, Graham I've got it working now.
Before I tried this but didn't changed <LocationMatch> to <Location>

Gunnar

--~--~---------~--~----~------------~-------~--~----~
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