Re: Centralizled Authentication
| From: | AmirBehzad Eslami | Date: | Thu, 02 Dec 2010 09:01:30 +0000 |
| Subject: | Re: Centralizled Authentication | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-309813@lists.php.net to get a copy of this message | ||
Suppose you're running phpBB with another php-driven application.
phpBB has a "user" table where the username/password/email/.. of each user
is stored at mysql. Once a user logs-in to the website, the "Last Login"
timestamp updates
on the "users" table at mysql.
How do I use LDAP in this type of application?
1) Move entire records of "Users" and their attributes (e.g.
last_login_time) to LDAP server?
In this mehtod, after each successfull login request, I also need to update
the related record on LDAP.
2) Should I use LDAP to store only the username and passwords?
In this method, I need to update the record on MySQL database, but I should
keep the MySQL
and LDAP syncronized, since a user may want to change her password.
What do you think guys? Please let me know.