I’ve installed ondemand-2.0.20-1 and ondemand-dex-2.27.0-2 and have the dex section of /etc/ood/config/ood_portal.yml like this:
dex:
# # Default based on if ssl key for ood-portal-generator is defined
ssl: true
# # Only used if SSL is disabled
# http_port: "5556"
# # Only used if SSL is enabled
https_port: "5554"
# # tls_cert and tls_key take OnDemand configured values for ssl and copy keys to /etc/ood/dex maintaining file names
tls_cert: null
tls_key: null
storage_file: /etc/ood/dex/dex.db
grpc: null
expiry: null
# # Client ID, defaults to servername or FQDN
client_id: null
client_name: OnDemand
# # Client secret, value auto generated
# # A value that is a filesystem path can be used to store secret in a file
client_secret: /etc/ood/dex/ondemand.secret
# # The OnDemand redirectURI is auto-generated, this option allows adding additional URIs
client_redirect_uris: []
# # Additional Dex OIDC clients to configure
# static_clients: []
# # The following example is to configure OpenLDAP
# # Docs: https://github.com/dexidp/dex/blob/master/Documentation/connectors/ldap.md
connectors:
- type: ldap
id: ldap
name: LDAP
config:
host: it-hs-dc03.cshl.edu:636
insecureSkipVerify: false
bindDN: "CN=ldap authentication,OU=Service Accounts,OU=ITStaff,OU=Departments,OU=CSHLusers,DC=cshl,DC=edu"
bindPW: OMITTED
userSearch:
baseDN: OU=CSHLusers,DC=cshl,DC=edu
filter: "(objectClass=posixAccount)"
username: uid
idAttr: uid
emailAttr: mail
nameAttr: gecos
preferredUsernameAttr: uid
groupSearch:
baseDN: OU=CSHLgroups,DC=cshl,DC=edu
filter: "(objectClass=posixGroup)"
userMatchers:
- userAttr: DN
groupAttr: member
nameAttr: cn
I am getting an internal server error with the following in the log:
[Fri Mar 18 16:55:50.259555 2022] [auth_openidc:error] [pid 200603:tid 140224977958656] [client 143.48.116.14:52638] oidc_check_userid_openidc: configuration error: the authentication type is set to "openid-connect" but OIDCRedirectURI has not been set
Suggestions and help welcome!
Thanks