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: SSSD fails to store users if any of the requested attribute is… #7714

Closed

Conversation

aborah-sudo
Copy link
Contributor

… empty

SSSD fails to store users if any of the requested attribute is empty


assert client.tools.id("emp_user") is not None
assert client.tools.getent.group("Group_1") is not None
assert client.tools.getent.group("Group_2") is not None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not see a point in having/checking two groups there. Maybe the user should try to log in instead and the default/fallback home should be used as a check.

src/tests/system/tests/test_ldap.py Show resolved Hide resolved
2. Add a User
3. Create an Organizational Unit
4. Add Groups
5. Configure SSSD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you mean Start SSSD

@aborah-sudo aborah-sudo force-pushed the test_ldap__empty_attribute branch 2 times, most recently from 6280e6e to 969e1ad Compare November 25, 2024 06:40
1. Disable Syntax Checking
2. Add a User
3. Make home attribute of user empty
4. Create an Organizational Unit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where are you creating the organizational unit?

5. Add Groups
6. Start SSSD
:steps:
1. The user can be queried (id command)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/The user can be queried (id command)/User exists

6. Start SSSD
:steps:
1. The user can be queried (id command)
2. Groups are resolved properly using the getent group command
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/Groups are resolved properly using the getent group command/Groups are resolved

No need to explain how in the steps, just the what.

… empty

SSSD fails to store users if any of the requested attribute is empty
Copy link
Contributor

@ikerexxe ikerexxe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jakub-vavra-cz
Copy link
Contributor

Pushed PR: #7714

  • master
    • 6040510 - Tests: SSSD fails to store users if any of the requested attribute is empty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants