Skip to content
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

feat: add ad_integration_preserve_authselect_profile #79

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,13 @@ ad_integration_sssd_custom_settings:
value: "configuration_value"
```

#### ad_integration_preserve_authselect_profile

This is a boolean, default is `false`. If `true`, configure realmd.conf to
remove the `authselect` command from `sssd-enable-logins` to avoid overwriting
previous PAM/nsswitch changes, until
[RHEL-5101](https://issues.redhat.com/browse/RHEL-5101) is addressed.

## Example Playbook

The following is an example playbook to setup direct Active Directory integration with AD domain `domain.example.com`, the join will be performed with user Administrator using the vault stored password. Prior to the join, the crypto policy for AD SUPPORT with RC4 encryption allowed will be set.
Expand Down
5 changes: 5 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,8 @@ ad_integration_sssd_settings: []
# - key: "configuration_name"
# value: "configuration_value"
ad_integration_sssd_custom_settings: []

# If `true`, configure realmd.conf to remove the `authselect` command from
# `sssd-enable-logins` to avoid overwriting previous PAM/nsswitch changes, until
# https://issues.redhat.com/browse/RHEL-5101 is addressed.
ad_integration_preserve_authselect_profile: false
5 changes: 5 additions & 0 deletions templates/realmd.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ automatic-id-mapping = {{ ad_integration_auto_id_mapping }}
{% if ad_integration_computer_ou %}
computer-ou = {{ ad_integration_computer_ou }}
{% endif %}
{% if ad_integration_preserve_authselect_profile %}
[commands]
sssd-enable-logins = /usr/bin/sh -c "/usr/bin/systemctl enable oddjobd.service && /usr/bin/systemctl start oddjobd.service"
sssd-disable-logins = /bin/true
{% endif %}