From 50bb49039b264ac599ad1ddee2be86cfc7cb68ce Mon Sep 17 00:00:00 2001 From: Dennis Kaarsemaker Date: Tue, 23 Feb 2016 20:14:57 +0100 Subject: ldap authentication backend We only support the openldap scheme for now, with users that are posixAccounts. Moreover, as the plugin cannot be configured directly, you must configure libldap correctly in /etc/openldap/ldap.conf --- configure | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 4c08b034..9cc81794 100755 --- a/configure +++ b/configure @@ -52,6 +52,7 @@ events=glib ssl=auto pam=0 +ldap=0 pie=1 @@ -136,6 +137,7 @@ Option Description Default (automatically disables other protocol modules) --pam=0/1 Disable/enable PAM authentication $pam +--ldap=0/1 Disable/enable LDAP authentication $ldap --doc=0/1 Disable/enable help.txt generation $doc --debug=0/1 Disable/enable debugging $debug @@ -645,6 +647,17 @@ else authobjs=$authobjs'auth_pam.o ' authlibs=$authlibs'-lpam ' fi +if [ "$ldap" = 0 ]; then + echo '#undef WITH_LDAP' >> config.h +else + if ! echo '#include ' | $CC -E - >/dev/null 2>/dev/null; then + echo 'Cannot find libldap development libraries, aborting. (Install libldap2-dev?)' + exit 1 + fi + echo '#define WITH_LDAP' >> config.h + authobjs=$authobjs'auth_ldap.o ' + authlibs=$authlibs'-lldap ' +fi echo AUTH_OBJS=$authobjs >> Makefile.settings echo EFLAGS+=$authlibs >> Makefile.settings -- cgit v1.2.3