Changeset 50bb490 for configure


Ignore:
Timestamp:
2016-03-25T18:07:53Z (5 years ago)
Author:
Dennis Kaarsemaker <dennis@…>
Branches:
master
Children:
64b4263
Parents:
a6005da
git-author:
Dennis Kaarsemaker <dennis@…> (23-02-16 19:14:57)
git-committer:
Dennis Kaarsemaker <dennis@…> (25-03-16 18:07:53)
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    ra6005da r50bb490  
    5353
    5454pam=0
     55ldap=0
    5556
    5657pie=1
     
    137138
    138139--pam=0/1       Disable/enable PAM authentication       $pam
     140--ldap=0/1      Disable/enable LDAP authentication      $ldap
    139141
    140142--doc=0/1       Disable/enable help.txt generation      $doc
     
    645647        authobjs=$authobjs'auth_pam.o '
    646648        authlibs=$authlibs'-lpam '
     649fi
     650if [ "$ldap" = 0 ]; then
     651        echo '#undef WITH_LDAP' >> config.h
     652else
     653        if ! echo '#include <ldap.h>' | $CC -E - >/dev/null 2>/dev/null; then
     654                echo 'Cannot find libldap development libraries, aborting. (Install libldap2-dev?)'
     655                exit 1
     656        fi
     657        echo '#define WITH_LDAP' >> config.h
     658        authobjs=$authobjs'auth_ldap.o '
     659        authlibs=$authlibs'-lldap '
    647660fi
    648661echo AUTH_OBJS=$authobjs >> Makefile.settings
Note: See TracChangeset for help on using the changeset viewer.