News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

authentication system smf 1.1.5 & dokuwiki 2007-06-26b

Started by KishlorN, June 04, 2008, 08:00:43 AM

Previous topic - Next topic

KishlorN

Hi,

I'm facing some problem on the following case:

I'm trying to make smf and dokuwiki authentication system work together. In other word, I want the user logged from the wiki or the forum to be able to browse between them and stay logged on. So I tryed various packages which I found on the web, but it didn't work... The problem must be about the version.
http://www.simplemachines.org/community/index.php?topic=62778.0

hxxp:www.simplemachines-fr.org/wiki/doku.php?id=integration:dokuwiki [nonactive]
=> it's not enough as smf authenticate system is based on cookies...



I also found something interesting on the smf online manual :
http://docs.simplemachines.org/index.php?topic=789.msg1688#msg1688

My idea was to use the ssi_login function on the wiki which work perfectly (ssi_login & login_url). My problem in this case is that I don't know how to check if the user is logged... The $context['user'][...] doesn't work from the wiki, here is the content:
Array ( [user] => Array ( [id] => 0 [is_logged] => [is_guest] => 1 [is_admin] => [is_mod] => [username] => [language] => english ...

I don't know why this variable isn't updated and I can't manage to find the way to check the authentication otherwise.

Any idea/help would be hightly appreciated!

Ps: Sorry for my english  :P



[SiNaN]

Are they accually logged when they are outside the forum? Did you add the function writeLog() so that they will be count as online when they are in the main site?
Former SMF Core Developer | My Mods | SimplePortal

KishlorN

They are supposed to be counted as online only once they have logged in...
Maybe, the description of my problem was a bit short :P, I wanna find a way to log users on both system (wiki & forum) from one form.
It seems that smf provides a great integration module with SSI, so I was thinking about using it.

I've found out some useful things since I last post: I'm trying to use the integration function (integrate_login).
When the Login2 function (located in LogInOut.php) is loaded, it checks if the integrate_login function is defined and loads it. My problem is to transmit an uncrypted password to the integrate_login function. At this moment, All I can get is something like "******" using $_REQUEST['passwrd'] which is the result from the javascript function hashLoginPassword()  called in the login form...

An other problem will be to find out how the smf cookie is defined in order to do a checking from the other CMS.

Thank by advance!

[SiNaN]

If you include SSI.php, they should be count as logged in if they did.

Check that you don't have "Enable local storage of cookies" checked at Server Settings >> Feature Configuration.
Former SMF Core Developer | My Mods | SimplePortal

Advertisement: