summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2015-07-22 14:29:35 +0200
committerTomas Babej <tbabej@redhat.com>2015-07-22 14:30:22 +0200
commitcf59981cc2c6bb13c286188aa27cb10a49ff4a5e (patch)
treed94aa256f0e2ac5a8a5fb806a5d89b2aafbffe3d
parent106e9043379231a8cebf76d5088927364d098112 (diff)
downloadfreeipa-cf59981cc2c6bb13c286188aa27cb10a49ff4a5e.zip
freeipa-cf59981cc2c6bb13c286188aa27cb10a49ff4a5e.tar.gz
freeipa-cf59981cc2c6bb13c286188aa27cb10a49ff4a5e.tar.xz
dcerpc: Fix UnboundLocalError for ccache_name
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
-rw-r--r--ipaserver/dcerpc.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipaserver/dcerpc.py b/ipaserver/dcerpc.py
index 6a1c179..7220c44 100644
--- a/ipaserver/dcerpc.py
+++ b/ipaserver/dcerpc.py
@@ -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'])