summaryrefslogtreecommitdiffstats
path: root/install/certmonger
diff options
context:
space:
mode:
authorFlorence Blanc-Renaud <flo@redhat.com>2016-11-08 09:02:57 +0100
committerDavid Kupka <dkupka@redhat.com>2016-11-10 14:15:57 +0100
commit7462adec13c5b25b6868d2863dc38062c97d0ff7 (patch)
tree2dfea2e3d02954bb02a305c7f5018731c68b0658 /install/certmonger
parent2775042787be4ea236c0b99dd75337414e24b89d (diff)
downloadfreeipa-7462adec13c5b25b6868d2863dc38062c97d0ff7.tar.gz
freeipa-7462adec13c5b25b6868d2863dc38062c97d0ff7.tar.xz
freeipa-7462adec13c5b25b6868d2863dc38062c97d0ff7.zip
Use autobind instead of host keytab authentication in dogtag-ipa-ca-renew-agent
This commit makes sure that dogtag-ipa-ca-renew-agent CA helper can be used before Kerberos is configured. Reviewed-By: Jan Cholasta <jcholast@redhat.com> Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
Diffstat (limited to 'install/certmonger')
-rwxr-xr-xinstall/certmonger/dogtag-ipa-ca-renew-agent-submit7
1 files changed, 1 insertions, 6 deletions
diff --git a/install/certmonger/dogtag-ipa-ca-renew-agent-submit b/install/certmonger/dogtag-ipa-ca-renew-agent-submit
index 41f7a62b1..e98dd53f5 100755
--- a/install/certmonger/dogtag-ipa-ca-renew-agent-submit
+++ b/install/certmonger/dogtag-ipa-ca-renew-agent-submit
@@ -113,7 +113,7 @@ def ldap_connect():
conn = None
try:
conn = ldap2(api)
- conn.connect(ccache=os.environ['KRB5CCNAME'])
+ conn.connect(autobind=True)
yield conn
finally:
if conn is not None and conn.isconnected():
@@ -505,11 +505,6 @@ def main():
tmpdir = tempfile.mkdtemp(prefix="tmp-")
certs.renewal_lock.acquire()
try:
- principal = str('host/%s@%s' % (api.env.host, api.env.realm))
- ccache_filename = os.path.join(tmpdir, 'ccache')
- os.environ['KRB5CCNAME'] = ccache_filename
- ipautil.kinit_keytab(principal, paths.KRB5_KEYTAB, ccache_filename)
-
profile = os.environ.get('CERTMONGER_CA_PROFILE')
if profile:
handler = handlers.get(profile, request_and_store_cert)