Joomla will not log into DokuWIKI.

Moderator: fanno

Forum rules
Please post all the bugs you encounter on our issue tracker.

Joomla will not log into DokuWIKI.

Postby viviano on Tue Sep 14, 2010 3:06 pm

Please fill up the following form to enjoy free support from our Team. No Support will be provided in case this form is not filled up!

1. Have you searched the forums and checked the documentation section for a solution?
Yes. I have read all the installation documentation several times as well as forum posts regarding this issue and searched google. There seem to be many similar issues, but none of the solutions resolved my situation.

2. Please summarize your problem in a few lines.
Using Joomla 1.5.20 w/Jfusion 1.5.1 and DokuWIKI 2009-12-25 I am unable to log into DokuWIKI. If I log into the system from DokuWIKI it works, but the cookie is almost immediately cleared. I am sure its something I simply missed in the setup of JFusion, but I have tried every combination of things I can think of to no avail. The Login checker works without issue, it creates users, deletes users, but just won't login and hold the cookie correctly.

3. What steps will reproduce the problem?
Logging into Joomla does not login to DokuWIKI. Logging into DokuWIKI logs into Joomla, but as soon as I browse away to a different page (either embedded DokuWIKI or another Joomla page) the DokuWIKI and Joomla cookie gets lost and I am logged out again.

4. What is the expected output? What do you see instead?
I expect to be able to login to Joomla and have it maintain a session cookie between Joomla and DokuWIKI during the session.

5. You must include a printout of the login checker in the JFusion component.

Code: Select all
Server Configuration
Joomla Version    1.5.20
PHP Version    5.2.5
MySQL Version    5.0.45-log
System Information    Linux wwwserver-1.renci.org 2.6.18-194.11.3.el5 #1 SMP Mon Aug 23 15:51:38 EDT 2010 x86_64
Browser Information    Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9
joomla user Plugin    Enabled
jfusion user Plugin    Enabled
jfusion authentication Plugin    Enabled

JFusion Versions
JFusion Component Version    1.5.1-000 (Rev 2266)
JFusion Authentication Plugin Version    1.5.1-000
JFusion User Plugin Version    1.5.1-000
JFusion Activity Module Version    1.5.1-000
JFusion Login Module Version    1.5.1-000
JFusion Search Plugin Version    1.5.1-000
JFusion Discussion Plugin Version    1.5.1-000

JFusion joomla_int Plugin
configuration    master 1
slave 0
dual_login 1
check_encryption 1
JFusion dokuwiki Plugin
configuration    master 0
slave 1
dual_login 1
check_encryption 1


Authentication Plugin
userid    66
activation    ""
username    testuser
name    Test User
password    e98d14********
email    testuser@renci.org
block    0
group_name    Super Administrator
group_id    25
params    admin_language= language= editor= helpsite= timezone=0
password_salt    A3ep*****
language    en-GB
credentialed_username    testuser
password_clear    ******
   Authentication Plugin Success
Authentication Plugin Debug
0    joomla_int Password Encryption Check: e98d14******** vs e98d14********
1    joomla_int Password Encryption Check: Success


jfusion User Plugin
   User Plugin Success
User Plugin Debug
init    0 Using userinfo JFusion authentication plugin
joomlaid    66
dokuwiki User Update    0 A user has been found that matches the login details
1 Skipped the update of name
2 Skipped Password Update:Password already valid
dokuwiki User Details    
userid    testuser
name    Test User
username    testuser
password    $1$796********
email    testuser@renci.org
group_id    0 user
password_clear    ******
dokuwiki Session    
Created Cookies    
0    Name DWd6fcb57a725757b22fe830cccebe05e6
Value dGVzdHVzZXI=|0|OHc1K3g1aFBKMkU9
Expires 2011-09-14 11:04:17
Cookie Path /
Cookie Domain .renci.org
User avatar
viviano
JFusion Newbie
JFusion Newbie
 
Posts: 7
Joined: Tue Sep 14, 2010 1:10 pm

Re: Joomla will not log into DokuWIKI.

Postby fanno on Tue Sep 14, 2010 3:09 pm

try and disable
joomla user Plugin Enabled
Fanno
_________________________________
Developer
Specialist on SMF, DokuWiki , Mantis, Eventum, Mediawiki, Universal plugin


Review us at!
http://extensions.joomla.org/extensions/3723/details
User avatar
fanno
Developer
Developer
 
Posts: 7669
Joined: Wed Jan 07, 2009 4:38 pm
Location: Denmark, Copenhagen

