Forum SMF1+Drupal
10 September 2010, 13:41:39 *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF is just installed!
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Qookie authentication problems  (Read 2516 times)
Jedi_Amara
Новичок
*

Карма: +0/-0
Posts: 4


View Profile Email
« on: 04 July 2007, 19:18:48 »

I installed Drupal and SMF, then the module. The profile syncing works fine, but I can't get logins working, much like this post. I get the

You are not authenticated in SMF now. Please login to SMF and test again. You may refresh settings!

problem, even though I am authenticated. I've read through all the posts on this topic and the links in them, and I've tried disabling the settings "Enable local storage of cookies" and "Use subdomain independent cookies" as suggested. My authentication still doesn't work.

www.ausds.net is the website.
www.ausds.net/forum is the forum.

If I use the SMF user login block, it logs me into SMF but not Drupal. Even www.ausds.net/user will not log me into Drupal in that case. If I want to log into Drupal I have to delete smf_api_2.php, log in and then re-upload it. I have temporarily disabled the SMF user login block and enabled the Drupal one just so that I can log in.
« Last Edit: 04 July 2007, 19:23:56 by Jedi_Amara » Logged
webmaster
Администратор
Постоялец
*****

Карма: +8/-0
Gender: Male
Posts: 219


Buddha


View Profile WWW
« Reply #1 on: 05 July 2007, 17:44:38 »

Make sure you have the base URL's same through out the site.

All base URL's and links from SMF to Drupal and from Drupal to SMF have to start (with www) or (without www).
You have to change the values of $boardurl in smf/Settings.php and $base_url in drupal/sites/default/settings.php to have same base URL's.

Set also all links from Drupal to forum or from forum to Drupal with www. or (without www).

After you do this, you go to SMF >> Admin >> Themes and Layout >> Themes and Settings >> click on "Attempt to reset all themes" in the "Reset Theme URLs and Directories" box.
SMF >> Admin >> Theme Settings >> THEMES AND SETTINGS

and set www. also

Theme Settings - SMF Default Theme - Core
Theme URLs and Configuration
This theme's name: SMF Default Theme - Core
This theme's URL: http://www.mysite.com/smf/Themes/default
This theme's images URL: http://www.mysite.com/smf/Themes/default/images
This theme's directory: your absolute site path/smf/Themes/default

In layouts like

www.mysite.com is the website.
www.mysite.com/forum is the forum.

Ensure that these settings were unchecked
SMF >> Admin >> Server Settings >> Feature Configuration

Help Enable local storage of cookies
(SSI won't work well with this on.)

Help Use subdomain independent cookies
(turn off local cookies first!)

Set the
 Default login cookies length (in minutes) [1440]

The qookie authetication test shows if smfforum.module authenticates you on the forum with the qookie.
The test shows that something wrong with the qookie or your SMF and Drupal domains are different or have layout that smfforum.module not supports.

To pass this qookie authetication test you should:

1) login in SMF with this admin password
2) login in Dupal with this admin password
3) Go to SMFforum settings and see 4 line (or refresh the browser if you are already in there)
See radio buttons. You may choose Test and save settings.

If you see red line that means that something wrong with the qookie and smfforum.module treats you as unauthenticated.

When you log in SMF see in browser qookie like SMFCookie999 (or so)
When you log in Drupal see in browser qookie like SMFCookie999 (or so)
If you see 2 qookies that is not wright. It means that something wrong with the your settings..
You shoud see only one SMF qookie line, that is ok.

You should try to adjust your links, settings or your environment.
Logged

Webmaster
Jedi_Amara
Новичок
*

Карма: +0/-0
Posts: 4


View Profile Email
« Reply #2 on: 06 July 2007, 10:40:05 »

I unchecked those settings and the only thing that happened was that SMF would not let me log out (which was bad). There are two cookies being set, one by Drupal (PHPSESSID) and one by SMF (SMFCookie463). I can't figure out how to make Drupal stop setting its cookie.

If I give you my FTP and Drupal/SMF admin login details via PM, would you be able to see if you could find the problem? ^^;;
Logged
Jedi_Amara
Новичок
*

Карма: +0/-0
Posts: 4


View Profile Email
« Reply #3 on: 06 July 2007, 17:11:55 »

The problem seems to have been fixed. Thanks Smiley
Logged
Jedi_Amara
Новичок
*

Карма: +0/-0
Posts: 4


View Profile Email
« Reply #4 on: 06 July 2007, 17:24:46 »

One more thing. The SMF logout now won't work. I think it is those cookie settings I had to uncheck. Is there a way to get around this?
Logged
webmaster
Администратор
Постоялец
*****

Карма: +8/-0
Gender: Male
Posts: 219


Buddha


View Profile WWW
« Reply #5 on: 06 July 2007, 22:07:20 »

Drupal (PHPSESSID) does not matter, do not touch it and think of it Smiley
Quote
The SMF logout now won't work. I think it is those cookie settings I had to uncheck. Is there a way to get around this?
It should work. Here is working. This settings does not affect SMF logout. Something is wrong somewere in other place.

First clear all. Cache, qookie and so. Try again and think and try again before sending me login details via PM.
i will be able to have a look after this weekend. But you will manage himself. Wink
Logged

Webmaster
myeurohome
Новичок
*

Карма: +0/-0
Posts: 1


View Profile
« Reply #6 on: 13 January 2008, 19:03:10 »

Thank you for a great bridge module,
I am facing the same problem of not being authenticated, I think i have taken the measures described here (the www. issue and all), the problem still exist.

website is : http://www.myeurohome.com  Drupal 5.5
forum at: http://www.myeurohome.com/smfi   SMF 1.4

another issue i am facing is importing the Drupal users into SMF,  i can't see the other members at SMF

thanks again
myEuroHome
Logged
webmaster
Администратор
Постоялец
*****

Карма: +8/-0
Gender: Male
Posts: 219


Buddha


View Profile WWW
« Reply #7 on: 30 January 2008, 23:40:22 »

Sorry for not answering quikly, but if you have read all, I cannot add a word. Only you can find what is wrong.
I did not test bridge with rt languages. Drupal 6 will have official support.
You may try on a local english installation. It should work.
Logged

Webmaster
eviriyanti
Новичок
*

Карма: +0/-0
Posts: 1



View Profile
« Reply #8 on: 20 March 2009, 10:21:38 »

Thanks, to webmaster your tutorial really help me  Wink
I also activate SMFforum Hidden authentication block and single sign on works!

Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!