mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-11-02 20:30:26 -06:00
extdom: user getorigby{user|group}name if available
New calls, getorigbyusername() and getorigbygroupname(), are added to libsss_nss_idmap. They allow to query the AD specific attributes for a user or a group directly. Besides a minor performance benefit it helps to avoid issues if there are users and groups with the same name and the group is not a user-private group but a real group with members. Fixes: https://pagure.io/freeipa/issue/9127 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
1 parent
9ac88216a0
commit
c37a033b8a
2 files changed
+28
-13
No files matched your search
@@ -50,6 +50,13 @@ if test "x$ac_cv_have_decl_sss_nss_getpwnam_timeout" = xyes ; then
|
||||
AC_DEFINE(USE_SSS_NSS_TIMEOUT,1,[Use extended NSS API provided by SSSD])
|
||||
fi
|
||||
|
||||
dnl --- if sss_nss_idmap provides sss_nss_getorigbyusername_timeout and
|
||||
dnl --- sss_nss_getorigbygroupname_timeout , use it
|
||||
bck_cflags="$CFLAGS"
|
||||
CFLAGS="$CFLAGS -DIPA_389DS_PLUGIN_HELPER_CALLS"
|
||||
AC_CHECK_DECLS([sss_nss_getorigbyusername_timeout, sss_nss_getorigbygroupname_timeout], [], [], [[#include <sss_nss_idmap.h>]])
|
||||
CFLAGS="$bck_cflags"
|
||||
|
||||
dnl -- sss_certmap and certauth.h are needed by the IPA KDB certauth plugin --
|
||||
PKG_CHECK_EXISTS([sss_certmap],
|
||||
[PKG_CHECK_MODULES([SSSCERTMAP], [sss_certmap])],
|
||||
|
||||
Reference in new issue
Block a user