LoadModule auth_cas_module /usr/lib/apache2/modules/mod_auth_cas.so
CASCertificatePath /etc/ssl/cert/CAS_SERVER_x509chain.pem
CASCookiePath /var/cache/apache2/mod_auth_cas/
CASLoginURL https://CAS_SERVER/cas/login
CASValidateURL https://CAS_SERVER/cas/samlValidate
CASValidateSAML On
CASAttributePrefix SAML-
CASDebug On
<LocationMatch ^/auth/>
AuthType CAS
AuthName "Authentication Required"
CASAuthNHeader CAS-User
Require valid-user
</LocationMatch>LoadModule auth_cas_module /usr/lib/apache2/modules/mod_auth_cas.so
CASCookiePath /var/cache/apache2/mod_auth_cas/
CASLoginURL https://CAS_SERVER/cas/login
CASValidateURL https://CAS_SERVER/cas/serviceValidate
CASDebug On
<LocationMatch ^/auth/>
AuthType CAS
AuthName "Autentication required"
CASAuthNHeader CAS-User
Require valid-user
</LocationMatch>[Thu Dec 12 16:54:20.821632 2019] [auth_cas:debug] [pid 20232] mod_auth_cas.c(2675): entering check_vhost_config()
[Thu Dec 12 16:54:20.904208 2019] [auth_cas:debug] [pid 20233] mod_auth_cas.c(2675): entering check_vhost_config()
[Thu Dec 12 16:54:29.432630 2019] [auth_cas:debug] [pid 20238] mod_auth_cas.c(2159): [client CLIENT_IP:44734] Entering cas_authenticate()
[Thu Dec 12 16:54:29.432643 2019] [auth_cas:debug] [pid 20238] mod_auth_cas.c(610): [client CLIENT_IP:44734] CAS Service 'https%3a%2f%2fAPP_HOST%2fauth%2f'
[Thu Dec 12 16:54:29.432652 2019] [auth_cas:debug] [pid 20238] mod_auth_cas.c(558): [client CLIENT_IP:44734] entering getCASLoginURL()
[Thu Dec 12 16:54:29.432663 2019] [auth_cas:debug] [pid 20238] mod_auth_cas.c(535): [client CLIENT_IP:44734] entering getCASGateway()
[Thu Dec 12 16:54:29.432671 2019] [auth_cas:debug] [pid 20238] mod_auth_cas.c(625): [client CLIENT_IP:44734] entering redirectRequest()
[Thu Dec 12 16:54:29.432681 2019] [auth_cas:debug] [pid 20238] mod_auth_cas.c(637): [client CLIENT_IP:44734] Adding outgoing header: Location: https://CAS_SERVER/cas/login?service=https%3a%2f%2fAPP_HOST%2fauth%2f
[Thu Dec 12 16:54:34.729642 2019] [auth_cas:debug] [pid 20235] mod_auth_cas.c(2159): [client CLIENT_IP:44736] Entering cas_authenticate(), referer: https://CAS_SERVER/cas/login?service=https%3a%2f%2fAPP_HOST%2fauth%2f
[Thu Dec 12 16:54:34.729659 2019] [auth_cas:debug] [pid 20235] mod_auth_cas.c(682): [client CLIENT_IP:44736] Modified r->args (now ''), referer: https://CAS_SERVER/cas/login?service=https%3a%2f%2fAPP_HOST%2fauth%2f
[Thu Dec 12 16:54:34.729749 2019] [auth_cas:debug] [pid 20235] mod_auth_cas.c(1832): [client CLIENT_IP:44736] entering getResponseFromServer(), referer: https://CAS_SERVER/cas/login?service=https%3a%2f%2fAPP_HOST%2fauth%2f
[Thu Dec 12 16:54:34.729853 2019] [auth_cas:debug] [pid 20235] mod_auth_cas.c(610): [client CLIENT_IP:44736] CAS Service 'https%3a%2f%2fAPP_HOST%2fauth%2f', referer: https://CAS_SERVER/cas/login?service=https%3a%2f%2fAPP_HOST%2fauth%2f
[Thu Dec 12 16:54:35.031085 2019] [auth_cas:debug] [pid 20236] mod_auth_cas.c(2159): [client CLIENT_IP:44754] Entering cas_authenticate(), referer: https://CAS_SERVER/cas/login?service=https%3a%2f%2fAPP_HOST%2fauth%2f
[Thu Dec 12 16:54:35.031100 2019] [auth_cas:debug] [pid 20236] mod_auth_cas.c(682): [client CLIENT_IP:44754] Modified r->args (now ''), referer: https://CAS_SERVER/cas/login?service=https%3a%2f%2fAPP_HOST%2fauth%2f
[Thu Dec 12 16:54:35.031149 2019] [auth_cas:debug] [pid 20236] mod_auth_cas.c(1832): [client CLIENT_IP:44754] entering getResponseFromServer(), referer: https://CAS_SERVER/cas/login?service=https%3a%2f%2fAPP_HOST%2fauth%2f
[Thu Dec 12 16:54:35.031241 2019] [auth_cas:debug] [pid 20236] mod_auth_cas.c(610): [client CLIENT_IP:44754] CAS Service 'https%3a%2f%2fAPP_HOST%2fauth%2f', referer: https://CAS_SERVER/cas/login?service=https%3a%2f%2fAPP_HOST%2fauth%2f
curl -v --cacert /etc/ssl/InCommon/chain.crt https://CAS_SERVER/cas/serviceValidate?service=https%3a%2f%2fAPP_HOST%2fauth%2f'&'ticket=ST-2-Tx60JTe9ZiSCDUEphxs6upVgrfgSFACAS3
* Trying CAS_SERVER_IP...
* Connected to CAS_SERVER (CAS_SERVER_IP) port 443 (#0)
* found 3 certificates in /etc/ssl/InCommon/chain.crt
* found 582 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / ECDHE_RSA_AES_256_GCM_SHA384
''' SNIP! '''
* ALPN, server did not agree to a protocol
> GET /cas/serviceValidate?service=https%3a%2f%2fAPP_HOST%2fauth%2f&ticket=ST-2-Tx60JTe9ZiSCDUEphxs6upVgrfgSFACAS3 HTTP/1.1
> Host: CAS_SERVER
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 200
< Cache-Control: no-store
< Pragma:
< Expires:
< Strict-Transport-Security: max-age=15768000 ; includeSubDomains
< X-Content-Type-Options: nosniff
< X-Frame-Options: DENY
< X-XSS-Protection: 1; mode=block
< Content-Type: text/html;charset=UTF-8
< Content-Language: en-US
< Transfer-Encoding: chunked
< Vary: Accept-Encoding
< Date: Fri, 13 Dec 2019 15:40:32 GMT
<
<cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>
<cas:authenticationFailure code="INVALID_TICKET">Ticket 'ST-2-Tx60JTe9ZiSCDUEphxs6upVgrfgSFACAS3' not recognized</cas:authenticationFailure>
</cas:serviceResponse>
* Connection #0 to host CAS_SERVER left intact
--
Enter service ticket ID: ST-3-AVml3Z3uyCXQCJ8-xpO9C4OV5sQSFACAS3
* Trying CAS_SERVER_IP...
* Connected to CAS_SERVER (CAS_SERVER_IP) port 443 (#0)
* found 3 certificates in /etc/ssl/InCommon/chain.crt
* found 582 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / ECDHE_RSA_AES_256_GCM_SHA384
* server certificate verification OK
* server certificate status verification SKIPPED
* common name: CAS_SERVER (matched)
* server certificate expiration date OK
* server certificate activation date OK
* certificate public key: RSA
* certificate version: #3
* subject: CERT_INFO
* start date: Wed, 09 Oct 2019 00:00:00 GMT
* expire date: Thu, 08 Oct 2020 23:59:59 GMT
* issuer: C=US,ST=MI,L=Ann Arbor,O=Internet2,OU=InCommon,CN=InCommon RSA Server CA
* compression: NULL
* ALPN, server did not agree to a protocol
> GET /cas/serviceValidate?service=https%3a%2f%2fAPP_SERVER%2fauth%2f&ticket=ST-3-AVml3Z3uyCXQCJ8-xpO9C4OV5sQSFACAS3 HTTP/1.1
> Host: CAS_SERVER
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 200
< Cache-Control: no-store
< Pragma:
< Expires:
< Strict-Transport-Security: max-age=15768000 ; includeSubDomains
< X-Content-Type-Options: nosniff
< X-Frame-Options: DENY
< X-XSS-Protection: 1; mode=block
< Content-Type: application/xml;charset=UTF-8
< Content-Language: en-US
< Transfer-Encoding: chunked
< Vary: Accept-Encoding
< Date: Fri, 13 Dec 2019 19:42:02 GMT
<
<cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>
<cas:authenticationSuccess>
<cas:user>MY_USER_NAME</cas:user>
</cas:authenticationSuccess>
</cas:serviceResponse>
* Connection #0 to host CAS_SERVER left intact
$ /usr/bin/curl-config --version
libcurl 7.47.0
$ /usr/bin/curl --version
curl 7.47.0 (x86_64-pc-linux-gnu) libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets
libcurl_cv_lib_curl_version=7.47.0[Fri Dec 13 16:43:48.345565 2019] [auth_cas:debug] [pid 9977] mod_auth_cas.c(1832): [client CLIENT_IP:35632] entering getResponseFromServer(), referer: https://CAS_SERVER/cas/login?service=https%3a%2f%2fAPP_SERVER%2fauth%2f
[Fri Dec 13 16:43:48.345651 2019] [auth_cas:debug] [pid 9977] mod_auth_cas.c(1895): [client CLIENT_IP:35632] samlPayload = <?xml version="1.0" encoding="utf-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><samlp:Request xmlns:samlp="urn:oasis:names:tc:SAML:1.0:protocol" MajorVersion="1" MinorVersion="1" RequestID="d9b827223ed99d990cc8ebdf7e9baeca"><samlp:AssertionArtifact>ST-9-OQvPfKXueVO-Tz5dQWATBIktFG4SFACAS3</samlp:AssertionArtifact></samlp:Request></SOAP-ENV:Body></SOAP-ENV:Envelope>, referer: https://CAS_SERVER/cas/login?service=https%3a%2f%2fAPP_SERVER%2fauth%2f
[Fri Dec 13 16:43:48.345666 2019] [auth_cas:debug] [pid 9977] mod_auth_cas.c(610): [client CLIENT_IP:35632] CAS Service 'https%3a%2f%2fAPP_SERVER%2fauth%2f', referer: https://CAS_SERVER/cas/login?service=https%3a%2f%2fAPP_SERVER%2fauth%2f
[Fri Dec 13 16:43:48.345673 2019] [auth_cas:debug] [pid 9977] mod_auth_cas.c(1904): [client CLIENT_IP:35632] ****** point 1, referer: https://CAS_SERVER/cas/login?service=https%3a%2f%2fAPP_SERVER%2fauth%2f
[Fri Dec 13 16:43:48.345688 2019] [auth_cas:debug] [pid 9977] mod_auth_cas.c(1906): [client CLIENT_IP:35632] ****** point 2, referer: https://CAS_SERVER/cas/login?service=https%3a%2f%2fAPP_SERVER%2fauth%2f
[Fri Dec 13 16:44:20.816146 2019] [ssl:info] [pid 9978] [client APP_SERVER_IP:38236] AH01964: Connection to child 2 established (server APP_SERVER:443)
[Fri Dec 13 16:44:20.816483 2019] [ssl:debug] [pid 9978] ssl_engine_kernel.c(2388): [client APP_SERVER_IP:38236] AH02645: Server name not provided via TLS extension (using default/first virtual host)
[Fri Dec 13 16:44:20.816503 2019] [ssl:debug] [pid 9978] ssl_engine_kernel.c(2388): [client APP_SERVER_IP:38236] AH02645: Server name not provided via TLS extension (using default/first virtual host)
[Fri Dec 13 16:44:20.816514 2019] [core:debug] [pid 9978] protocol.c(2316): [client APP_SERVER_IP:38236] AH03155: select protocol from , choices=http/1.1 for server APP_SERVER
[Fri Dec 13 16:44:20.821920 2019] [ssl:debug] [pid 9978] ssl_engine_kernel.c(2236): [client APP_SERVER_IP:38236] AH02041: Protocol: TLSv1.3, Cipher: TLS_AES_256_GCM_SHA384 (256/256 bits)
[Fri Dec 13 16:44:20.821994 2019] [socache_shmcb:debug] [pid 9978] mod_socache_shmcb.c(495): AH00831: socache_shmcb_store (0xd2 -> subcache 18)
[Fri Dec 13 16:44:20.822009 2019] [socache_shmcb:debug] [pid 9978] mod_socache_shmcb.c(849): AH00847: insert happened at idx=0, data=(0:32)
[Fri Dec 13 16:44:20.822018 2019] [socache_shmcb:debug] [pid 9978] mod_socache_shmcb.c(854): AH00848: finished insert, subcache: idx_pos/idx_used=0/1, data_pos/data_used=0/201
[Fri Dec 13 16:44:20.822026 2019] [socache_shmcb:debug] [pid 9978] mod_socache_shmcb.c(516): AH00834: leaving socache_shmcb_store successfully
[Fri Dec 13 16:44:20.822167 2019] [socache_shmcb:debug] [pid 9978] mod_socache_shmcb.c(495): AH00831: socache_shmcb_store (0x8a -> subcache 10)
[Fri Dec 13 16:44:20.822185 2019] [socache_shmcb:debug] [pid 9978] mod_socache_shmcb.c(849): AH00847: insert happened at idx=1, data=(222:254)
[Fri Dec 13 16:44:20.822194 2019] [socache_shmcb:debug] [pid 9978] mod_socache_shmcb.c(854): AH00848: finished insert, subcache: idx_pos/idx_used=0/2, data_pos/data_used=0/423
[Fri Dec 13 16:44:20.822202 2019] [socache_shmcb:debug] [pid 9978] mod_socache_shmcb.c(516): AH00834: leaving socache_shmcb_store successfully
[Fri Dec 13 16:44:20.822360 2019] [ssl:debug] [pid 9978] ssl_engine_kernel.c(383): [client APP_SERVER_IP:38236] AH02034: Initial (No.1) HTTPS request received for child 2 (server APP_SERVER:443)
[Fri Dec 13 16:44:20.822461 2019] [authz_core:debug] [pid 9978] mod_authz_core.c(820): [client APP_SERVER_IP:38236] AH01626: authorization result of Require all granted: granted
[Fri Dec 13 16:44:20.822475 2019] [authz_core:debug] [pid 9978] mod_authz_core.c(820): [client APP_SERVER_IP:38236] AH01626: authorization result of <RequireAny>: granted
[Fri Dec 13 16:44:20.822587 2019] [authz_core:debug] [pid 9978] mod_authz_core.c(820): [client APP_SERVER_IP:38236] AH01626: authorization result of Require all granted: granted
[Fri Dec 13 16:44:20.822602 2019] [authz_core:debug] [pid 9978] mod_authz_core.c(820): [client APP_SERVER_IP:38236] AH01626: authorization result of <RequireAny>: granted
[Fri Dec 13 16:44:20.822688 2019] [authz_core:debug] [pid 9978] mod_authz_core.c(820): [client APP_SERVER_IP:38236] AH01626: authorization result of Require all granted: granted
[Fri Dec 13 16:44:20.822701 2019] [authz_core:debug] [pid 9978] mod_authz_core.c(820): [client APP_SERVER_IP:38236] AH01626: authorization result of <RequireAny>: granted
[Fri Dec 13 16:44:20.822927 2019] [authz_core:debug] [pid 9978] mod_authz_core.c(820): [client APP_SERVER_IP:38236] AH01626: authorization result of Require all granted: granted
[Fri Dec 13 16:44:20.822943 2019] [authz_core:debug] [pid 9978] mod_authz_core.c(820): [client APP_SERVER_IP:38236] AH01626: authorization result of <RequireAny>: granted
[Fri Dec 13 16:44:20.823016 2019] [authz_core:debug] [pid 9978] mod_authz_core.c(820): [client APP_SERVER_IP:38236] AH01626: authorization result of Require all granted: granted
[Fri Dec 13 16:44:20.823030 2019] [authz_core:debug] [pid 9978] mod_authz_core.c(820): [client APP_SERVER_IP:38236] AH01626: authorization result of <RequireAny>: granted
[Fri Dec 13 16:44:20.825002 2019] [ssl:debug] [pid 9978] ssl_engine_io.c(1106): [client APP_SERVER_IP:38236] AH02001: Connection closed to child 2 with standard shutdown (server APP_SERVER:443)
openssl version
OpenSSL 1.1.1 11 Sep 2018 (Library: OpenSSL 1.1.1d 10 Sep 2019)
curl-config --version
libcurl 7.47.0sudo mkdir /opt/curl
sudo chown root:root /opt/curl
git clone https://github.com/curl/curl.git
cd curl
git checkout curl-7_67_0
autoreconf
./configure --prefix=/opt/curl --with-ssl
make
sudo make install/opt/curl/bin/curl --version
curl 7.68.0-DEV (x86_64-pc-linux-gnu) libcurl/7.68.0-DEV OpenSSL/1.1.1d
Release-Date: [unreleased]
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS HTTPS-proxy IPv6 Largefile NTLM NTLM_WB SSL TLS-SRP UnixSocketsgit clone https://github.com/apereo/mod_auth_cas.git
cd mod_auth_cas
[branched, tagged, and checked out]
autoreconf -ivf
./configure --with-libcurl=/opt/curl
make
sudo make install