I have built an application in PHP/MySQL. To access it, users log in against a users table in MySQL. That all works fine.
Now there is a possibility we will be asked to authenticate against an LDAP server.
I have written a script that can search for a user in an LDAP server.
However, if I get a successful return from LDAP how do I link all the other tables in the Database (that were originally linked to the users table) to the LDAP user?
Any help is appreciated.