ac7d03
From 6c76be7f9d5c25d940b026310e2efec3d46b5d23 Mon Sep 17 00:00:00 2001
ac7d03
From: Alexander Bokovoy <abokovoy@redhat.com>
ac7d03
Date: Wed, 29 Mar 2017 10:43:11 +0300
ac7d03
Subject: [PATCH] server: make sure we test for sss_nss_getlistbycert
ac7d03
ac7d03
Fixes https://pagure.io/freeipa/issue/6828
ac7d03
ac7d03
Reviewed-By: Christian Heimes <cheimes@redhat.com>
ac7d03
Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
ac7d03
---
ac7d03
 server.m4 | 5 +++++
ac7d03
 1 file changed, 5 insertions(+)
ac7d03
ac7d03
diff --git a/server.m4 b/server.m4
ac7d03
index 5d5333e194cb339d31576f54a70d96becadf9a87..346d73e906c5d0499e46fcc4da070007b2ff5973 100644
ac7d03
--- a/server.m4
ac7d03
+++ b/server.m4
ac7d03
@@ -29,6 +29,11 @@ DIRSRV_CFLAGS="$DIRSRV_CFLAGS $NSPR_CFLAGS"
ac7d03
 dnl -- sss_idmap is needed by the extdom exop --
ac7d03
 PKG_CHECK_MODULES([SSSIDMAP], [sss_idmap])
ac7d03
 PKG_CHECK_MODULES([SSSNSSIDMAP], [sss_nss_idmap >= 1.15.2])
ac7d03
+AC_CHECK_LIB([sss_nss_idmap],
ac7d03
+             [sss_nss_getlistbycert],
ac7d03
+             [],
ac7d03
+             [AC_MSG_ERROR([Required sss_nss_getlistbycert symbol in sss_nss_idmap not found])],
ac7d03
+             [])
ac7d03
 
ac7d03
 dnl -- sss_certmap and certauth.h are needed by the IPA KDB certauth plugin --
ac7d03
 PKG_CHECK_EXISTS([sss_certmap],
ac7d03
-- 
ac7d03
2.12.2
ac7d03