diff options
author | Daniel Golle <daniel@makrotopia.org> | 2017-03-03 09:02:51 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2017-03-03 10:34:55 +0100 |
commit | c275909c38e86f0e84fde60256e425f073f1f3f6 (patch) | |
tree | 449ecf396fb84903876836f7132ee8c8756aba83 /net | |
parent | c4cbcb30b74d4ff2aed9e057c7886ba93b2c5f7d (diff) |
freeradius3: build and package support for LDAP
The lack of LDAP support was one of the things which prevented users
from migrating from freeradius2 to freeradius3.
Enable LDAP in freeradius3 so we can finally burry freeradius2.
Reported-by: Martin Mueller <mm@sig21.net>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/freeradius3/Makefile | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/net/freeradius3/Makefile b/net/freeradius3/Makefile index 7603e86df..e7a0b2adb 100644 --- a/net/freeradius3/Makefile +++ b/net/freeradius3/Makefile @@ -282,7 +282,15 @@ define Package/freeradius3-mod-passwd/conffiles /etc/freeradius3/mods-enabled/passwd endef -# LDAP support has not been ported +define Package/freeradius3-mod-ldap + $(call Package/freeradius3/Default) + DEPENDS:=freeradius3 +libopenldap @FREERADIUS3_OPENSSL + TITLE:=LDAP Authentication +endef + +define Package/freeradius3-mod-ldap/conffiles +/etc/freeradius3/mods-available/ldap +endef define Package/freeradius3-mod-logintime $(call Package/freeradius3/Default) @@ -404,7 +412,6 @@ CONFIGURE_ARGS+= \ --without-rlm_idn \ --without-rlm_ippool \ --without-rlm_krb5 \ - --without-rlm_ldap \ --without-rlm_opendirectory \ --without-rlm_pam \ --without-rlm_perl \ @@ -481,6 +488,14 @@ else CONFIGURE_ARGS+= --without-rlm_unix endif +ifneq ($(SDK)$(CONFIG_PACKAGE_freeradius3-mod-ldap),) + CONFIGURE_ARGS+= --with-rlm_ldap \ + --with-rlm_ldap-include-dir="$(STAGING_DIR)/usr/include" \ + --with-rlm_ldap-lib-dir="$(STAGING_DIR)/usr/lib" +else + CONFIGURE_ARGS+= --without-rlm_ldap +endif + CONFIGURE_VARS+= \ LDFLAGS="$$$$LDFLAGS" \ LIBS="$(CONFIGURE_LIBS)" \ @@ -595,6 +610,7 @@ $(eval $(call BuildPlugin,freeradius3-mod-exec,rlm_exec,)) $(eval $(call BuildPlugin,freeradius3-mod-expiration,rlm_expiration,)) $(eval $(call BuildPlugin,freeradius3-mod-expr,rlm_expr,)) $(eval $(call BuildPlugin,freeradius3-mod-files,rlm_files,)) +$(eval $(call BuildPlugin,freeradius3-mod-ldap,rlm_ldap,)) $(eval $(call BuildPlugin,freeradius3-mod-logintime,rlm_logintime,)) $(eval $(call BuildPlugin,freeradius3-mod-mschap,rlm_mschap,)) $(eval $(call BuildPlugin,freeradius3-mod-pap,rlm_pap,)) |