Hello,
some time ago I activated 2FA for the group “Domain Admins” as described under 4. Configuration — Univention Keycloak app manual 26.3.1
$ univention-keycloak 2fa enable --group-2fa "Domain Admins"
As far as I remember that worked without problems.
Now I wanted to activate it for the group “Domain Users”:
$ univention-keycloak 2fa enable --group-2fa "Domain Users"
Then I get:
Enabling 2FA ...
Using KC_URL: https://sso.mydomain.de/
Group already exists
Group already exists
Deleted: 2fa-browser
Traceback (most recent call last):
File "/usr/sbin/univention-keycloak", line 3450, in <module>
sys.exit(main())
^^^^^^
File "/usr/sbin/univention-keycloak", line 3446, in main
return opt.func(opt) or 0
^^^^^^^^^^^^^
File "/usr/sbin/univention-keycloak", line 2705, in enable_2fa
create_conditional_2fa_flow(opt, kc_admin, opt.realm, realm_2fa_role, flow_name)
File "/usr/sbin/univention-keycloak", line 2940, in create_conditional_2fa_flow
kc_admin.create_authentication_flow_execution(payload=payload, flow_alias=master_subflow)
File "/usr/lib/python3/dist-packages/keycloak/keycloak_admin.py", line 3184, in create_authentication_flow_execution
return raise_error_from_response(data_raw, KeycloakPostError, expected_codes=[201])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/keycloak/exceptions.py", line 192, in raise_error_from_response
raise error(
Probably that’s not expected.
After this I can see that in the Keycloak console the group “Domain Users” has the entry “2FA role” in “Role Mappings”. But nevertheless, somehting seems to be broken.
Regards