keycloak_user_federation: add user federation config parameter `referral` to module args (#8954)

* add keycloak referral parameter to module args

* add changelog fragment

* Update plugins/modules/keycloak_user_federation.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update changelogs/fragments/8954-keycloak-user-federation-add-referral-parameter.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
pull/9012/head
fgruenbauer 2024-10-07 22:13:14 +02:00 committed by GitHub
parent 24f2b980b7
commit c7e2875a4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,2 @@
minor_changes:
- keycloak_user_federation - add the user federation config parameter ``referral`` to the module arguments (https://github.com/ansible-collections/community.general/pull/8954).

View File

@ -442,6 +442,17 @@ options:
- Max lifespan of cache entry in milliseconds. - Max lifespan of cache entry in milliseconds.
type: int type: int
referral:
description:
- Specifies if LDAP referrals should be followed or ignored. Please note that enabling
referrals can slow down authentication as it allows the LDAP server to decide which other
LDAP servers to use. This could potentially include untrusted servers.
type: str
choices:
- ignore
- follow
version_added: 9.5.0
mappers: mappers:
description: description:
- A list of dicts defining mappers associated with this Identity Provider. - A list of dicts defining mappers associated with this Identity Provider.
@ -788,6 +799,7 @@ def main():
priority=dict(type='int', default=0), priority=dict(type='int', default=0),
rdnLDAPAttribute=dict(type='str'), rdnLDAPAttribute=dict(type='str'),
readTimeout=dict(type='int'), readTimeout=dict(type='int'),
referral=dict(type='str', choices=['ignore', 'follow']),
searchScope=dict(type='str', choices=['1', '2'], default='1'), searchScope=dict(type='str', choices=['1', '2'], default='1'),
serverPrincipal=dict(type='str'), serverPrincipal=dict(type='str'),
krbPrincipalAttribute=dict(type='str'), krbPrincipalAttribute=dict(type='str'),