From 1e1985b17c3988056bef045fa84a9c7aaf0c4c65 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Mon, 12 Jul 2010 17:45:06 -0400 Subject: Add API to delete a service principal key, service-disable. I have to do some pretty low-level LDAP work to achieve this. Since we can't read the key using our modlist generator won't work and lots of tricks would be needed to use the LDAPUpdate object in any case. I pulled usercertificate out of the global params and put into each appropriate function because it makes no sense for service-disable. This also adds a new variable, has_keytab, to service/host_show output. This flag tells us whether there is a krbprincipalkey. --- tests/test_xmlrpc/xmlrpc_test.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/test_xmlrpc/xmlrpc_test.py') diff --git a/tests/test_xmlrpc/xmlrpc_test.py b/tests/test_xmlrpc/xmlrpc_test.py index 61fca50aa..1966edf93 100644 --- a/tests/test_xmlrpc/xmlrpc_test.py +++ b/tests/test_xmlrpc/xmlrpc_test.py @@ -46,6 +46,8 @@ try: res = api.Command['user_show'](u'notfound') except errors.NetworkError: server_available = False +except IOError: + server_available = False except errors.NotFound: server_available = True -- cgit