Author Topic: http authentication  (Read 7443 times)

Offline xadamx

  • Newbie
  • *
  • Posts: 5
http authentication
« 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!

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
http authentication
« Reply #1 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.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline xadamx

  • Newbie
  • *
  • Posts: 5
http authentication
« Reply #2 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?
« Last Edit: June 10, 2011, 05:15:14 AM by xadamx »

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
http authentication
« Reply #3 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.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline xadamx

  • Newbie
  • *
  • Posts: 5
http authentication
« Reply #4 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
« Last Edit: June 10, 2011, 02:04:40 PM by xadamx »

Offline xadamx

  • Newbie
  • *
  • Posts: 5
http authentication
« Reply #5 on: June 12, 2011, 05:09:19 AM »
can anyone tell me how to make roundcube http autnetication supporter step by step?