summaryrefslogtreecommitdiff
path: root/src/providers/ipa
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers/ipa')
-rw-r--r--src/providers/ipa/ipa_init.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_init.c b/src/providers/ipa/ipa_init.c
index a6c32be2..cdca706d 100644
--- a/src/providers/ipa/ipa_init.c
+++ b/src/providers/ipa/ipa_init.c
@@ -110,6 +110,7 @@ int sssm_ipa_id_init(struct be_ctx *bectx,
struct ipa_id_ctx *ipa_ctx;
struct sdap_id_ctx *sdap_ctx;
struct stat stat_buf;
+ const char *hostname;
errno_t err;
int ret;
@@ -207,6 +208,15 @@ int sssm_ipa_id_init(struct be_ctx *bectx,
goto done;
}
+ /* setup SRV lookup plugin */
+ hostname = dp_opt_get_string(ipa_options->basic, IPA_HOSTNAME);
+ ret = be_fo_set_dns_srv_lookup_plugin(bectx, hostname);
+ if (ret != EOK) {
+ DEBUG(SSSDBG_CRIT_FAILURE, ("Unable to set SRV lookup plugin "
+ "[%d]: %s\n", ret, strerror(ret)));
+ goto done;
+ }
+
*ops = &ipa_id_ops;
*pvt_data = ipa_ctx;
ret = EOK;