I missed retrieving password/keytab status when doing a host-mod.
rob
>From 4c68bb2e8ccceb2c09967ccd82bbb77f34354615 Mon Sep 17 00:00:00 2001 From: Rob Crittenden <rcrit...@redhat.com> Date: Thu, 25 Aug 2011 09:24:47 -0400 Subject: [PATCH] Retrieve password/keytab state when modifying a host. ticket https://fedorahosted.org/freeipa/ticket/1714 --- ipalib/plugins/host.py | 1 + tests/test_xmlrpc/test_host_plugin.py | 2 ++ 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py index 6e9efec..0e7bebf 100644 --- a/ipalib/plugins/host.py +++ b/ipalib/plugins/host.py @@ -667,6 +667,7 @@ class host_mod(LDAPUpdate): if options.get('random', False): entry_attrs['randompassword'] = unicode(getattr(context, 'randompassword')) set_certificate_attrs(entry_attrs) + self.obj.get_password_attributes(ldap, dn, entry_attrs) if options.get('all', False): entry_attrs['managing'] = self.obj.get_managed_hosts(dn) diff --git a/tests/test_xmlrpc/test_host_plugin.py b/tests/test_xmlrpc/test_host_plugin.py index f774640..5e71370 100644 --- a/tests/test_xmlrpc/test_host_plugin.py +++ b/tests/test_xmlrpc/test_host_plugin.py @@ -255,6 +255,8 @@ class test_host(Declarative): md5_fingerprint=fuzzy_hash, sha1_fingerprint=fuzzy_hash, issuer=fuzzy_issuer, + has_keytab=False, + has_password=False, ), ), ), -- 1.7.4
_______________________________________________ Freeipa-devel mailing list Freeipa-devel@redhat.com https://www.redhat.com/mailman/listinfo/freeipa-devel