Answer the question
In order to leave comments, you need to log in
Apache + PAM + sssd + sso pass-through authentication?
I want to do pass-through authentication using an AD account.
Available:
Debian 9 server, AD domain joined with SSSD/realmd, configured with Kerberos;
An account has been created and a keytab file has been generated. Added SPN records;
Web server: Apache2 (2.4.25-3+deb9u2);
Icinga2 for which everything started;
keytab output:
Keytab name: FILE:/etc/apache2/Apache-Krb.keytab
KVNO Timestamp Principal
---- ------------------- --------- --------------------------------------------------
4 01.01.1970 07 :00:00 HTTP/[email protected] (des-cbc-crc)
4 01/01/1970 07:00:00 HTTP/[email protected] (des-cbc-md5)
4 01/01/1970 07:00:00 HTTP/[email protected] (arcfour-hmac)
4 01/01/1970 07:00:00 HTTP/Apache-Krb [email protected] (aes256-cts-hmac-sha1-96)
4 01/01/1970 07:00:00 HTTP/[email protected] (aes128-cts- hmac-sha1-96)
4 01/01/1970 07:00:00 HTTP/[email protected] (des-cbc-crc)
4 01/01/1970 07:00:00 HTTP/[email protected] (des-cbc-md5)
4 01/01/1970 07:00:00 HTTP/[email protected] CORP.DOMAIN.RU (arcfour-hmac)
4 01/01/1970 07:00:00 HTTP/[email protected] (aes256-cts-hmac-sha1-96)
4 01/01/1970 07 :00:00 HTTP/[email protected] (aes128-cts-hmac-sha1-96)
Alias /icingaweb2 "/usr/share/icingaweb2/public"
AuthType Kerberos
AuthName "PAM authentication"
Krb5Keytab /etc/apache2/Apache-Krb.keytab
KrbAuthRealms CORP.DOMAIN.RU
KrbMethodK5Passwd on
Require pam-account apache2-icingaweb2
Options
SymLinksIfOverrideMatch
SetEnv ICINGAWEB_CONFIGDIR "/etc/icingaweb2"
RewriteEngine on
RewriteBase /icingaweb2/
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC, L]
RewriteRule ^.*$ index.php [NC,L]
DirectoryIndex error_norewrite.html
ErrorDocument 404 /error_norewrite.html
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question