pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0025-dcerpc-Fix-UnboundLocalError-for-ccache_name.patch

590d18
From 45cbe4b94e59bcfa3d8968595a780bdb9f3af2f2 Mon Sep 17 00:00:00 2001
590d18
From: Tomas Babej <tbabej@redhat.com>
590d18
Date: Wed, 22 Jul 2015 14:29:35 +0200
590d18
Subject: [PATCH] dcerpc: Fix UnboundLocalError for ccache_name
590d18
590d18
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
590d18
---
590d18
 ipaserver/dcerpc.py | 2 ++
590d18
 1 file changed, 2 insertions(+)
590d18
590d18
diff --git a/ipaserver/dcerpc.py b/ipaserver/dcerpc.py
590d18
index 97f6c1694c20f26af0861b86a1ae1adf7a970a59..c0aa322c5d59e7d17a4ceb90448b397613284e38 100644
590d18
--- a/ipaserver/dcerpc.py
590d18
+++ b/ipaserver/dcerpc.py
590d18
@@ -644,6 +644,8 @@ class DomainValidator(object):
590d18
         Returns LDAP result or None.
590d18
         """
590d18
 
590d18
+        ccache_name = None
590d18
+
590d18
         if self._admin_creds:
590d18
             (ccache_name, principal) = self.kinit_as_administrator(info['dns_domain'])
590d18
 
590d18
-- 
590d18
2.4.3
590d18