Author Topic: Another E-Blah authentication problem  (Read 6517 times)

0 Members and 1 Guest are viewing this topic.

Offline Zippy

  • album.pl User
  • *
  • Posts: 18
  • Karma: +0/-0
Another E-Blah authentication problem
« on: January 24, 2006, 12:00:09 »
Hi there,

I have an E-Blah forum (V9.6) which I am tring to integrate Album6.5 into.

My problem is when I go to the photo upload page after I log into the E-Blah forum, the user name and password is not automatically filled in. If I put the username and password in, I can upload no problem. I don't understand why it won't autofill the information.

I turned on debugging and the only thing I really see around the authentication part is:

"No login information found in cookies"


2773: Entering subroutine: Authenticate
3592: Entering subroutine: cookieLogin
3835: [eblah_pw] = [the correct password] (u:-p:)
3835: [eblah_un] = [the correct username] (u:-p:)
3835: [Error404] = [6] (u:-p:)
3835: [eblah_Logout1] = [$username] (u:-p:)
3812: Found generic userid info: eblah_Logout2
3814: $myusername set to eblah_Logout2
3835: [eblah_Logout2] = [$username] (u:eblah_Logout2-p:)
3856: No login information found in cookies.
3860: Leaving subroutine: cookieLogin --> return code is 0



I am familiar with other E-Blah forums that are using this photo script with no problems. When I go to those sites, the login information is autofilled after logging into thier forums.

What am I missing??
« Last Edit: January 28, 2006, 22:56:13 by Zippy »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Another E-Blah authentication problem
« Reply #1 on: January 30, 2006, 09:08:24 »
Hi Zippy,

Thanks for the debug info, that helps a lot. Is it possible you have an older variant of 6.5? (Yeah, there are a number of variants as small new features are added...)

The e-blah stuff was only really finalized in one of the latest updates, maybe a few weeks ago. It looks like the line numbers don't match up with the most recent variant, so I'd try re-downloading and replacing album.pl to see if that solves it.


Cheers
Mike

Offline Zippy

  • album.pl User
  • *
  • Posts: 18
  • Karma: +0/-0
Re: Another E-Blah authentication problem
« Reply #2 on: January 30, 2006, 09:11:04 »
I redownloaded again last night, but didn't change it because the file size was exactely the same, and the date on album.pl was January 06....

Offline Zippy

  • album.pl User
  • *
  • Posts: 18
  • Karma: +0/-0
Re: Another E-Blah authentication problem
« Reply #3 on: January 30, 2006, 09:25:11 »
Well, I just redownloaded it again, replaced album.pl and it works now....   Duh, I feel stupid... lol

Thanks Mike

Cheers

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Another E-Blah authentication problem
« Reply #4 on: January 30, 2006, 10:47:14 »
No worries, it must have been a co-incidence that the file size was the same... Glad to hear it's working now though! :)

Offline Zippy

  • album.pl User
  • *
  • Posts: 18
  • Karma: +0/-0
Re: Another E-Blah authentication problem
« Reply #5 on: January 30, 2006, 12:40:23 »
Hmmmm... I have another problem now...  ImageMagick won't create thumbnails anymore since I changed album.pl.  I changed back to the original album.pl and the thumbnails are able to be created again. What would be different in album.pl that would case this??


8359: Var [imagemagick] = [/usr/bin]
8384: Setting var: [imagemagick=/usr/bin] -- Result was [/usr/bin:]


