Bug 56474 - Make subnet filtering configurable for Kerberos-Auth in Keycloak
Make subnet filtering configurable for Kerberos-Auth in Keycloak
Status: NEW
Product: UCS
Classification: Unclassified
Component: Keycloak
UCS 4.4
Other Mac OS X 10.1
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on: 49485
Blocks: 50533
  Show dependency treegraph
 
Reported: 2023-08-22 21:53 CEST by Julia Bremer
Modified: 2024-02-22 17:18 CET (History)
8 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.091
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2024020621000268, 2024021521000134, 2024020621000268
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julia Bremer univentionstaff 2023-08-22 21:53:57 CEST
+++ This bug was initially created as a clone of Bug #49485 +++

When Kerberos authentication is configured in Keycloak, it will fall back to password authentication if no kerberos ticket is presented by the browser.

When being on an unjoined Windows client on chrome or edge, a popup asking for credentials will be shown. When clicking cancel, the fallback login page for single sign-can be accessed.
This can be annoying to customers.

In simplesamlphp this was configurable by the UCR variable/the simpleSAMLphp setting `saml/idp/negotiate/filter-subnets`

Keycloak doesn't have such a setting to remove certain IPs from the Kerberos authentication. 
But it can be archieved using an apache2 configuration in univention-keycloak.conf that removes the www-authenticate header from the request if it comes from a certain IP.

In a project, the following was configured in the
/var/lib/univention-appcenter/apps/keycloak/data/local-univention-keycloak.conf

<If “%{REMOTE_ADDR} -ipmatch ‘10.200.21.0/24’”>
Header unset WWW-Authenticate


If this should be part of the product, we should make this configurable via a setting
Comment 1 Christina Scheinig univentionstaff 2024-02-06 15:53:26 CET
An other customer needs that 2024020621000268
Comment 3 Finn David univentionstaff 2024-02-19 16:45:36 CET
Another customer that needs to disable kerberos authentication or apply the workaround: 2024021521000134