diff options
author | Milan KubĂk <mkubik@redhat.com> | 2015-11-19 16:07:29 +0100 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2015-12-02 17:12:24 +0100 |
commit | 17f9ca154b47f1e21797d25435e25676fdca284c (patch) | |
tree | fd3f5b2976acd3ca0718c88dbbe35782982be2b6 /ipatests/util.py | |
parent | b8c619a7139bd7b65caa03b68431e22791ff19bf (diff) | |
download | freeipa-17f9ca154b47f1e21797d25435e25676fdca284c.tar.gz freeipa-17f9ca154b47f1e21797d25435e25676fdca284c.tar.xz freeipa-17f9ca154b47f1e21797d25435e25676fdca284c.zip |
Separated Tracker implementations into standalone package
The previous way of implementing trackers in the module with
the test caused circular imports. The separate package resolves
this issue.
https://fedorahosted.org/freeipa/ticket/5467
Reviewed-By: Ales 'alich' Marecek <amarecek@redhat.com>
Diffstat (limited to 'ipatests/util.py')
-rw-r--r-- | ipatests/util.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ipatests/util.py b/ipatests/util.py index c3c69816e..6aefe74d3 100644 --- a/ipatests/util.py +++ b/ipatests/util.py @@ -706,3 +706,9 @@ def change_principal(user, password, client=None, path=None): client.Backend.rpcclient.disconnect() client.Backend.rpcclient.connect() + +def get_group_dn(cn): + return DN(('cn', cn), api.env.container_group, api.env.basedn) + +def get_user_dn(uid): + return DN(('uid', uid), api.env.container_user, api.env.basedn) |