Skip to content

Commit

Permalink
feat: add ad_integration_preserve_authselect_profile (#79)
Browse files Browse the repository at this point in the history
Feature: Add ad_integration_preserve_authselect_profile as a boolean
parameter.

Reason: Users need to be able 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.

Result: Users can use the ad_integration role with PAM/nsswitch changes.

Signed-off-by: Rich Megginson <[email protected]>

Signed-off-by: Rich Megginson <[email protected]>
  • Loading branch information
richm authored Jan 16, 2024
1 parent c1085b0 commit 575882d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
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 %}

0 comments on commit 575882d

Please sign in to comment.