aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDennis Kaarsemaker <dennis@kaarsemaker.net>2016-02-23 20:14:57 +0100
committerDennis Kaarsemaker <dennis@kaarsemaker.net>2016-03-25 19:07:53 +0100
commit50bb49039b264ac599ad1ddee2be86cfc7cb68ce (patch)
treecf8bbc7389ba680db21a68209d0298a35a7ebac2 /configure
parenta6005da78ae1563ae4577179d1e54fff74cfe21a (diff)
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
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 13 insertions, 0 deletions
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 <ldap.h>' | $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