I had the same problem and was able to get around it by making a small hack to 
one of the trac source files.  Considering I know very little python, I 
consider the hack to be fairly easy.  I don't remember which file it was 
offhand (I believe api.py or auth.py), but all I had to do was lowercase the 
username and replace out the domain part.

Russ
Sent wirelessly via BlackBerry from T-Mobile.  

-----Original Message-----
From: "Widerberg Marcus" <[EMAIL PROTECTED]>
Date: Tue, 31 Oct 2006 11:22:01 
To:<[email protected]>
Subject: [Trac] NT domain problem


Hello,

I got most things working smoothly, but I cannot get trac to work with
user logins where NT domain is included.

Ie: I use mod_sspi and trac gets either just username (with
SSPIOmitDomain On) or DOMAIN\USERNAME (with SSPIOmitDomain Off).

With SSPIOmitDomain Off I cannot get permissions matching, it seems. The
user does not get authorized.

=== 1: Permissions for trac project:

C:\sourcedata\trac\datastore>C:\Python24\python.exe C:\Python24\Script
s\trac-admin . permission list
sys:1: DeprecationWarning: Non-ASCII character '\xf6' in file
C:\Python24\Script
s\trac-admin on line 5, but no encoding declared; see
http://www.python.org/peps
/pep-0263.html for details

User               Action
-----------------------------
SEWIDERBERGM       TRAC_ADMIN
TP1\\SEWIDERBERGM  TRAC_ADMIN


Available actions:
 BROWSER_VIEW, CHANGESET_VIEW, CONFIG_VIEW, FILE_VIEW, LOG_VIEW,
 MILESTONE_ADMIN, MILESTONE_CREATE, MILESTONE_DELETE, MILESTONE_MODIFY,
 MILESTONE_VIEW, REPORT_ADMIN, REPORT_CREATE, REPORT_DELETE,
REPORT_MODIFY,
 REPORT_SQL_VIEW, REPORT_VIEW, ROADMAP_ADMIN, ROADMAP_VIEW, SEARCH_VIEW,
 TICKET_ADMIN, TICKET_APPEND, TICKET_CHGPROP, TICKET_CREATE,
TICKET_MODIFY,
 TICKET_VIEW, TIMELINE_VIEW, TRAC_ADMIN, WIKI_ADMIN, WIKI_CREATE,
 WIKI_DELETE, WIKI_MODIFY, WIKI_VIEW


=== 2: httpd.conf:

<Location /trac/projectdatastore>
   SetHandler mod_python
   PythonHandler trac.web.modpython_frontend 
   PythonOption TracEnv C:\sourcedata\trac\projectdatastore
   PythonOption TracUriRoot /trac/projectdatastore
</Location>

<Location /trac/projectdatastore/login>
  #NT Domain auth config
  AuthType SSPI
  AuthAuthoritative Off
  
  SSPIAuth On
  SSPIAuthoritative On
  SSPIOfferBasic On
  SSPIDomain TP1 
  SSPIOmitDomain Off
  SSPIBasicPreferred On 
  AuthName "DataStore_Trac"
  Require valid-user
</Location>


I know this has been discussed and I have looked at a lot of old
threads, but I cannot find a solution. I do believe I got it working
before.

/mawi



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

Reply via email to