#6304 cert-find --certificate does not work for certificates not in LDAP
Closed: Fixed None Opened 7 years ago by jcholast.

With the --certificate option, cert-find should always return a result, but it currently doesn't if the provided certificate is not found in LDAP:

$ ipa cert-find --certificate=... --all
---------------------
1 certificate matched
---------------------
...
  Owner service: test/test.example.com@EXAMPLE.COM
----------------------------
Number of entries returned 1
----------------------------

$ ipa service-mod test/test.example.com --certificate=
-----------------------------------------------------------------------
Modified service "test/test.example.com@EXAMPLE.COM"
-----------------------------------------------------------------------
...

$ ipa cert-find --certificate=... --all
----------------------
0 certificates matched
----------------------
----------------------------
Number of entries returned 0
----------------------------

The second cert-find should return the same certificate as the first one.


master:

  • b7b6faf cert: fix cert-find --certificate when the cert is not in LDAP

ipa-4-4:

  • 5d4f7b7 cert: fix cert-find --certificate when the cert is not in LDAP

Metadata Update from @jcholast:
- Issue assigned to jcholast
- Issue set to the milestone: FreeIPA 4.4.2

7 years ago

Login to comment on this ticket.

Metadata