8090: $::file=/services/webpages/mysite.com/public/album/picture.gif, $myobject=picture.gif
8919: Entering subroutine: genThumb(/services/webpages/mysite.com/public/album/picture.gif,/services/webpages/mysite/public/album//TH_picture.png,0)
2593: Checking to see if /services/webpages/mysite.com/public/album/picture.gif is a photo...
2606: Yep, it's a photo.
9054: IMAGEMAGICK: "/usr/bin/convert" -quality 75 -size 100x75 -thumbnail 100x75 -type Palette "/services/webpages/mysite.com/public/album/picture.gif" "/services/webpages/mysite.com/public/album//TH_picture.png"
9057: IMAGEMAGICK RETURNED: convert: Unrecognized option (-thumbnail) [No such file or directory].

Image Magick Error: convert: Unrecognized option (-thumbnail) [No such file or directory].

9212: Leaving subroutine: genThumb(/services/webpages/mysite.com/public/album/picture.gif,/services/webpages/mysite.com/public/album//TH_picture.png,0)


How do I get rid of the double slashes in the directory path??

Offline frister

  • album.pl Donor
  • album.pl Hacker
  • ****
  • Posts: 230
  • Karma: +42/-0
  • half baked ideas are better than none
    • fristersoft travelogue
Re: Another E-Blah authentication problem
« Reply #6 on: January 30, 2006, 14:42:00 »
See this post: http://dev.bobbitt.ca/forums/index.php?topic=1172.0

Some ImageMagick versions support the -thumbnail option, some older version don't.

J.J.
« Last Edit: January 30, 2006, 21:26:18 by frister »

Offline Zippy

  • album.pl User
  • *
  • Posts: 18
  • Karma: +0/-0
Re: Another E-Blah authentication problem
« Reply #7 on: January 30, 2006, 15:25:53 »
Yup, that worked... Thanks!

It creates the thumbnail, but it shows up as a red X the first time it is viewed.


I have read about this problem here:
http://dev.bobbitt.ca/forums/index.php?topic=1211.msg6797#msg6797

I guess there isn't anything that can be done about this problem??

Cheers

Offline frister

  • album.pl Donor
  • album.pl Hacker
  • ****
  • Posts: 230
  • Karma: +42/-0
  • half baked ideas are better than none
    • fristersoft travelogue
Re: Another E-Blah authentication problem
« Reply #8 on: January 30, 2006, 21:30:53 »
Haven't found a good answer to the red x yet. Happens wether I use -thumbnail or -scale.
I believe that in general, the max time my server gives itself to generate a page is 30 seconds, and when it has to generate a bunch of thumbnails, it takes my weak machine more than 30 seconds to build all those thumbnails. So, I get red X.

Offline Zippy

  • album.pl User
  • *
  • Posts: 18
  • Karma: +0/-0
Re: Another E-Blah authentication problem
« Reply #9 on: January 31, 2006, 22:28:49 »
Well, I can live with the red X problem. Once the image loads it's fine...

I am still having problems with authentication. When different users use the same computer to log into their accounts, album6.5 gets confused to what user is logged on and defaults to username "eblah_logout"?? The only way to fix it, is to clear cookies each time. It works fine with one user, but if there is more than one user you can't log in until cookies are cleared.

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Another E-Blah authentication problem
« Reply #10 on: February 01, 2006, 11:04:56 »
Can you send me the debug info for an authentication when eblah_logout is the username?

Thanks

Offline Zippy

  • album.pl User
  • *
  • Posts: 18
  • Karma: +0/-0
Re: Another E-Blah authentication problem
« Reply #11 on: February 01, 2006, 22:46:07 »
ok... if I clear cookies and log into the forum with the following:

Username- admin
Password- ********

album6.5 upload page will autoload the correct username/password

8870: Cookie Contents Follow:
8884: [eblah_pw] = [********]
8884: [eblah_un] = [admin]
8884: [Error404] = [10]
8887: END OF COOKIE

2773: Entering subroutine: Authenticate
3614: Entering subroutine: cookieLogin
3873: [eblah_pw] = [********] (u:-p:)
3788: Found e-Blah password info: eblah_pw
3790: $mypassword set to ********
3873: [eblah_un] = [admin] (u:-p:********)
3780: Found e-Blah username: eblah_un
3782: $myusername set to admin
3873: [Error404] = [10] (u:admin-p:********)
3889: Found username: admin and password: ******** in cookie. (Maybe #: and name:  too...)
3898: Leaving subroutine: cookieLogin --> return code is 1
2859: Using YaBB Authentication (type 3)
2865: Looking for YaBB 2 file: [/services/webpages/mysite.com/cgi-bin/forum/Members/admin.vars]
2900: Looking for YaBB file: /services/webpages/mysite.com/cgi-bin/forum/Members/admin.dat
2912: Password / Displayname: [********] [Administrator]
10401: DBI Fail: [1]
3255: Entering subroutine: checkPassword(********,********);
3255: Entering subroutine: checkPassword(********,********);
3154: Username: admin
3155: Entered Password: ********
3156: Stored Password: ********
3161: Authenticated: 1
3169: Username: admin : Password: ******** : Cookielogin: 1 : Auth: 1 : Header: 1
3227: Did authentication come from a cookie? ($::cookielogin): 1
3229: Leaving subroutine: Authenticate

---------------------------------------------------------------------------------------------------------------
Then I log out of that account and relogin into the forum with the following:

username- test
password- ****

album6.5 upload page will autoload the correct username/password

8870: Cookie Contents Follow:
8884: [eblah_pw] = [****]
8884: [eblah_un] = [test]
8884: [Error404] = [11]
8884: [eblah_Logout1] = [$username]
8887: END OF COOKIE

2773: Entering subroutine: Authenticate
3614: Entering subroutine: cookieLogin
3873: [eblah_pw] = [****] (u:-p:)
3788: Found e-Blah password info: eblah_pw
3790: $mypassword set to ****
3873: [eblah_un] = [test] (u:-p:****)
3780: Found e-Blah username: eblah_un
3782: $myusername set to test
3873: [Error404] = [11] (u:test-p:****)
3873: [eblah_Logout1] = [$username] (u:test-p:****)
3889: Found username: test and password: **** in cookie. (Maybe #: and name:  too...)
3898: Leaving subroutine: cookieLogin --> return code is 1
2859: Using YaBB Authentication (type 3)
2865: Looking for YaBB 2 file: [/services/webpages/mysite.com/cgi-bin/forum/Members/test.vars]
2900: Looking for YaBB file: /services/webpages/mysite.com/cgi-bin/forum/Members/test.dat
2912: Password / Displayname: [****] [test]
10401: DBI Fail: [1]
3255: Entering subroutine: checkPassword(****,****);
3255: Entering subroutine: checkPassword(****,****);
3154: Username: test
3155: Entered Password: ****
3156: Stored Password: ****
3161: Authenticated: 1
3169: Username: test : Password: **** : Cookielogin: 1 : Auth: 1 : Header: 1
3227: Did authentication come from a cookie? ($::cookielogin): 1
3229: Leaving subroutine: Authenticate

---------------------------------------------------------------------------------------------------------------
I log out of that account and then try to relogin to the first account again:

Username- admin
Password- ********

album6.5 upload page will autoload:

Username- eblah_Logout2
Password- ********

8870: Cookie Contents Follow:
8884: [eblah_pw] = [********]
8884: [eblah_un] = [admin]
8884: [Error404] = [12]
8884: [eblah_Logout1] = [$username]
8884: [eblah_Logout2] = [$username]
8887: END OF COOKIE

2773: Entering subroutine: Authenticate
3614: Entering subroutine: cookieLogin
3873: [eblah_pw] = [********] (u:-p:)
3788: Found e-Blah password info: eblah_pw
3790: $mypassword set to ********
3873: [eblah_un] = [admin] (u:-p:********)
3780: Found e-Blah username: eblah_un
3782: $myusername set to admin
3873: [Error404] = [12] (u:admin-p:********)
3873: [eblah_Logout1] = [$username] (u:admin-p:********)
3850: Found generic userid info: eblah_Logout2
3852: $myusername set to eblah_Logout2
3873: [eblah_Logout2] = [$username] (u:eblah_Logout2-p:********)
3889: Found username: eblah_Logout2 and password: ******** in cookie. (Maybe #: and name:  too...)
3898: Leaving subroutine: cookieLogin --> return code is 1
2859: Using YaBB Authentication (type 3)
2865: Looking for YaBB 2 file: [/services/webpages/mysite.com/cgi-bin/forum/Members/eblah_Logout2.vars]
2900: Looking for YaBB file: /services/webpages/mysite.com/cgi-bin/forum/Members/eblah_Logout2.dat

---------------------------------------------------------------------------------------------------------------
The username is set "eblah_Logout2" until you clear the cookies....

:-)





 

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Another E-Blah authentication problem
« Reply #12 on: February 02, 2006, 17:57:03 »
Ok, I see what's going on here... If you can make changes to your album.pl, find this (near line 3847):

Code: [Select]
# Check for a general userid
if ($lastchip=~/userid/i || $lastchip=~/name/i && $lastchip!~/ogout/i)

and change it to:

Code: [Select]
# Check for a general userid
if (($lastchip=~/userid/i || $lastchip=~/name/i) && $lastchip!~/ogout/i)

Let me know if that solves it and I'll update the zip file.

Cheers
Mike

Offline Zippy

  • album.pl User
  • *
  • Posts: 18
  • Karma: +0/-0
Re: Another E-Blah authentication problem
« Reply #13 on: February 02, 2006, 22:38:40 »
I made the change, but it did not make any difference. Same thing..

-clear cookies to get rid of "eblah_Logout2" username
-login to admin account OK
-logout of admin account
-login to test account OK
-logout of test account
-log back in to admin account and username is set as "eblah_Logout2"


The debug code is still the same as above. :(


Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Another E-Blah authentication problem
« Reply #14 on: February 03, 2006, 11:33:46 »
Ok, try this one then...

Code: [Select]
if (($lastchip=~/userid/i || $lastchip=~/name/i) && ($lastchip!~/ogout/i && $chip!~/ogout/i))
We'll get it yet! :)