Hi,
## For recent versions of WebPA...
You need to change the LDAP_... settings in inc_global.php You may also need to adapt the PHP function get_LDAP_user_type() which is at the bottom of inc_global.php - that function needs to decide if a user is "staff" or "student" based on the contents of the LDAP/AD field you defined in the setting: LDAP__USER_TYPE_ATTRIBUTE.
You will also need to add LDAP to the list of allowed authentication methods, using:
$LOGIN_AUTHENTICATORS[] = 'LDAP';
If you comment out the $LOGIN_AUTHENTICATORS[] = 'DB'; line, then LDAP will be the only authentication method allowed.
## If you're using an older version of WebPA...
The LDAP settings can be found in /include/inc_ldap_settings.php
In /include/inc_global.php you need to make sure that the AUTH__CLASS setting is set for LDAP:
define('AUTH__CLASS', 'LDAPAuthenticator');
If the way your local Active Directory is setup matches that which WebPA expects, then you'll be fine - otherwise you might need to edit the code, which is far from ideal. WebPA v2.0+ makes this much easier (see above).
--
Paul Newman
------------------------------------------------------
Senior PHP Developer
Centre for Engineering and Design Education
Loughborough University
------------------------------------------------------
From: WebPA [mailto:[log in to unmask]] On Behalf Of Alexander, Larry
Subject: WebPA LDAP Authentication
Hello All,
We’d like to use secure LDAP (ldaps, port 636) for authenticating into WebPA. How would we configure this within in_global.php?
|