Project

General

Profile

Actions

Feature #1300

closed

Foreman should support HTTP Authentification

Added by Romain Vrignaud almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Category:
Authentication
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hello,

It would be great to allow HTTP Authentification in Foreman
(for instance to allow things like WebSSO with LemonLDAP::NG).

Thx in advance.


Files


Related issues 2 (0 open2 closed)

Has duplicate Foreman - Feature #1369: Support Apache Basic Authentication for SSO.ClosedOhad Levy12/05/2011Actions
Is duplicate of Foreman - Bug #907: Foreman behind apache with userauth.Duplicate05/17/2011Actions
Actions #1

Updated by Romain Vrignaud almost 13 years ago

  • Assignee set to Romain Vrignaud
Actions #3

Updated by Ken Barber almost 13 years ago

I've tested this patch on 0.4 and it seems to work sufficiently okay. The edge cases aren't covered such as:

  • If the auth succeeds but the user doesn't exist, the error is not graceful.
  • It may be that someone wants the user to get created in the case of a user not existing in the INTERNAL_DATABASE.

Otherwise its a great start. Thanks Romain :-).

settings.yaml:

---
:login: true
:authorize_login_delegation: true

Sample apache config:

<VirtualHost *:80>
ServerName foreman1.vm
ServerAdmin
DocumentRoot /usr/share/foreman/public
Railsautodetect on
<Location />
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /etc/httpd/auth.pwd
Require Valid-User
</Location>
</VirtualHost>
Actions #4

Updated by Romain Vrignaud almost 13 years ago

New patch to handle case when user is not found.

Actions #5

Updated by Romain Vrignaud almost 13 years ago

Update patch to support WUI settings.

Actions #7

Updated by Ohad Levy almost 13 years ago

  • Category set to Authentication
  • Target version set to 1.0
Actions #8

Updated by Anonymous almost 13 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF