[SSSD] [PATCH] Implement a reusable parse-name request

Jakub Hrozek jakub.hrozek at gmail.com
Mon Apr 21 21:32:05 UTC 2014


Hi,

the NSS and PAM responders copy quite a bit of code around for the
purpose of splitting an input string into name-domain components with
optionally firing a request to refresh subdomains.

I think the caller should not do all these chores, but instead just call
an opaque request that will decide whether to refresh subdomains or
whether to reuse the cached list. Instead of adding even more
duplication to the DBus responder, I've implemented such request, did a
minor cleanup (removing of the DP force flag) and added a bunch of unit
tests.

If these patches are accepted, I would like to convert the NSS and PAM
responder code for parsing input to this new request.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-RESPONDER-Fix-a-wrong-DEBUG-message.patch
Type: text/x-patch
Size: 1059 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20140421/4fc71f8f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-DP-Remove-unused-force-parameter-from-the-subdomain-.patch
Type: text/x-patch
Size: 5639 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20140421/4fc71f8f/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-TESTS-Create-a-default-sss_names_ctx-in-create_dom_t.patch
Type: text/x-patch
Size: 1880 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20140421/4fc71f8f/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-TESTS-Split-a-separate-common_mock_resp_dp-module.patch
Type: text/x-patch
Size: 5992 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20140421/4fc71f8f/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-RESPONDERS-Add-a-new-request-sss_parse_inp_send.patch
Type: text/x-patch
Size: 20854 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20140421/4fc71f8f/attachment-0004.bin>


More information about the sssd-devel mailing list