Re: Joomla will not log into DokuWIKI.

Postby viviano on Tue Sep 14, 2010 3:24 pm

fanno wrote:try and disable
joomla user Plugin Enabled


No good. Same problem.
User avatar
viviano
JFusion Newbie
JFusion Newbie
 
Posts: 7
Joined: Tue Sep 14, 2010 1:10 pm

Re: Joomla will not log into DokuWIKI.

Postby viviano on Tue Sep 14, 2010 3:29 pm

Also,
If I use the Joomla "Login Form" instead of the JFusion one, logging into DokuWIKI, I don't loose the cookie, but I still can't login from Joomla to DokuWIKI. If I use the JFusion Login Manager, if I login from Joomla and goto a DokuWIKI page, I loose the cookie for Joomla. If I login from DokuWIKI while the JFusion Login Manager is active it logs me into both but as soon as I browse to another DokuWIKI page or another Joomla page, the login clears on both.
User avatar
viviano
JFusion Newbie
JFusion Newbie
 
Posts: 7
Joined: Tue Sep 14, 2010 1:10 pm

Re: Joomla will not log into DokuWIKI.

Postby fanno on Tue Sep 14, 2010 9:00 pm

i cant recreate this, got any special plugins? that may have to do with this ?

is dokuwiki frameless ?
what about server session config ?
Fanno
_________________________________
Developer
Specialist on SMF, DokuWiki , Mantis, Eventum, Mediawiki, Universal plugin


Review us at!
http://extensions.joomla.org/extensions/3723/details
User avatar
fanno
Developer
Developer
 
Posts: 7669
Joined: Wed Jan 07, 2009 4:38 pm
Location: Denmark, Copenhagen

Re: Joomla will not log into DokuWIKI.

Postby viviano on Tue Sep 14, 2010 9:22 pm

fanno wrote:i cant recreate this, got any special plugins? that may have to do with this ?

is dokuwiki frameless ?
what about server session config ?


I am using some plugins on the DokuWIKI side to handle additional formting, but nothing relating to Auth, just using "simple". On Joomla I am not using anything other then the standard setup with JFusion. I've tried frameless and wrapper. I read in another thread where DokuWIKI was dropping the cookie domain, so I tried that setup, removing it. I also tried setting the cookie domain to the same as the server name, neither worked. The file setup is:

