mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-26 16:16:31 -06:00
ipa-kdb: do not depend on certauth_plugin.h
Related to https://pagure.io/freeipa/issue/4905 Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
parent
054f1bd78b
commit
0ba0c07813
@ -231,6 +231,8 @@ dnl ---------------------------------------------------------------------------
|
||||
AM_CONDITIONAL([BUILD_IPA_CERTAUTH_PLUGIN],
|
||||
[test x$have_certauth_plugin = xyes -a x"$SSSCERTMAP_LIBS" != x])
|
||||
AM_COND_IF([BUILD_IPA_CERTAUTH_PLUGIN], [
|
||||
AC_DEFINE([HAVE_KRB5_CERTAUTH_PLUGIN], [1],
|
||||
[MIT Kerberos version supports certauth plugin])
|
||||
AM_COND_IF([ENABLE_SERVER],
|
||||
[AC_MSG_NOTICE([Build IPA KDB certauth plugin])],
|
||||
[AC_MSG_WARN([Cannot build IPA KDB certauth plugin])])
|
||||
|
@ -67,7 +67,9 @@ static void ipadb_context_free(krb5_context kcontext,
|
||||
}
|
||||
free(cfg->authz_data);
|
||||
|
||||
#ifdef HAVE_KRB5_CERTAUTH_PLUGIN
|
||||
ipa_certauth_free_moddata(&((*ctx)->certauth_moddata));
|
||||
#endif
|
||||
|
||||
free(*ctx);
|
||||
*ctx = NULL;
|
||||
|
@ -30,6 +30,8 @@
|
||||
* filtering purposes */
|
||||
#define SECURID 1
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <kdb.h>
|
||||
#include <ldap.h>
|
||||
@ -40,7 +42,9 @@
|
||||
#include <arpa/inet.h>
|
||||
#include <endian.h>
|
||||
#include <unistd.h>
|
||||
#ifdef HAVE_KRB5_CERTAUTH_PLUGIN
|
||||
#include <krb5/certauth_plugin.h>
|
||||
#endif
|
||||
|
||||
#include "ipa_krb5.h"
|
||||
#include "ipa_pwd.h"
|
||||
@ -112,7 +116,9 @@ struct ipadb_context {
|
||||
krb5_key_salt_tuple *def_encs;
|
||||
int n_def_encs;
|
||||
struct ipadb_mspac *mspac;
|
||||
#ifdef HAVE_KRB5_CERTAUTH_PLUGIN
|
||||
krb5_certauth_moddata certauth_moddata;
|
||||
#endif
|
||||
|
||||
/* Don't access this directly, use ipadb_get_global_config(). */
|
||||
struct ipadb_global_config config;
|
||||
@ -334,5 +340,7 @@ int ipadb_get_enc_salt_types(struct ipadb_context *ipactx, LDAPMessage *entry,
|
||||
char *attr, krb5_key_salt_tuple **enc_salt_types,
|
||||
int *n_enc_salt_types);
|
||||
|
||||
#ifdef HAVE_KRB5_CERTAUTH_PLUGIN
|
||||
/* CERTAUTH PLUGIN */
|
||||
void ipa_certauth_free_moddata(krb5_certauth_moddata *moddata);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user