Author Topic: problem logging in  (Read 2550 times)

0 Members and 1 Guest are viewing this topic.

Offline jgrossman

  • album.pl User
  • *
  • Posts: 4
  • Karma: +0/-0
problem logging in
« on: February 26, 2008, 13:08:03 »
Hello,

This is just a great scipt that is going to hopefully give me everything I need. The main problem I am having is that I am trying to use the flat file authentication but when I log in and try to rate a photo I get this message.

Must be logged in to add ratings!

I have realized it does not actually recognize my login. All I did was set the authentication to 1, and put the auth_db.txt file at the root of the server with a list of names and passwords. Have I missed something?

any help would be great.

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: problem logging in
« Reply #1 on: March 05, 2008, 12:59:17 »
Hi, thanks for giving album.pl a try... your best bet would be to turn on debugging and see if anything obvious pops out there. I know debugging can be wildly overwhelming, but maybe it will indicate that it can't read/find auth_db.txt or something similar.

Offline jgrossman

  • album.pl User
  • *
  • Posts: 4
  • Karma: +0/-0
Re: problem logging in
« Reply #2 on: March 05, 2008, 14:19:26 »
Hi Mike,

I had turned on debugging and the only things that caught my eye are these replies:

2763: Entering subroutine: Authenticate
3631: Entering subroutine: cookieLogin
3941: No login information found in cookies.
3945: Leaving subroutine: cookieLogin --> return code is 0
10433: DBI Fail: [1]
3246: Entering subroutine: checkPassword(,);
3246: Entering subroutine: checkPassword(,);
3121: Using Anonymous Authentication (type 0)
3145: Username:
3146: Entered Password:
3147: Stored Password:
3152: Authenticated: 1
3160: Username:  : Password:  : Cookielogin: 0 : Auth: 1 : Header: 1
3218: Did authentication come from a cookie? ($::cookielogin): 0
3220: Leaving subroutine: Authenticate


As you can see it does see the auth_db file. I have moved this file around several times and checked permissions on it. When it doesn't see the file it gives an error if you turn authentication to 1. What is happening when it does see the file is that it puts up a login button and you can put in any user name or password and it does not produce an error if that user name and password don't exist. It just keeps the login button still active. In other words you don't log in. Then when you try and post a comment it pop up the error that you have to be logged in to comment. If you put in a username and password that are in the auth_db file it still behaves the same way. Is there anything else you can suggest?
I
8388: Var [membersdir] = [/Volumes/ServerHD/Softproofing/website/album65/Members]
8413: Setting var: [membersdir=/Volumes/ServerHD/Softproofing/website/album65/Members] -- Result was [/Volumes/ServerHD/Softproofing/website/album65/Members:]
8388: Var [auth_db] = [/Volumes/ServerHD/Softproofing/website/album65/auth_db.txt]
8413: Setting var: [auth_db=/Volumes/ServerHD/Softproofing/website/album65/auth_db.txt] -- Result was [/Volumes/ServerHD/Softproofing/website/album65/auth_db.txt:]
8388: Var [member_subdir] = []

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: problem logging in
« Reply #3 on: March 07, 2008, 21:01:20 »
Hmmm, that's an odd one, the debug code shows you're definitely authenticating correctly. Might be a problem with cookies, do you know if any are being set in your browser? Once you've logged in it should feed the info from a cookie automatically and that would show up in the debug info.

Offline jgrossman

  • album.pl User
  • *
  • Posts: 4
  • Karma: +0/-0
Re: problem logging in
« Reply #4 on: March 10, 2008, 08:54:56 »
I have tried turning cookies on and off. Changing the location, permissions, and name of the auth_db.txt file. Nothing makes any difference. It always acts like it does not recognize the content of the file. It will never actually log me in.