Skip to content

Conversation

@JKDingwall
Copy link

reference: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=860244

This branch adds a new configuration option to the appdefaults [pam] settings in krb5.conf called "mappings". This allows user names to be mapped to kerberos principals using regex rules and is comparable to the option by the same name available in the RHEL pam_krb5 implementation. This solves a problems for us where Samba's winbind does not work across one-way domain trusts but we wanted to allow REMOTEDOMAIN\user style user names.

At this point the test code is inline and there are no separate test cases so perhaps as it stands the branch could be considered a request for comment.

@rra
Copy link
Owner

rra commented Aug 12, 2017

Apologies for the long delay in giving you feedback on this. This looks like a reasonable thing to support to me, but I'd definitely want a good test suite to go with it before merging. I would probably eventually write that myself, but writing tests, as for alt_auth_map, would definitely speed up merging this patch.

Add support for writing regex based username -> principal mappings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants