diff options
author | Rob Crittenden <rcritten@redhat.com> | 2010-08-05 22:41:32 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-08-16 17:13:56 -0400 |
commit | 2f4f9054aac8bef83272d690a4868653a3a5bd0d (patch) | |
tree | aa1ef1ff947f002337e32dda202c8135c1eeaad9 /tests/test_xmlrpc/test_host_plugin.py | |
parent | 81ae7c3a605ba13c6479c7bccc44190228f8ed07 (diff) | |
download | freeipa-2f4f9054aac8bef83272d690a4868653a3a5bd0d.tar.gz freeipa-2f4f9054aac8bef83272d690a4868653a3a5bd0d.tar.xz freeipa-2f4f9054aac8bef83272d690a4868653a3a5bd0d.zip |
Enable a host to retrieve a keytab for all its services.
Using the host service principal one should be able to retrieve a keytab
for other services for the host using ipa-getkeytab. This required a number
of changes:
- allow hosts in the service's managedby to write krbPrincipalKey
- automatically add the host to managedby when a service is created
- fix ipa-getkeytab to return the entire prinicpal and not just the
first data element. It was returning "host" from the service tgt
and not host/ipa.example.com
- fix the display of the managedby attribute in the service plugin
This led to a number of changes in the service unit tests. I took the
opportunity to switch to the Declarative scheme and tripled the number
of tests we were doing. This shed some light on a few bugs in the plugin:
- if a service had a bad usercertificate it was impossible to delete the
service. I made it a bit more flexible.
- I added a summary for the mod and find commands
- has_keytab wasn't being set in the find output
ticket 68
Diffstat (limited to 'tests/test_xmlrpc/test_host_plugin.py')
-rw-r--r-- | tests/test_xmlrpc/test_host_plugin.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_xmlrpc/test_host_plugin.py b/tests/test_xmlrpc/test_host_plugin.py index 8c2224b5..6a07763c 100644 --- a/tests/test_xmlrpc/test_host_plugin.py +++ b/tests/test_xmlrpc/test_host_plugin.py @@ -300,6 +300,7 @@ class test_host(Declarative): dn=service1dn, krbprincipalname=[service1], objectclass=objectclasses.service, + managedby_host=[fqdn1], ipauniqueid=[fuzzy_uuid], ), ), @@ -321,7 +322,7 @@ class test_host(Declarative): expected=dict( count=0, truncated=False, - summary=None, + summary=u'0 services matched', result=[ ], ), |