Hey, thanks for all the answers. It's solved now! It was an error in Apache configuration.
*> What is the full URL you are visiting when you get the error message "Authentication information not available"? I guess it was: http://localhost/trac/testProject/login* *> When you visit that URL, does your web browser pop up a basic auth form prompting you to log in?* * * No, I was not seeing the pop up. I've changed my Apache configurations for this: * * *ServerName localhost* * * *WSGIScriptAlias /trac /var/trac/apache/trac.wsgi * * * *<Directory /var/trac/apache> * * WSGIApplicationGroup %{GLOBAL} * * Order deny,allow * * Allow from all * *</Directory> * * * *<Location /trac> * * AuthType Basic * * AuthName "Trac login" * * AuthUserFile /var/trac/.htpasswd * * Require valid-user * *</Location>* I correct it and restart Apache, after it I saw the pop up to authentication and it's working very well. Thanks a lot @Steffen Hoffmann and @Ethan. On Monday, December 3, 2012 11:09:23 AM UTC-2, Ethan Jucovy wrote: > > > Trac Error >> Authentication information not available. Please refer to the installation >> documentation<http://localhost/trac/testProject/wiki/TracInstall#ConfiguringAuthentication> >> . >> > > If you have no plugins installed, and you've hooked up Apache for > authentication, then Trac expects Apache to be logging the user in and > sending the logged-in user's information to Trac in the HTTP request. When > you visit the "Login" URL, Trac looks for information about the logged-in > user, and sets some internal state (in a session) based on the > authentication information that was passed in by the Apache server. It's a > little confusing, because Trac's "Login" URL doesn't actually authenticate > the user; it just asserts that authentication has occurred upstream of the > Trac code for the current request, and then logs the user in persistently. > > This error message occurs if you visit the "Login" URL in Trac without an > authenticated user in the request, because Trac itself doesn't know how to > authenticate a request -- it only knows how to handle a request that's > already been authenticated by the upstream web server. (This is not true > if you install the excellent AccountManagerPlugin that Steffen is the > maintainer of.) > > The Apache web server needs to be set up to challenge the user when > visiting the "Login" URL, and then pass through the resulting authenticated > user (if the user's response was successful) to Trac. > > So from your description so far, it sounds like the error is in your > Apache configuration somehow: > > <Location "/trac/[^/]+/login"> >> AuthType Basic >> AuthName "Trac" >> AuthUserFile /opt/trac/trac.htpasswd >> Require valid-user >> </Location> >> > > What is the full URL you are visiting when you get the error message > "Authentication information not available"? > > When you visit that URL, does your web browser pop up a basic auth form > prompting you to log in? > > If it does, are you able to log in using the credentials you specified in > the trac.htpasswd file? > > -Ethan > > -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/trac-users/-/QRBO_NGPpjwJ. 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.
