| 1 |
Foreman |
| 2 |
======= |
| 3 |
|
| 4 |
|image0| |
| 5 |
|
| 6 |
|
| 7 |
Presentation |
| 8 |
------------ |
| 9 |
|
| 10 |
`Foreman <https://theforeman.org/>`__ is a complete lifecycle management tool |
| 11 |
for physical and virtual servers. |
| 12 |
|
| 13 |
|
| 14 |
LemonLDAP::NG |
| 15 |
------------- |
| 16 |
|
| 17 |
Enable the :doc:`OpenID Connect Issuer <../idpopenidconnect>`. |
| 18 |
|
| 19 |
Create an OpenID Connect Relying Party with the following paramaters :: |
| 20 |
|
| 21 |
"oidcRPMetaDataOptionsAccessTokenClaims" : 1, |
| 22 |
"oidcRPMetaDataOptionsAccessTokenJWT" : 1, |
| 23 |
"oidcRPMetaDataOptionsAccessTokenSignAlg" : "RS256", |
| 24 |
"oidcRPMetaDataOptionsClientID" : "rp-foreman", |
| 25 |
"oidcRPMetaDataOptionsClientSecret" : "Cl13nt_S3cr3t", |
| 26 |
"oidcRPMetaDataOptionsIDTokenSignAlg" : "RS256", |
| 27 |
"oidcRPMetaDataOptionsPostLogoutRedirectUris" : "https://foreman.example.com/users/extlogin/redirect_uri", |
| 28 |
"oidcRPMetaDataOptionsRedirectUris" : "https://foreman.example.com/users/extlogin/redirect_uri", |
| 29 |
|
| 30 |
|
| 31 |
Foreman |
| 32 |
------- |
| 33 |
|
| 34 |
Install `mod_auth_openidc <https://www.mod-auth-openidc.org/>`. |
| 35 |
|
| 36 |
|
| 37 |
httpd mod_auth_openidc parameters :: |
| 38 |
|
| 39 |
OIDCCryptoPassphrase changeme |
| 40 |
OIDCRedirectURI https://theforeman.example.com/users/extogin/redirect_uri |
| 41 |
OIDCProviderMetadataURL https://auth.example.com/.well-known/openid-configuration |
| 42 |
# Client ID and client secret from LemonLDAP::NG configuration |
| 43 |
OIDCClientID rp-foreman |
| 44 |
OIDCClientSecret Cl13nt_S3cr3t |
| 45 |
|
| 46 |
Add a new location for Foreman :: |
| 47 |
|
| 48 |
<Location /users/extlogin> |
| 49 |
AuthType openid-connect |
| 50 |
Require valid-user |
| 51 |
</Location> |
| 52 |
|
| 53 |
Tweak The Foreman settings in Auth tab :: |
| 54 |
|
| 55 |
OIDC Issuer: https://auth.example.com |
| 56 |
OIDC JWKS URL: https://auth.example.com/oauth2/jwks |
| 57 |
OIDC Algorithm: RS256 |
| 58 |
OIDC Audience : rp-foreman |
| 59 |
|
| 60 |
|
| 61 |
.. |image0| image:: /applications/foremanhelmet.svg |
| 62 |
:class: align-center |
| 63 |
|