Authenticating against another SQL table (wbb2)

badphish

Joined: 2007-07-13
Posts: 2
Posted: Fri, 2007-07-13 23:10

Hello everybody.

I maintain the website and the forum of a small (approx. 100 users) german WOW guild.

Looking for a usable gallery implementation (instead start coding my own stuff)
I stumbled upon gallery2. Due to the fine grained permission model I try to implement it.

To keep the administrative overhead as low as possible I would like to authenticate users
of the gallery against the accounts in the registered forum (as a semi <buzzword>single sign-on</buzzword>
solution).

The forum system is running "Burning Board 2" (http://www.woltlab.com - sorry it seems
to be a site with a "only german" information :/).

I can get the user name and the - SHA1 encrypted - password from the related SQL table.
Before I start digging deep inside the code ... can someone point me in the right direction
how to modify the login process (or is there a generic authentication method waiting to
be expanded)?

O.K. the steps I wish to accomplish: ;)

1) A user - known in the forum with its user name and the corresponding password - would like
to upload pictures to the gallery.
2) He (or she) have to enter the user name and the password in the login dialog of gallery2.
3) Get the name and the password and calculate the SHA1 sum of the supplied password.
4) Looking for the user name and the SHA1 encrypted password in the corresponding SQL table
of the forum. If they match they are authenticated (if not, well bad luck:)

Do I really have to dig and modify the code?

Many thanks for you help.

--
"Things that try to look like things often do
look more like things than things. Well-known fact."
Granny Weatherwax - "Wyrd sisters"

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2007-07-13 23:54

please read:
documentation -> installation -> embedding

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
badphish

Joined: 2007-07-13
Posts: 2
Posted: Sat, 2007-07-14 00:04

Thanks this is what I am looking for!

--
"Things that try to look like things often do
look more like things than things. Well-known fact."
Granny Weatherwax - "Wyrd sisters"