Advertisement:

Navigation

SMF Mod Site

This is an outdated mod that is no longer supported by its author. Use at your own risk
Mod Name:
LDAP Authentication for SMF 1.0.5
Created By:
bsiegel
Type:
Archived
First Created:
October 20, 2005, 11:19:15 PM
Last Modified:
November 09, 2005, 04:19:16 PM
Latest Version:
1.0
Compatible With:
1.0.5
Total Downloads:
3363

Download this mod

LDAPAuth.zip (5kB) [3597]
Manual Install Instructions for SMF

Description:

Overview
-----------

This mod will allow users to log in to your SMF installation via LDAP. It does it as follows:

* If the username is a 'special' name (such as 'Admin') the login is handled normally.

* Otherwise, the LDAP server is checked to see if the user exists.

* If the LDAP server responds that it does, the password is then tried.

* If the password binds successfully to the server, the SMF database is checked to see if the user exists there.

* If the user does not exist, a new SMF account is created for the user, and the e-mail address and display name are set from data pulled out of the LDAP server.

* If the user does exist but the password does not match the one in the database, the database is updated.

* Finally, the user is logged in normally, cookies are set, etc.


Configuration
-----------------

Open LogInOut.php in your favorite text editor.
Search for: //Begin LDAP integration
Below that you will see the configuration variables you will need to set to get LDAP authentication working.
Change $ldap_admin_user to the name of your administrator user account.
Change $ldap_server to the address of your LDAP server.
Change $ldap_base_dn to the Base DN of your LDAP server.
Change $ldap_uid_field to the name of the field containing the user ID of the user.
Change $ldap_real_name to the name of the field containing the real name of the user.
Change $ldap_email to the name of the field containing the e-mail address of the user.