diff options
author | Fraser Tweedale <ftweedal@redhat.com> | 2015-05-07 21:26:24 -0400 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2015-06-04 08:27:33 +0000 |
commit | c09bd35e7c081e968d40ecbd52177446f422d532 (patch) | |
tree | eb646bc28d8978d40c1866439d72e9c816d6d11c /ipaserver | |
parent | b24fe0eb733c68af4042cdd78fca6f609efe843b (diff) | |
download | freeipa-c09bd35e7c081e968d40ecbd52177446f422d532.tar.gz freeipa-c09bd35e7c081e968d40ecbd52177446f422d532.tar.xz freeipa-c09bd35e7c081e968d40ecbd52177446f422d532.zip |
Add generic split_any_principal method
There exist methods to split user or service/host principals, but
there is no method to split any kind of principal and allow the
caller to decide what to do.
Generalize ``ipalib.plugins.service.split_principal`` to return a
service of ``None`` if the principal is a user principal, rename it
``split_any_principal`` and reimplement ``split_principal`` to
preserve existing behaviour.
Part of: https://fedorahosted.org/freeipa/ticket/4938
Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipaserver')
0 files changed, 0 insertions, 0 deletions