summaryrefslogtreecommitdiff
path: root/src/providers/ipa
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-05-07 15:28:21 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-05-07 17:14:32 -0400
commitf3c31d11bf365eb6a79c4f698667915a4c81eeb7 (patch)
treec7443184225480b4c4889bde3db11f5fba4150f6 /src/providers/ipa
parent67607dda05e36c4d0be4647160ad376b89d89c51 (diff)
downloadsssd-f3c31d11bf365eb6a79c4f698667915a4c81eeb7.tar.gz
sssd-f3c31d11bf365eb6a79c4f698667915a4c81eeb7.tar.bz2
sssd-f3c31d11bf365eb6a79c4f698667915a4c81eeb7.zip
Create kdcinfo and kpasswdinfo file at startup
Diffstat (limited to 'src/providers/ipa')
-rw-r--r--src/providers/ipa/ipa_common.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_common.c b/src/providers/ipa/ipa_common.c
index bed0666b..7d457b7d 100644
--- a/src/providers/ipa/ipa_common.c
+++ b/src/providers/ipa/ipa_common.c
@@ -486,6 +486,7 @@ int ipa_service_init(TALLOC_CTX *memctx, struct be_ctx *ctx,
char *realm;
int ret;
int i;
+ struct tevent_req *req;
tmp_ctx = talloc_new(memctx);
if (!tmp_ctx) {
@@ -564,6 +565,14 @@ int ipa_service_init(TALLOC_CTX *memctx, struct be_ctx *ctx,
goto done;
}
+ req = be_resolve_server_send(memctx, ctx->ev, ctx, "IPA");
+ if (req == NULL) {
+ DEBUG(1, ("be_resolve_server_send failed.\n"));
+ ret = ENOMEM;
+ goto done;
+ }
+ tevent_req_set_callback(req, krb5_init_resolve_done, service->krb5_service);
+
ret = EOK;
done: