dcerpc: Fix UnboundLocalError for ccache_name

Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Tomas Babej 2015-07-22 14:29:35 +02:00
parent 106e904337
commit cf59981cc2

View File

@ -644,6 +644,8 @@ class DomainValidator(object):
Returns LDAP result or None.
"""
ccache_name = None
if self._admin_creds:
(ccache_name, principal) = self.kinit_as_administrator(info['dns_domain'])