diff options
author | Chris Frederick <cdf123@cdf123.net> | 2016-10-24 10:34:23 -0500 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-02-06 19:40:40 +0100 |
commit | 480bba27714c85ebaf7f7c20cffd376364398465 (patch) | |
tree | 9655d8a8dc8f13d1f5362120e10c82f0a8b4f17d | |
parent | 2ec0a7d11ca6c5a6fa1fe142e291a8f308f9c91f (diff) | |
download | buildroot-480bba27714c85ebaf7f7c20cffd376364398465.tar.gz buildroot-480bba27714c85ebaf7f7c20cffd376364398465.zip |
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 <cdf123@cdf123.net>
Reviewed-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/sudo/sudo.mk | 7 |
1 files changed, 7 insertions, 0 deletions
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) \ |