#3151: Form Login Problems
-----------------------------------+----------------------------------------
 Reporter:  [EMAIL PROTECTED]  |       Owner:  jonas
     Type:  defect                 |      Status:  new  
 Priority:  high                   |   Milestone:       
Component:  general                |     Version:  0.9.5
 Severity:  normal                 |    Keywords:       
-----------------------------------+----------------------------------------
 Hey,   I'm been trying to get Trac setup now for a little while and seem
 to have got pretty much everything working expect for login.  I installed
 the AccountManager and AuthFormPlugin, both of which seemed to install
 fine.  Login and Registration are both show in the menubar, and I can
 click on login and it will take me to the login box.  When I type my
 username and password in (which have been added) I get the error

 Oops...

 Trac detected an internal error:

 unsupported operand type(s) for +: 'NoneType' and 'str'
 Traceback (most recent call last):
   File "/usr/lib/python2.4/site-packages/trac/web/cgi_frontend.py", line
 130, in run
     dispatch_request(req.path_info, req, env)
   File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 139, in
 dispatch_request
     dispatcher.dispatch(req)
   File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 79, in
 dispatch
     req.authname = self.authenticate(req)
   File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 66, in
 authenticate
     authname = authenticator.authenticate(req)
   File "build/bdist.linux-i686/egg/acct_mgr/web_ui.py", line 160, in wrap
   File "build/bdist.linux-i686/egg/acct_mgr/web_ui.py", line 167, in
 authenticate
   File "build/bdist.linux-i686/egg/acct_mgr/web_ui.py", line 189, in
 _remote_user
   File "build/bdist.linux-i686/egg/acct_mgr/api.py", line 94, in
 check_password
   File "build/bdist.linux-i686/egg/acct_mgr/htfile.py", line 59, in
 check_password
   File "build/bdist.linux-i686/egg/acct_mgr/htfile.py", line 119, in
 prefix
 TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

 Which seemed very similar to
 http://projects.edgewall.com/trac/changeset/1710 and
 http://projects.edgewall.com/trac/ticket/1522 .  i edited the Browser.py
 file and changed the line but I am still getting the same error.

 The apache config looks like:

 <VirtualHost *:3000>
                 ServerName domain.com
                 DocumentRoot /var/www/domain.com/htdocs
         <Directory /var/www/domain.com/htdocs>
                AllowOverride all
                Options +Indexes +FollowSymLinks

         </Directory>
 </VirtualHost>
         <Location /Framework/svn>
                 <IfDefine SVN>
                         DAV svn
                         SVNPath /var/svn/repos
                         SVNIndexXSLT /Framework/trac/svnindex.xsl
                 </IfDefine>

                 <LimitExcept GET PROPFIND OPTIONS REPORT>
                         AuthType Basic
                         AuthName "Framework::svn"

                 </LimitExcept>
         </Location>

         <Location /Framework>
                 SetEnv TRAC_ENV "/var/lib/trac/Framework"
         </Location>

         <Location /login>
                 AuthType Basic
                 AuthName "Framework::trac"
                 AuthUserFile /var/lib/trac/trac.htpasswd
                 Require valid-user
         </Location>

         Alias /Framework/trac /var/www/domain.com/htdocs/Framework/trac
         ScriptAlias /Framework /var/www/domain.com/cgi-bin/trac.cgi
         Redirect /login http://domain.com/Framework/login

 I'm installing on Gentoo 2-6-15.  Any more info needed, let me know!

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/3151>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to