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

extdom: improve certificate request #644

Closed

Conversation

sumit-bose
Copy link
Contributor

@sumit-bose sumit-bose commented Mar 23, 2017

Certificates can be assigned to multiple user so the extdom plugin must use
sss_nss_getlistbycert() instead of sss_nss_getnamebycert() and return a
list of fully-qualified user names.

Due to issues on the SSSD side the current version of lookups by
certificates didn't work at all and the changes here won't break existing
clients.

Related to https://pagure.io/freeipa/issue/6646

Since I used the revers lookup for the domain separator in patch I added a
second patch which does this where needed in the reminder of the code as well
to be consistent. Allthough using @-signs in short names is not common practice
it might happen as can be see in https://pagure.io/SSSD/sssd/issue/3219.

The sss_nss_getlistbycert() call is added to SSSD in
SSSD/sssd#207.

@abbra
Copy link
Contributor

abbra commented Mar 23, 2017

LGTM. I read the code but since SSSD counterpart is currently on review, travis fails the build.

@ghost
Copy link

ghost commented Mar 28, 2017

Works for me.

@ghost ghost added the ack Pull Request approved, can be merged label Mar 28, 2017
To avoid issues which @-signs in the short user or group names it is
better to search for the domain separator starting at the end of the
fully-qualified name.
Certificates can be assigned to multiple user so the extdom plugin must
use sss_nss_getlistbycert() instead of sss_nss_getnamebycert() and
return a list of fully-qualified user names.

Due to issues on the SSSD side the current version of lookups by
certificates didn't work at all and the changes here won't break
existing clients.

Related to https://pagure.io/freeipa/issue/6826
@tkrizek
Copy link
Contributor

tkrizek commented Mar 28, 2017

master:

  • ee455f1 extdom: do reverse search for domain separator

  • 8960398 extdom: improve cert request
    ipa-4-5:

  • 8046f9b extdom: do reverse search for domain separator

  • a510a3d extdom: improve cert request

@tkrizek tkrizek added the pushed Pull Request has already been pushed label Mar 28, 2017
@tkrizek tkrizek closed this Mar 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
3 participants