mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Handle DAL ABI change in MIT 1.13
In this new MIT version the DAL interface changes slightly but KRB5_KDB_DAL_MAJOR_VERSION was not changed. Luckily KRB5_KDB_API_VERSION did change and that's enough to know what to compile in. Resolves: https://fedorahosted.org/freeipa/ticket/4861 Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
caf70a11b2
commit
6162426999
@ -182,10 +182,17 @@ krb5_error_code ipadb_put_principal(krb5_context kcontext,
|
||||
char **db_args);
|
||||
krb5_error_code ipadb_delete_principal(krb5_context kcontext,
|
||||
krb5_const_principal search_for);
|
||||
#if KRB5_KDB_API_VERSION < 8
|
||||
krb5_error_code ipadb_iterate(krb5_context kcontext,
|
||||
char *match_entry,
|
||||
int (*func)(krb5_pointer, krb5_db_entry *),
|
||||
krb5_pointer func_arg);
|
||||
#else
|
||||
krb5_error_code ipadb_iterate(krb5_context kcontext,
|
||||
char *match_entry,
|
||||
int (*func)(krb5_pointer, krb5_db_entry *),
|
||||
krb5_pointer func_arg, krb5_flags iterflags);
|
||||
#endif
|
||||
|
||||
/* POLICY FUNCTIONS */
|
||||
|
||||
|
@ -2111,10 +2111,17 @@ done:
|
||||
return kerr;
|
||||
}
|
||||
|
||||
#if KRB5_KDB_API_VERSION < 8
|
||||
krb5_error_code ipadb_iterate(krb5_context kcontext,
|
||||
char *match_entry,
|
||||
int (*func)(krb5_pointer, krb5_db_entry *),
|
||||
krb5_pointer func_arg)
|
||||
#else
|
||||
krb5_error_code ipadb_iterate(krb5_context kcontext,
|
||||
char *match_entry,
|
||||
int (*func)(krb5_pointer, krb5_db_entry *),
|
||||
krb5_pointer func_arg, krb5_flags iterflags)
|
||||
#endif
|
||||
{
|
||||
struct ipadb_context *ipactx;
|
||||
krb5_error_code kerr;
|
||||
|
Loading…
Reference in New Issue
Block a user