Author Topic: User-Authentification just by some ENV-Variables  (Read 1202 times)

Offline uherbst

  • User
  • *
  • Posts: 3
    • View Profile
User-Authentification just by some ENV-Variables
« on: August 16, 2010, 06:36:38 PM »
Apache set some ENV-Variables (REMOTE_USER), if user are authorized (by .htaccess and similar).

Could knowlegderoot just accept these users as authorized without additional login ?

Uli

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: User-Authentification just by some ENV-Variables
« Reply #1 on: August 17, 2010, 08:48:35 AM »
Hi,

it is not possible out of the box. But i think it could be implemented.

regards,
Frank

Offline uherbst

  • User
  • *
  • Posts: 3
    • View Profile
Re: User-Authentification just by some ENV-Variables
« Reply #2 on: September 10, 2010, 04:23:23 PM »
Could i ask you to implement this ? Or maybe you can give me a hint where to look for in the source ?

Uli

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: User-Authentification just by some ENV-Variables
« Reply #3 on: September 10, 2010, 04:31:17 PM »
Hi,

i will check this(hope tody) and will let you know what we do :)

regards,
Frank

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: User-Authentification just by some ENV-Variables
« Reply #4 on: September 11, 2010, 08:11:39 PM »
Hi,

i have checked the stuff now.

It should be possible to use an htaccess authentification with knowledgeroot!

I could write a small extension for this. But we need to clear some things.

1. Did you also have the ENV Vars PHP_AUTH_USER and PHP_AUTH_PW?
2. Should the users exists in knowledgeroot?
3. Should a normal login also work?

regards,
Frank

Offline uherbst

  • User
  • *
  • Posts: 3
    • View Profile
Re: User-Authentification just by some ENV-Variables
« Reply #5 on: September 15, 2010, 02:55:10 PM »
1. No, we haven't PHP_AUTH_USER and PHP_AUTH_PW. We have just (as CGI standard) REMOTE_USER. And if REMOTE_USER is set, we know, that this user is authenticated by Apache (or by webseal in my case)
2. Yes. If the user set by REMOTE_USER doesn't exist in knowledgeroot, he is just allowed to see guest pages (or something similiar) or maybe nothing. New users will be administrated manually.
3. No. If this new feature is enabled, no normal login should work.

Uli

Offline admin

  • Administrator
  • User
  • *****
  • Posts: 553
    • View Profile
    • http://www.lordlamer.de
Re: User-Authentification just by some ENV-Variables
« Reply #6 on: September 20, 2010, 11:05:44 PM »
Hi,

i have test this with a php cgi installation.
Now, i have only the server var REDIRECT_REMOTE_USER not REMOTE_USER itself. But i think this is not a problem. That could be configured in the extension itself later.

The login/logout will be disabled with the extension.

So, if the user is not found in knowledgeroot it will be a guest.
If the user exists it will use the rights and all the stuff you have configured from knowledgeroot.

Is that the way we go?

I could/would create a extension to get this working.

regards,
Frank