-
Notifications
You must be signed in to change notification settings - Fork 269
Support for ID Override Templates #7924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for ID Override Templates #7924
Conversation
|
Is it kind of "addition" to IPA-IPA trust support, and thus should go to sssd-2-9 as well? |
Yes, I added the label. |
85945ee to
c719017
Compare
|
Hi @justin-stephenson, |
c719017 to
a60320b
Compare
Updated. |
aplopez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't finished yet, but I already have two comments that I can share.
a60320b to
081dbcc
Compare
b8dc7d1 to
2c001ce
Compare
2c001ce to
1a4f2f8
Compare
aplopez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks.
|
Hi, I'm still fine with the current state, CI failures do not seem related. bye, |
25fdd71 to
a6501f4
Compare
Retrieve ID override templates on subdomain
initialization. When overrides are checked
during IPA lookups, check for fallback template
values.
:relnote: SSSD now checks for existence of ID override templates
in an IPA provider configuration. ID override templates
supports overriding loginShell and homeDirectory values
for trusted AD, or upcoming IPA-IPA trusted users. This
behavior is enabled by default.
a6501f4 to
520081c
Compare
|
Note: Covscan is green. |
|
All failed system tests are due to 'pylibsshext.errors.LibsshChannelException: Failed to open_session: [-2]' |
|
Pushed PR: #7924
|
Add support for ID override templates for Trusted AD/IPA users.
Testing this PR can be done with https://copr.fedorainfracloud.org/coprs/abbra/wip-ipa-trust/ which contains FreeIPA ID override templates code, and SSSD build with these code changes.
=====================
Add functionality for SSSD to apply domain templates and global templates as fallback override values to trusted IDM and AD users.
Templates are only assigned loginShell and/or homeDirectory attribute values. On the FreeIPA server, templates are added to ID views (Default trust view, or other) and will be used as fallback in ID override lookups. ID override templates can be set for user home directory(SSSD ‘override_homedir’ template syntax), or default login shell.
Two types of templates will exist, domain templates and global templates. Allow specifying a template entry for trusted domain users.
=====================
Domain template can be added with:
# ipa idoverrideuser-add 'example_for_c1' '*' --template ipa2demo.test --homedir /home/%d/%u-DOMAIN --shell /bin/kshGlobal template can be added with:
# ipa idoverrideuser-add 'example_for_c1' '*' --global-template --homedir /home/%d/%u-GLOBAL --shell /bin/csh