Skip to content

PAM: use PKCS#11 URIs to restrict certificate selection#671

Closed
sumit-bose wants to merge 10 commits intoSSSD:masterfrom
sumit-bose:pam_p11_uri
Closed

PAM: use PKCS#11 URIs to restrict certificate selection#671
sumit-bose wants to merge 10 commits intoSSSD:masterfrom
sumit-bose:pam_p11_uri

Conversation

@sumit-bose
Copy link
Contributor

With the new option 'p11_uri' to the PAM responder can be used to restrict the
selection of certificates in p11_child with the help of a PKCS#11 URI.

The implementation of for the NSS version of p11_child is not available in this
PR. As you can see in the first patch the support for PKCS#11 URIs in NSS is
limited and I have to talk to NSS developers first if this will change of if it
would make more sense to use the PKCS#11 URI calls form libp11kit for the NSS
version as well.

To avoid rebase issues this PR is already on top of PR#668.

Related to https://pagure.io/SSSD/sssd/issue/3814

The --wait_for_card option will let the p11_child wait until a
Smartcard/token is available in a slot with the removable flag.

Related to  https://pagure.io/SSSD/sssd/issue/3650
If the --wait_for_card is used to call p11_child the PAM responder
should be prepared to wait longer until p11_child can return
successfully.

Related to https://pagure.io/SSSD/sssd/issue/3650
To allow the PAM responder to act on the config flags set for pam_sss
the flags have to be made public first.

Related to https://pagure.io/SSSD/sssd/issue/3650
With this new option pam_sss can be configured to only do Smartcard
authentication or return an error if this is not possible.

Related to https://pagure.io/SSSD/sssd/issue/3650
With this new option pam_sss will wait until a Smartcard is available
and then try to authenticate with the help of the Smartcard.

Related https://pagure.io/SSSD/sssd/issue/3650
Integration test for the new try_cert_auth and require_cert_auth option
for pam_sss.

Related to https://pagure.io/SSSD/sssd/issue/3650
The patch only adds debug messages where the PKCS#11 URI of the selected
certificates is shown. The output should help to create suitable URIs to
restrict the selection.

Related to https://pagure.io/SSSD/sssd/issue/3814
p11_child gets a new option to restrict the selection of certificates
with the help of a PKCS#11 URI.

Related to https://pagure.io/SSSD/sssd/issue/3814
This patch adds a new option 'p11_uri' to the PAM responder to restrict
the selection of certificates in p11_child with the help of a PKCS#11
URI.

Related to https://pagure.io/SSSD/sssd/issue/3814
New PAM responder unit test to test the selection of certificates with
the help of PKCS#11 URIs. For this a new SoftHSM2 configuration with 2
slots is created. The new tests will try to access the certificates
stored in the slot individually.

Related to https://pagure.io/SSSD/sssd/issue/3814
@jhrozek
Copy link
Contributor

jhrozek commented Oct 9, 2018

retest this please

@jhrozek
Copy link
Contributor

jhrozek commented Oct 10, 2018

All these patches were added to PR #668 so we can close this one as superseded, right? (I would prefer to close this one because #668 has already the whole conversation)

@jhrozek jhrozek self-assigned this Oct 10, 2018
@sumit-bose
Copy link
Contributor Author

Ok, let's track it in #668.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants