This warning message appears when i configure my smfforum module.

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

i have log in both drupal and smf.

Comments

vb’s picture

It is not bug. It is a normal feature.
It is a qookie test that module performs to detect if you are authorized by the cookie that SMF or smfforum.module sets when you are logged in.
First of all see comment about smfforum-5.x-1.x-dev.tar.gz February 12, 2007 - 03:14
http://drupal.org/node/112116#comment-199391
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.

vb’s picture

The qookie authetication test shows if smfforum.module authenticates you on the forum with the qookie.
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.

The advanced sync features could be benefit from the smfforum.module if the test is passed.
smfforum.module will work without some of this features which automatically will be switch on if cookie will function properly

The typical layout for integration with smfforum.module is:

Drupal
http://example.com

SMF
http://example.com/forum
or
http://forum.example.com

smfforum.module does not work on different domains like

http://yourdrupalsite.com
http://yoursmfforum.com

Another layouts may need tuning.

What you may do:

1) Check if your cookie is enabled at all.

2) Login in SMF and see in the browser, is there cookie like SMFCookie291 (number may differ)

3) Try to check or uncheck this in SMF Admin/Server settings/Feature Configuration
(on http://vgb.org.ru/forum it is unchecked)

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

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

4) look at drupal settings.php

/**
 * We try to set the correct cookie domain. If you are experiencing problems
 * try commenting out the code below or specifying the cookie domain by hand.
 */
if (isset($_SERVER['HTTP_HOST'])) {
  $domain = '.'. preg_replace('`^www.`', '', $_SERVER['HTTP_HOST']);
  // Per RFC 2109, cookie domains must contain at least one dot other than the
  // first. For hosts such as 'localhost', we don't set a cookie domain.
  if (count(explode('.', $domain)) > 2) {
    ini_set('session.cookie_domain', $domain);
  }
}
vb’s picture

el_rob’s picture

Title: Not autheticated » Working on "localhost"? -> Solution!

Hello

Had the same problem and spent hours trying to get it to work on my xampp test environment. Somehow the cookie just didn't get set. Finally I found a hint in another forum, that when working with http://localhost/, cookies aren't set correctly! The solution: Change http://localhost/ to http://127.0.0.1/ and this mod works like a charm!!!

Hope to helps!
Rob

vb’s picture

Ensure that these settings were unchecked
(on http://vgb.org.ru/forum it is unchecked)

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

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