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

Fix sssd service enabled test scenarios #12862

Merged
merged 2 commits into from
Jan 21, 2025
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
2 changes: 1 addition & 1 deletion linux_os/guide/services/sssd/service_sssd_enabled/rule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ warnings:
- general:
The service requires a valid sssd configuration. If the configuration is
not present, the service will fail to start and consequently this rule
will will be reported as failing. The configuration shipped in your
will be reported as failing. The configuration shipped in your
distribution package might not be sufficient. Manual modification of
configuration files might be required.
15 changes: 15 additions & 0 deletions linux_os/guide/services/sssd/service_sssd_enabled/tests/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,30 @@ services = nss, pam
domains = example.com

[domain/example.com]
{{%- if ('rhel' in product or 'ol' in families) and product not in ['ol8', 'ol9', 'rhel8', 'rhel9']%}}
id_provider = proxy
proxy_lib_name = files
local_auth_policy = only
{{%- else %}}
id_provider = files
access_provider = simple
simple_allow_users = user1, user2
{{%- endif %}}

[nss]
filter_groups = root
filter_users = root

[pam]
{{%- if ('rhel' in product or 'ol' in families) and product not in ['ol8', 'ol9', 'rhel8', 'rhel9']%}}
pam_cert_auth = True
{{%- endif %}}
EOF
{{%- if ('rhel' in product or 'ol' in families) and product not in ['ol8', 'ol9', 'rhel8', 'rhel9']%}}
dnf install sssd-proxy -y
authselect select sssd with-smartcard
chmod 0640 /etc/sssd/sssd.conf
{{%- else %}}
chmod 0600 /etc/sssd/sssd.conf
{{%- endif %}}
fi
Loading