From: Grégory Oestreicher Date: Wed, 14 Sep 2016 20:55:16 +0000 (+0200) Subject: Export KRB5CCNAME from the ldap backend X-Git-Tag: rec-4.1.0-alpha1~170^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=216f1639f129a623308462e79fd93c6ef1bd3ef0;p=thirdparty%2Fpdns.git Export KRB5CCNAME from the ldap backend --- diff --git a/modules/ldapbackend/ldapbackend.cc b/modules/ldapbackend/ldapbackend.cc index f529d90115..905193767c 100644 --- a/modules/ldapbackend/ldapbackend.cc +++ b/modules/ldapbackend/ldapbackend.cc @@ -26,6 +26,7 @@ #include "exceptions.hh" #include "ldapauthenticator_p.hh" #include "ldapbackend.hh" +#include unsigned int ldap_host_index = 0; @@ -85,6 +86,7 @@ LdapBackend::LdapBackend( const string &suffix ) string bindmethod = getArg( "bindmethod" ); if ( bindmethod == "gssapi" ) { + setenv( "KRB5CCNAME", getArg( "krb5-ccache" ).c_str(), 1 ); m_authenticator = new LdapGssapiAuthenticator( getArg( "krb5-keytab" ), getArg( "krb5-ccache" ), getArgAsNum( "timeout" ) ); } else {