views:

178

answers:

4

I have an existing website written is Perl and have recently added a WordPress blog and BBPress forums. Each of the three systems has its own login mechanism.

To make this a little cleaner I have integrated WordPress and BBPress to enable single sign-on between the two systems which works great. I now want to take the next step and integrate things further so that when some registers with our site our Perl scripts create a new WordPress user, a new BBPress user (if necessary) and logs the user into all three systems.

Also, when a users returns to the site, I'd like to log them back into all three systems. I'd appreciate any advice on how to best accomplish this.

A: 

Why not use LDAP or similar to unify the login, rather than create lots of accounts?

Kinopiko
Looks like both BBPress and WordPress have LDAP plugins available (and openid too).
ysth
I'd prefer to do something a lot more light weight where my perl app could simple do that appropriate checks and create/destroy session cookies as necessary to enable registration and login/logout. Any other ideas besides using LDAP or something similar?
Russell C.
A: 

Depends on where perl stores it's data, if that user data it stores is file-based, then just read those files, and integrate perl users with wordpress users.

crosenblum
A: 

Reverse engineering may be the answer, if you're feeling spunky. Set up an empty WordPress database and dump the SQL emitted by the app while going through the user registration flow. Rinse, repeat for any other WordPress flows that you'd like to emulate in your Perl app.

Max A.
A: 

OpenID implementation, perhaps? If you want some sort of federated login standard that's not LDAP. There's probably a plugin for that if there's one for LDAP.

fennec