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

tests: updating gpo test case to test all auto_private_group values #7524

Closed
wants to merge 1 commit into from
Closed
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
13 changes: 8 additions & 5 deletions src/tests/system/tests/test_gpo.py
Original file line number Diff line number Diff line change
Expand Up @@ -982,17 +982,20 @@ def test_gpo__finds_all_groups_when_auto_private_groups_is_set_true(client: Clie

@pytest.mark.importance("critical")
@pytest.mark.parametrize("method", ["ssh", "su"])
@pytest.mark.parametrize("auto_private_groups", ["true", "false", "hybrid"])
@pytest.mark.topology(KnownTopology.AD)
@pytest.mark.ticket(gh=7452)
def test_gpo__works_when_auto_private_group_is_true_using_posix_accounts(client: Client, ad: AD, method: str):
def test_gpo__works_when_auto_private_group_is_used_with_posix_accounts(
client: Client, ad: AD, method: str, auto_private_groups: str
):
"""
:title: GPO evaluation fails when auto_private_groups is set to true and ldap_id_mapping is disabled
:title: GPO evaluation fails when auto_private_groups used with posix accounts
:setup:
1. Create the following user 'user1' and 'deny_user1' with uids and gids
2. Create and link the GPO 'site policy' and add 'user1' and 'Domain Admins' to
SeInteractiveLogonRight key. Add 'deny_user1 to SeDenyInteractiveLogonRight key'
3. Configure sssd.conf with 'ad_gpo_access_control = enforcing', 'auto_private_groups = true' and
'ldap_id_mapping = false'
3. Configure sssd.conf with 'ad_gpo_access_control = enforcing',
'auto_private_groups = parameter' and 'ldap_id_mapping = false'
4. Start SSSD
:steps:
1. Authenticate as 'user1'
Expand All @@ -1013,7 +1016,7 @@ def test_gpo__works_when_auto_private_group_is_true_using_posix_accounts(client:
).link()

client.sssd.domain["ad_gpo_access_control"] = "enforcing"
client.sssd.domain["auto_private_groups"] = "true"
client.sssd.domain["auto_private_groups"] = auto_private_groups
client.sssd.domain["ldap_id_mapping"] = "false"
client.sssd.start()

Expand Down
Loading