Joomla: /web/performance/htdocs/cms (https://performance.renci.org/cms/)
DokuWIKI: /web/performance/htdocs/wiki (https://performance.renci.org/wiki)

I don't know if there is anything I need to do with the cookie path since Joomla is in /cms, all the docs I read assumed it was installed in / of htdocs. Here are the session settings from phpinfo on my apache server:

Code: Select all
Session Support    enabled
Registered save handlers    files user sqlite
Registered serializer handlers    php php_binary

Directive   Local Value   Master Value
session.auto_start   Off   Off
session.bug_compat_42   On   On
session.bug_compat_warn   On   On
session.cache_expire   180   180
session.cache_limiter   nocache   nocache
session.cookie_domain   no value   no value
session.cookie_httponly   Off   Off
session.cookie_lifetime   0   0
session.cookie_path   /   /
session.cookie_secure   Off   Off
session.entropy_file   no value   no value
session.entropy_length   0   0
session.gc_divisor   100   100
session.gc_maxlifetime   1440   1440
session.gc_probability   1   1
session.hash_bits_per_character   4   4
session.hash_function   0   0
session.name   PHPSESSID   PHPSESSID
session.referer_check   no value   no value
session.save_handler   files   files
session.save_path   /web/performance/session   no value
session.serialize_handler   php   php
session.use_cookies   On   On
session.use_only_cookies   Off   Off
session.use_trans_sid   0   0


I can get you a login to the WIKI and PM you the details if something here doesn't jump out at you.
User avatar
viviano
JFusion Newbie
JFusion Newbie
 
Posts: 7
Joined: Tue Sep 14, 2010 1:10 pm

Re: Joomla will not log into DokuWIKI.

Postby viviano on Wed Sep 15, 2010 1:04 pm

Ok,
I went and installed a new DokuWIKI instance as "wiki2" and tied it to JFusion and that worked fine. So I traced through step by step the customizations I made to dokuwiki. Turns out changing the DokuWIKI setting "savedir" from the default ./data to something else caused the problem. A quick look at the jfusion code shows a lot of instances of
Code: Select all
$rootFolder . '/data/index'

in the DokuWIKI code.

Since I wanted my data dir outside of the htdocs location, what I did was:
  1. Change the "savedir" setting back to the default ./data in configuration manager
  2. Create a symlink in the dokuwiki install point ./data to where my actual data is

That seems to have resolved the issue and when I log into Joomla it logs me into DokuWIKI fine. Might be worth a FAQ entry that you can't change savedir in DokuWIKI if using JFusion.

I do have another question, when creating a JFusion menu item for DokuWIKI, how do I reference a sub-section of the WIKI using the JFusion option? I don't see an option in the menu page anywhere that lets me specify the actual WIKI page I want to display so all I can seem to get it to do is access the "start" page. What I want to do is create a menu item that lets me access a page other then start.
User avatar
viviano
JFusion Newbie
JFusion Newbie
 
Posts: 7
Joined: Tue Sep 14, 2010 1:10 pm

Re: Joomla will not log into DokuWIKI.

Postby fanno on Wed Sep 15, 2010 1:44 pm

I don't remember all of the code in my mind, but if i am not wrong the code looking for "/data/index", should only be for the activity module and so on. (I could remember wrong.)

what files is this in ? i know you said its in many files hehe.

I do have another question, when creating a JFusion menu item for DokuWIKI, how do I reference a sub-section of the WIKI using the JFusion option? I don't see an option in the menu page anywhere that lets me specify the actual WIKI page I want to display so all I can seem to get it to do is access the "start" page. What I want to do is create a menu item that lets me access a page other then start.

are you using frameless or wrapper mode?

If you are using frameless then you can created a "external link" pointing to the other menu item. only downside is that it will look like another menu item is active.

if you create a feature request on out bug tracker, i will looking to creating custom links.. however i believe it will require having 2 itemid's for the same software. but i am not sure if it can be done.

-Thanks
Fanno
_________________________________
Developer
Specialist on SMF, DokuWiki , Mantis, Eventum, Mediawiki, Universal plugin


Review us at!
http://extensions.joomla.org/extensions/3723/details
User avatar
fanno
Developer
Developer
 
Posts: 7669
Joined: Wed Jan 07, 2009 4:38 pm
Location: Denmark, Copenhagen

Re: Joomla will not log into DokuWIKI.

Postby viviano on Wed Sep 15, 2010 2:00 pm

It's only one file, it just shows up in multiple spots

Code: Select all
[viviano@wwwserver-1 dokuwiki]$ pwd
/web/performance/htdocs/joomla-1.5.20/administrator/components/com_jfusion/plugins/dokuwiki
[viviano@wwwserver-1 dokuwiki]$ find . -exec grep -H "/data" {} \;
./doku_search.php:    $pages = file($rootFolder . '/data/index' . '/page.idx');
./doku_search.php:    $dir = @opendir($rootFolder . '/data/index');
./doku_search.php:        if (@file_exists($rootFolder . '/data/index' . "/i$filter.idx")) $idx[] = $filter;
./doku_search.php:    $fn = $rootFolder . '/data/index' . '/' . $pre . $wlen . '.idx';
./doku_search.php:        $fn = $rootFolder . '/data/pages' . '/' . utf8_encodeFN($id) . '.txt';


What I ended up doing was creating a JFusion link to the main WIKI on topmenu and then a Joomla "wrapper" object pointing to the specific subsections with the exact URL I want. As long as I have redirects disabled in JFusion for DokuWIKI this works now that cookies are working fine. But having an entry in the Basic Parameters section of a JFusion menu item for WIKI Link so I could put something like "hello:world" that would get translated into "id,hello;world" when you clicked on the menu item would be a nice feature :). I'll add a feature request on the bug tracker.
User avatar
viviano
JFusion Newbie
JFusion Newbie
 
Posts: 7
Joined: Tue Sep 14, 2010 1:10 pm

Re: Joomla will not log into DokuWIKI.

Postby fanno on Wed Sep 15, 2010 2:19 pm

I do not see a way to do it, in wrapper.
Fanno
_________________________________
Developer
Specialist on SMF, DokuWiki , Mantis, Eventum, Mediawiki, Universal plugin


Review us at!
http://extensions.joomla.org/extensions/3723/details
User avatar
fanno
Developer
Developer
 
Posts: 7669
Joined: Wed Jan 07, 2009 4:38 pm
Location: Denmark, Copenhagen

Next

Return to DokuWiki

Who is online

Users browsing this forum: No registered users and 1 guest