URL:
https://github.com/freeipa/freeipa/pull/812
Author: felipevolpone
Title: #812: Refactoring cert-find to use API call directly instead of using
Action: opened
PR body:
"""
Refactoring cert-find to use API calls directly instead of using raw LDAP search.
Upstream ticket:
https://pagure.io/freeipa/issue/6948
I removed the raw LDAP search and used the API directly. In the old code, the call `
self.obj._owners()` returns `service, hots and user`. However, when testing the code, only
the service was being used, so I made it only use the service API.
If there another scenario where `user and host` are used, I thought to do something
like:
```python
for owner in self.obj._owners():
api_name = owner.name
response = api.Command[api_name+'_find'](options[api_name])
... # continues
```
Is that correct?
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/812/head:pr812
git checkout pr812