summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/installutils.py
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2013-07-17 15:55:36 +0200
committerAlexander Bokovoy <abokovoy@redhat.com>2013-07-23 16:24:33 +0300
commit17c7d46c254de8301a1c328155d245631d5c03e4 (patch)
tree03bf7d5b8c970f6d353c5a082eb992dc969c7c9d /ipaserver/install/installutils.py
parent84b2269589c115cae2d2bcec32fec602143fc42e (diff)
downloadfreeipa.git-17c7d46c254de8301a1c328155d245631d5c03e4.tar.gz
freeipa.git-17c7d46c254de8301a1c328155d245631d5c03e4.tar.xz
freeipa.git-17c7d46c254de8301a1c328155d245631d5c03e4.zip
Use AD LDAP probing to create trusted domain ID range
When creating a trusted domain ID range, probe AD DC to get information about ID space leveraged by POSIX users already defined in AD, and create an ID range with according parameters. For more details: http://www.freeipa.org/page/V3/Use_posix_attributes_defined_in_AD https://fedorahosted.org/freeipa/ticket/3649
Diffstat (limited to 'ipaserver/install/installutils.py')
-rw-r--r--ipaserver/install/installutils.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py
index d23f9b57..e6f50a52 100644
--- a/ipaserver/install/installutils.py
+++ b/ipaserver/install/installutils.py
@@ -766,10 +766,11 @@ def check_pkcs12(pkcs12_info, ca_file, hostname):
@contextmanager
-def private_ccache():
+def private_ccache(path=None):
- (desc, path) = tempfile.mkstemp(prefix='krbcc')
- os.close(desc)
+ if path is None:
+ (desc, path) = tempfile.mkstemp(prefix='krbcc')
+ os.close(desc)
original_value = os.environ.get('KRB5CCNAME', None)