I’m trying to deploy ondemand with OIDC/DEX/LDAP on RockyLinux 9. Using the ood-ansible role.
Apache fails to start up:
Nov 05 16:03:40 ff28d9-login-00.in.nvs.bmrc.ox.ac.uk httpd[11371]: AH00526: Syntax error on line 7 of /etc/httpd/conf.d/auth_openidc.conf:
Nov 05 16:03:40 ff28d9-login-00.in.nvs.bmrc.ox.ac.uk httpd[11371]: OIDCClientID takes one argument, Client identifier used in calls to OpenID Connect OP.
and yes, that file contains empty strings for the client id etc.
But the actual autogenerated DEX config is in /etc/httpd/conf.d/ood-portal.conf. And it appears that the above file is created by the dnf install of the apache OIDC module:
I would check line 7 of this file. Everything in it should be commented out - but I guess it’s not? I don’t know about it coming back when you bounce apache - that’s very odd.
No I think the problem is that the stuff I’ve got wrapping that role is setting ood_auth_openidc (to try to provide some sensible oidc defaults). But actually for DEX we shouldn’t set that, b/c the DEX config is autogenerated in ood-portal.conf and that variable doesn’t have a full OIDC conf. So I just need to untangle my logic here…