Roundcube Community Forum

Release Support => Release Discussion => Topic started by: xadamx on June 08, 2011, 11:40:02 AM

Title: http authentication
Post by: xadamx on June 08, 2011, 11:40:02 AM
I have to use Roundcube with http authentication, so I downloaded the  http_authentication plugin, copied to the plugins directory, added the  line : $rcmail_config['plugins'] = array(http_authentication); to the  main.inc.php, but it doesn't work, simply shows the default login page  when I try to open mydomain.xy/roundcube  I'm beginner in roundcube, and I really don't know what to do, please help  me!
Title: http authentication
Post by: JohnDoh on June 09, 2011, 10:37:05 AM
do you have http auth running on the directory that roundcube is in? thats something you setup in your webserver not in RC.
Title: http authentication
Post by: xadamx on June 10, 2011, 04:40:27 AM
I tried to add this lines to  my htaccess:

AuthType Basic
AuthName "xy"

but it doesn't work, when I added the line: require user auth..  I got erro page 500
and when I added line: authuserfile....  it worked, but when I entered the right datas, it shows the authentication windows again, but when I disabled it, and refreshed the page, I got the roundcube with the logged in user's account

can you tell me what are the right settings?
Title: http authentication
Post by: JohnDoh on June 10, 2011, 01:02:28 PM
that sounds to me like a problem with http authentication rather than RC, check your web server documentation and make sure you've got that setup right first.
Title: http authentication
Post by: xadamx on June 10, 2011, 01:06:58 PM
I use cpanel, everything is in all right, but I don't know how to set it in htaccess
(http_auth is activated for users)

I could solv it, but there is a small problem
I make it's directory protected by the http authentication in htaccess file and made a htpass file with the email addresses and passwords and when I log in with this, it works, but if I log out and try to login with another account, I will enter with the previous account ( I think it is caused by the cookies)

I think this is not the right way to make roundcube http authentication supporter
Title: http authentication
Post by: xadamx on June 12, 2011, 05:09:19 AM
can anyone tell me how to make roundcube http autnetication supporter step by step?