Hi.
I've created apache users, put the configuration bellow into apache
httpd.conf :
--- snip ---
<Location "/trac/login">
AuthType Basic
AuthName "Trac"
AuthUserFile /opt/trac_projects/.trac.htpasswd
Require valid-user
</Location>
--- snip ---
But, when I try to access '/trac/login', I receive the following error :
--- snip ---
Python Traceback
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 406, in
dispatch_request
dispatcher.dispatch(req)
File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 191, in
dispatch
chosen_handler = self._pre_process_request(req, chosen_handler)
File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 263, in
_pre_process_request
chosen_handler = f.pre_process_request(req, chosen_handler)
File "/usr/local/lib/python2.4/site-packages/trac/versioncontrol/api.py",
line 73, in pre_process_request
self.get_repository(req.authname).sync()
File "/usr/local/lib/python2.4/site-packages/trac/versioncontrol/api.py",
line 104, in get_repository
repos = self._connector.get_repository(rtype, rdir, authname)
File "/usr/local/lib/python2.4/site-packages/trac/versioncontrol/svn_fs.py",
line 237, in get_repository
authz = SubversionAuthorizer(self.env, crepos, authname)
File
"/usr/local/lib/python2.4/site-packages/trac/versioncontrol/svn_authz.py", line
41, in SubversionAuthorizer
return RealSubversionAuthorizer(repos, authname, module_name, authz_file)
File
"/usr/local/lib/python2.4/site-packages/trac/versioncontrol/svn_authz.py", line
76, in __init__
self.conf_authz.read(cfg_file)
File "/usr/local/lib/python2.4/ConfigParser.py", line 267, in read
self._read(fp, filename)
File "/usr/local/lib/python2.4/ConfigParser.py", line 462, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
MissingSectionHeaderError: File contains no section headers.
file: /opt/trac_projects/.trac.htpasswd, line: 1
'admin:3uSMyF2C0T82w\n'
--- snip ---
Any ideas about this 'MissingSectionHeaderError' ?
I'm using 'Trac 0.10.4 on a FreeBSD system.
Regards,
Macaíba.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---