From 684191e61d891b1c34f3742a40d5a2ed6a1192dd Mon Sep 17 00:00:00 2001 From: Petr Cech Date: Jan 14 2016 17:28:48 +0000 Subject: KRB5: Adding DNS SRV lookup for krb5 provider This patch add DNS SRV lookup for krb5 provider. Resolves: https://fedorahosted.org/sssd/ticket/2888 Reviewed-by: Jakub Hrozek --- diff --git a/src/providers/krb5/krb5_init.c b/src/providers/krb5/krb5_init.c index f1c6310..4f36d90 100644 --- a/src/providers/krb5/krb5_init.c +++ b/src/providers/krb5/krb5_init.c @@ -169,6 +169,13 @@ int sssm_krb5_auth_init(struct be_ctx *bectx, } talloc_set_destructor((TALLOC_CTX *) ctx, krb5_ctx_re_destructor); + ret = be_fo_set_dns_srv_lookup_plugin(bectx, NULL); + if (ret != EOK) { + DEBUG(SSSDBG_CRIT_FAILURE, "Unable to set SRV lookup plugin " + "[%d]: %s\n", ret, sss_strerror(ret)); + goto fail; + } + *ops = &krb5_auth_ops; *pvt_auth_data = ctx; return EOK;