Replies: 4 comments 1 reply
-
what about the output of |
Beta Was this translation helpful? Give feedback.
-
@zandbelt - thanks for the tip! Restarted apache to get a fresh look - and got this in the logs using the command you described: [Wed Jan 17 08:33:55.537396 2024] [auth_openidc:info] [pid 124602] mod_auth_openidc-2.4.14.3 - init - cjose 0.6.1.4, OpenSSL 1.0.2k-fips 26 Jan 2017, EC=yes, GCM=yes, Memcache=yes, Redis=yes, JQ=no
[Wed Jan 17 08:33:55.574838 2024] [auth_openidc:debug] [pid 124602] src/cache/shm.c(120): oidc_cache_shm_post_config: initialized shared memory with a cache size (# entries) of: 10000, and a max (single) entry size of: 16913
[root@extwsn2aw117 conf.d]# I decided to try and simplify things a bit. We did have our oidc Redis config buried in a site file with a lot of other OIDC settings (the other ones all are working as expected) I moved them to a simple 99_redis.conf file in the conf.d directory: [root@extwsn2aw117 conf.d]# cat /etc/httpd/conf.d/99_redis.conf
# Redis Configuration
OIDCSessionCacheFallbackToCookie Off
OIDCCacheType redis
OIDCRedisCacheServer myurl:13030
OIDCRedisCachePassword mypassword
OIDCRedisCacheUsername myusername
OIDCRedisCacheDatabase 0
OIDCRedisCacheConnectTimeout 5
OIDCRedisCacheTimeout 5
[root@extwsn2aw117 conf.d]# Confirmed that apache "sees" these config options just fine - no duplicates or anything: [root@extwsn2aw117 conf.d]# httpd -t -D DUMP_CONFIG | grep -e Redis
OIDCRedisCacheServer myurl:13030
OIDCRedisCachePassword mypassword
OIDCRedisCacheUsername myusername
OIDCRedisCacheDatabase 0
OIDCRedisCacheConnectTimeout 5
OIDCRedisCacheTimeout 5
AH00180: WARNING: MaxRequestWorkers of 768 exceeds ServerLimit value of
512 servers, decreasing MaxRequestWorkers to 512.
To increase, please see the ServerLimit directive.
Syntax OK
[root@extwsn2aw117 conf.d]# httpd -t -D DUMP_CONFIG | grep -e redis
# In file: /etc/httpd/conf.d/99_redis.conf
OIDCCacheType redis
AH00180: WARNING: MaxRequestWorkers of 768 exceeds ServerLimit value of
512 servers, decreasing MaxRequestWorkers to 512.
To increase, please see the ServerLimit directive.
Syntax OK
[root@extwsn2aw117 conf.d]# I then restarted HTTPD with this simplfied setup - it didn't indicate it was loading the "shm" method this time - but also didn't do anything else beyond show an "init" message either. I let it idle for a few minutes to confirm. [root@extwsn2aw117 conf.d]# sudo service httpd status | grep "Active: "
Redirecting to /bin/systemctl status httpd.service
Active: active (running) since Wed 2024-01-17 08:50:08 EST; 2min 51s ago
[root@extwsn2aw117 conf.d]# cat /var/log/httpd/error_log | grep auth_openidc
...
[Wed Jan 17 08:50:06.629552 2024] [auth_openidc:debug] [pid 126292] src/cache/common.c(194): oidc_cache_mutex_destroy: apr_global_mutex_destroy returned :0
[Wed Jan 17 08:50:06.629711 2024] [auth_openidc:info] [pid 126292] mod_auth_openidc-2.4.14.3 - shutdown
[Wed Jan 17 08:50:08.895038 2024] [auth_openidc:info] [pid 126858] mod_auth_openidc-2.4.14.3 - init - cjose 0.6.1.4, OpenSSL 1.0.2k-fips 26 Jan 2017, EC=yes, GCM=yes, Memcache=yes, Redis=yes, JQ=no
[root@extwsn2aw117 conf.d]# Here's a dump of "every" OIDC parameter we have set. Would one of these somehow override the cache settings or something? [root@extwsn2aw117 conf.d]# httpd -t -D DUMP_CONFIG | grep -e OIDC
OIDCSessionCacheFallbackToCookie Off
OIDCCacheType redis
OIDCRedisCacheServer <myserver>:13030
OIDCRedisCachePassword <mypassword>
OIDCRedisCacheUsername <myuser>
OIDCRedisCacheDatabase 0
OIDCRedisCacheConnectTimeout 5
OIDCRedisCacheTimeout 5
RequestHeader set Authorization "Bearer %{OIDC_access_token}e"
OIDCClientID <myid>
OIDCProviderIssuer https://<myurl>
OIDCProviderAuthorizationEndpoint https://<myurl>/oauth/authorize
OIDCProviderTokenEndpoint "https://<myurl>/oauth/token"
OIDCProviderJwksUri "https://<myurl>/oauth/jwk"
OIDCOAuthVerifyJwksUri "https://<myurl>/oauth/jwk"
OIDCRedirectURI /openid-login
OIDCResponseType code
OIDCResponseMode query
OIDCProviderTokenEndpointAuth none
OIDCScope "openid flex-ui profile"
OIDCAuthRequestParams audience=<myurl>&prompt=none
OIDCSessionType client-cookie
OIDCCookie _pyxapsession
OIDCCookieDomain .<mydomain>
OIDCStripCookies <space separated list of cookies to strip>
OIDCCookiePath /
OIDCCryptoPassphrase <mypassphrase>
OIDCSessionInactivityTimeout 600
OIDCSessionMaxDuration 1800
OIDCPassIDTokenAs claims
OIDCBlackListedClaims jti aud iat iss nonce exp
OIDCWhiteListedClaims preferred_username sub
OIDCClaimPrefix OIDC-
OIDCPassClaimsAs environment
OIDCRemoteUserClaim http://<myurl>/sub
OIDCAuthNHeader <myheader>
AH00180: WARNING: MaxRequestWorkers of 768 exceeds ServerLimit value of
512 servers, decreasing MaxRequestWorkers to 512.
To increase, please see the ServerLimit directive.
Syntax OK
[root@extwsn2aw117 conf.d]# |
Beta Was this translation helpful? Give feedback.
-
if there's no activity there's no logging output; if you access the server and authenticate users the |
Beta Was this translation helpful? Give feedback.
-
using |
Beta Was this translation helpful? Give feedback.
-
Is there something special or unique to getting redis integration working? I believe i have it enabled, and yet, no errors, no debug logs, no attempted connections, nothing at all. Would appreciate some assistance and guidance? I've been up and down the forums and google and stackoverflow posts, and can't seem to figure out what i'm doing wrong
I hope I'm missing something obtuse, simple, or straightforward. I can't get logs or TCP connections showing it tried to connect, logs showing it failed, heck, even if my password were wrong, it won't tell me, or seemingly do anything at all?
Beta Was this translation helpful? Give feedback.
All reactions