From 480bba27714c85ebaf7f7c20cffd376364398465 Mon Sep 17 00:00:00 2001 From: Chris Frederick Date: Mon, 24 Oct 2016 10:34:23 -0500 Subject: [PATCH] sudo: Add ldap support for sudoers rules Automatically build sudo with ldap support when openldap is enabled. When sudo is built with ldap, /etc/sudoers is only read in for defaults, all rules need to be provided via ldap which is configured by the user in /etc/ldap.conf. Signed-off-by: Chris Frederick Reviewed-by: Romain Naour Signed-off-by: Thomas Petazzoni --- package/sudo/sudo.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/sudo/sudo.mk b/package/sudo/sudo.mk index 12b16e04e3..b1a6dd35fc 100644 --- a/package/sudo/sudo.mk +++ b/package/sudo/sudo.mk @@ -37,6 +37,13 @@ else SUDO_CONF_OPTS += --disable-zlib endif +ifeq ($(BR2_PACKAGE_OPENLDAP),y) +SUDO_DEPENDENCIES += openldap +SUDO_CONF_OPTS += --with-ldap +else +SUDO_CONF_OPTS += --without-ldap +endif + # mksigname/mksiglist needs to run on build host to generate source files define SUDO_BUILD_MKSIGNAME_MKSIGLIST_HOST $(MAKE) $(HOST_CONFIGURE_OPTS) \ -- 2.30.2