jetty.project icon indicating copy to clipboard operation
jetty.project copied to clipboard

auth_to_local support in Spnego authentication

Open viktorsomogyi opened this issue 2 years ago • 2 comments
trafficstars

10.x, 11.x, 12.x

auth_to_local support in Spnego authentication

Currently ConfigurableSpnegoLoginService.toUserName just strips the realm part of the principal. Complex systems may require mapping principals to local users with MIT Kerberos's auth_to_local rules which is currently impossible to do in Jetty and that prevents us from a few use cases where Jetty hosted APIs are used by other processes.

However this configuration can be easily configured in krb5.conf, users may use other Kerberos implementations that may or may not implement a similar feature yet would want to use this mapping. Therefore some other projects like Hadoop has implemented it (here), so I think it'd make sense for Jetty as well to implement this.

viktorsomogyi avatar Aug 03 '23 09:08 viktorsomogyi

Also, as a very lightweight alternative, we'd be happy even if we could override toUserName to provide this functionality by subclassing ConfigurableSpnegoLoginService.

viktorsomogyi avatar Aug 03 '23 09:08 viktorsomogyi

This issue has been automatically marked as stale because it has been a full year without activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 03 '24 00:08 github-actions[bot]

This issue has been automatically marked as stale because it has been a full year without activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 04 '25 00:08 github-actions[bot]