Changeset 50bb490 for auth.c


Ignore:
Timestamp:
2016-03-25T18:07:53Z (9 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
  • auth.c

    ra6005da r50bb490  
    44#ifdef WITH_PAM
    55extern auth_backend_t auth_pam;
     6#endif
     7#ifdef WITH_LDAP
     8extern auth_backend_t auth_ldap;
    69#endif
    710
     
    1316        gl = g_list_append(gl, &auth_pam);
    1417        if (backend && !strcmp(backend, "pam")) {
     18                ok = 1;
     19        }
     20#endif
     21#ifdef WITH_LDAP
     22        gl = g_list_append(gl, &auth_ldap);
     23        if (backend && !strcmp(backend, "ldap")) {
    1524                ok = 1;
    1625        }
Note: See TracChangeset for help on using the changeset viewer.