diff options
author | Petr Cech <pcech@redhat.com> | 2016-01-11 06:18:33 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2016-01-14 18:28:48 +0100 |
commit | 684191e61d891b1c34f3742a40d5a2ed6a1192dd (patch) | |
tree | e0cf8413489950ac557ce30fe40acbeb58ca7dec /src/providers/krb5 | |
parent | 5e532ad5c1326c68caa4914c43663677dabf03b3 (diff) | |
download | sssd-684191e61d891b1c34f3742a40d5a2ed6a1192dd.tar.gz sssd-684191e61d891b1c34f3742a40d5a2ed6a1192dd.tar.xz sssd-684191e61d891b1c34f3742a40d5a2ed6a1192dd.zip |
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 <jhrozek@redhat.com>
Diffstat (limited to 'src/providers/krb5')
-rw-r--r-- | src/providers/krb5/krb5_init.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/providers/krb5/krb5_init.c b/src/providers/krb5/krb5_init.c index f1c631076..4f36d905b 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; |