openid auth
Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
parent
c1aca5f215
commit
e678b0bb5d
1 changed files with 19 additions and 44 deletions
|
@ -10,22 +10,28 @@ ScriptAlias /tac.cgi /usr/lib64/nagios/cgi-bin/tac.cgi
|
|||
|
||||
<Location ~ "/(nagios|nagios-external|nagios-just-a-test)/cgi-bin/>
|
||||
Options ExecCGI
|
||||
AuthType Basic
|
||||
AuthName "nagios"
|
||||
|
||||
Auth_PG_host db-fas
|
||||
Auth_PG_port 5432
|
||||
Auth_PG_user fasreadonly
|
||||
Auth_PG_pwd "{{fas_db_readonly_password}}"
|
||||
Auth_PG_database fas2
|
||||
Auth_PG_pwd_table people
|
||||
Auth_PG_uid_field username
|
||||
Auth_PG_pwd_field password
|
||||
Auth_PG_pwd_whereclause " and status='active'"
|
||||
|
||||
AuthType OpenID
|
||||
require valid-user
|
||||
AuthOpenIDSingleIdP https://id.fedoraproject.org/
|
||||
AuthOpenIDSecureCookie on
|
||||
AuthOpenIDTrustRoot https://admin.fedoraproject.org
|
||||
AuthOpenIDServerName https://admin.fedoraproject.org
|
||||
# 3 hours
|
||||
AuthOpenIDCookieLifespan 10800
|
||||
</Location>
|
||||
|
||||
<Directory "/usr/share/nagios/html">
|
||||
Options None
|
||||
AuthType OpenID
|
||||
AuthOpenIDSingleIdP https://id.fedoraproject.org/
|
||||
AuthOpenIDSecureCookie on
|
||||
AuthOpenIDTrustRoot https://admin.fedoraproject.org
|
||||
AuthOpenIDServerName https://admin.fedoraproject.org
|
||||
# 3 hours
|
||||
AuthOpenIDCookieLifespan 10800
|
||||
Require valid-user granted
|
||||
</Directory>
|
||||
|
||||
Alias /nagios /usr/share/nagios/html/
|
||||
|
||||
# This will only affect noc2 because the proxies only forward -external to it.
|
||||
|
@ -33,34 +39,3 @@ Alias /nagios-external /usr/share/nagios/html/
|
|||
|
||||
# Test
|
||||
Alias /nagios-just-a-test /usr/share/nagios/html/
|
||||
|
||||
<Directory /usr/share/nagios/html/>
|
||||
Options None
|
||||
</Directory>
|
||||
|
||||
# For SSL-servers
|
||||
#<Directory /usr/lib/nagios/cgi-bin/>
|
||||
# Options ExecCGI
|
||||
# SSLRequireSSL
|
||||
# order deny,allow
|
||||
# deny from all
|
||||
# allow from 127.0.0.1
|
||||
# AuthType Basic
|
||||
# AuthUserFile /etc/nagios/passwd
|
||||
# AuthName "nagios"
|
||||
# require valid-user
|
||||
#</Directory>
|
||||
#
|
||||
#Alias /nagios/ /usr/share/nagios/html/
|
||||
#<Directory /usr/share/nagios/html/>
|
||||
# Options None
|
||||
# SSLRequireSSL
|
||||
# order deny,allow
|
||||
# deny from all
|
||||
# allow from 127.0.0.1
|
||||
# AuthType Basic
|
||||
# AuthUserFile /etc/nagios/passwd
|
||||
# AuthName "nagios"
|
||||
# require valid-user
|
||||
#</Directory>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue