summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--daemons/ipa-kdb/tests/ipa_kdb_tests.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/daemons/ipa-kdb/tests/ipa_kdb_tests.c b/daemons/ipa-kdb/tests/ipa_kdb_tests.c
index ac541ad91..9d4e729c8 100644
--- a/daemons/ipa-kdb/tests/ipa_kdb_tests.c
+++ b/daemons/ipa-kdb/tests/ipa_kdb_tests.c
@@ -27,6 +27,7 @@
#include <stdint.h>
#include <setjmp.h>
#include <cmocka.h>
+#include <profile.h>
#include <talloc.h>
@@ -79,8 +80,13 @@ void setup(void **state)
krb5_error_code kerr;
struct ipadb_context *ipa_ctx;
struct test_ctx *test_ctx;
+ struct _profile_t *profile;
+ long perr;
- kerr = krb5_init_context(&krb5_ctx);
+ perr = profile_init(NULL, &profile);
+ assert_int_equal(perr, 0);
+
+ kerr = krb5_init_context_profile(profile, 0, &krb5_ctx);
assert_int_equal(kerr, 0);
kerr = krb5_db_setup_lib_handle(krb5_ctx);
assert_int_equal(kerr, 0);