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: Add passkey test cases for following scenario #6965

Closed

Conversation

madhuriupadhye
Copy link
Contributor

Test cases are as follows:
7. Check offline authentication of a user with LDAP, IPA, AD and Samba
8. Fetch user from cache for LDAP, IPA, AD and Samba server
9. Check authentication of user when multiple keys added for same user with LDAP, IPA, AD and Samba server.
10. Check authentication of user when same key added for multiple user with LDAP, IPA, AD and Samba server.

@madhuriupadhye madhuriupadhye marked this pull request as draft September 29, 2023 15:53
@madhuriupadhye madhuriupadhye marked this pull request as ready for review October 1, 2023 05:48
@madhuriupadhye madhuriupadhye added the passkey Issues and PRs related to 'passkey' feature label Oct 1, 2023
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.

Why do you need to set cache_credentials and krb5_store_password_if_offline to true? Offline authentication should work without changing these options.

Copy link
Contributor

@spoore1 spoore1 left a comment

Choose a reason for hiding this comment

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

So far, just some minor things to start looking at. Overall it looks good.

@madhuriupadhye
Copy link
Contributor Author

Why do you need to set cache_credentials and krb5_store_password_if_offline to true? Offline authentication should work without changing these options.

I took reference from https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_authentication_and_authorization_in_rhel/assembly_additional-configuration-for-identity-and-authentication-providers_configuring-authentication-and-authorization-in-rhel for cache_credentials and offline_credentials_expiration

and

for krb5_store_password_if_offline https://sssd.io/design-pages/pam_conversation_for_otp.html, under section offline authentication.

@madhuriupadhye madhuriupadhye force-pushed the test_passkey_part3 branch 3 times, most recently from e83f26d to e709956 Compare October 10, 2023 07:16
@ikerexxe
Copy link
Contributor

I took reference from https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_authentication_and_authorization_in_rhel/assembly_additional-configuration-for-identity-and-authentication-providers_configuring-authentication-and-authorization-in-rhel for cache_credentials and offline_credentials_expiration

cache_credentials needs to be clarified so I opened #6989. offline_credentials_expiration is set to 0 which means no limit, so no need to set it.

for krb5_store_password_if_offline https://sssd.io/design-pages/pam_conversation_for_otp.html, under section offline authentication.

That's only valid for 2FA, and from the SSSD perspective this isn't 2FA. The pin (or fingerprint) that you are setting is handled by FIDO2. Therefore, it is not necessary to set this value either.

Copy link
Contributor

@spoore1 spoore1 left a comment

Choose a reason for hiding this comment

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

Quick review update. Small things like adding su to the descriptions to match other comments from #6727

@madhuriupadhye madhuriupadhye force-pushed the test_passkey_part3 branch 2 times, most recently from e709956 to 7c7e55d Compare November 27, 2023 09:00
Copy link
Contributor

@spoore1 spoore1 left a comment

Choose a reason for hiding this comment

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

Just one new question/comment.

@madhuriupadhye madhuriupadhye force-pushed the test_passkey_part3 branch 3 times, most recently from f450bc7 to ebf6a03 Compare December 1, 2023 16:15
Copy link
Contributor

@spoore1 spoore1 left a comment

Choose a reason for hiding this comment

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

Minor comments.

Copy link
Contributor

@spoore1 spoore1 left a comment

Choose a reason for hiding this comment

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

LGTM

@spoore1 spoore1 self-requested a review December 13, 2023 16:29
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.

Comments inline.

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! Good job

Copy link
Contributor

@justin-stephenson justin-stephenson left a comment

Choose a reason for hiding this comment

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

Ack, thank you Madhuri.

Copy link
Contributor

@spoore1 spoore1 left a comment

Choose a reason for hiding this comment

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

LGTM.

Test cases are as follows:
7.  Check offline authentication of a user with LDAP, IPA, AD and Samba
8.  Fetch user from cache for LDAP, IPA, AD and Samba server
9.  Check authentication of user when multiple keys added for same user with
    LDAP, IPA, AD and Samba server.
10. Check authentication of user when same key added for multiple user with
    LDAP, IPA, AD and Samba server.

Signed-off-by: Madhuri Upadhye <[email protected]>
@jakub-vavra-cz jakub-vavra-cz added Ready to push Ready to push and removed Ready to push Ready to push labels Jan 5, 2024
@jakub-vavra-cz
Copy link
Contributor

@pbrezina Could You please merge this? Due to binary data the merge script does not work there.

@pbrezina
Copy link
Member

pbrezina commented Jan 8, 2024

  • master
    • 173f311 - Tests: Add passkey test cases for following scenario
  • sssd-2-9
    • 80d5a34 - Tests: Add passkey test cases for following scenario

@pbrezina pbrezina closed this Jan 8, 2024
@pbrezina pbrezina added Pushed and removed Accepted labels Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
passkey Issues and PRs related to 'passkey' feature Pushed Tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants