Gossamer Forum
Home : Products : DBMan : Customization :

Help for password lookup mod

Quote Reply
Help for password lookup mod
hi all

i've installed the original dbman script on my web site and tested al the functions
everything works well i'va translated it into french (i'm from france: paris) :-)
and again all works well

my problem came when i decided to install the password lookup mod made by jpdeni
when i tried to run the db.cgi i got "500 internal servor error" and i don't understand why

i've uploaded my db.cgi and html.pl files in txt format at this url:
http://www.ebesiens.ovh.org/dbman/

if anyone could have a look on them or better test them and tell me where the problem is
it would be great

thanks by advance to all of you

benoit

Quote Reply
Re: Help for password lookup mod In reply to
Try the following first:

1) Set the $db_debug variable to 1 in the default.cfg file....

Code:

$db_debug = 1;


2) Then check the syntax of the file by accessing your account via telnet...then use the following commmand line to check the syntax of db.cgi....

Code:

perl -c /cgi-bin/dbman/db.cgi


Copy the error messages you receive and then paste them in this Thread.

Regards,

Eliot Lee

Quote Reply
Re: Help for password lookup mod In reply to
thanks for your suggestion
i've made the debug mod in the default.cfg

but i don't have access to my account via telnet
i only have ftp access

so what can you suggest to me to solve this problem?

thanks

benoit


Quote Reply
Re: Help for password lookup mod In reply to
Uh...COPY the error message you receive via the DE-DEBUG REPORT and then PASTE the results in this Thread. Tongue

Regards,

Eliot

Quote Reply
Re: Help for password lookup mod In reply to
hi

i must stupid but i've configured my default.cfg in debug mode
but when i call the db.cgi script i only get this (fucking) "500 Internal Server Error" and nothing else

can you guess what's the problem?

my files are here:
http://www.ebesiens.ovh.org/dbman/

Quote Reply
Re: Help for password lookup mod In reply to
benoit,

I had the same 500 error prob you did couple days ago -- put it aside til I saw yr post. With that, I again, checked JPD's mod and found I missed something in the cut|copy|paste:
Code:
elsif ($in{'change_email_form'}) { unless ($db_userid eq "default") { &html_change_email_form; } else { &html_unauth; } }
elsif ($in{'change_email'}) { unless ($db_userid eq "default") { &change_email; } else { &html_unauth; } }
That may not be yr problem, but worth the check.

JR

Webmaster
http://www.izmirhigh.com/index.shtml
Quote Reply
Re: Help for password lookup mod In reply to
hi JR

Thank you for your help but in which file do i have to paste what you said
db.cgi?
html.pl?
default.cfg?

can you help

i want to succeed but i feel a little desesperate
if someone could paste the files correctly configured
or better send them to me by mail:
benoit@dausse.com

thanks to all

benoit

Quote Reply
Re: Help for password lookup mod In reply to
...gotta run, late for work but in yr db.cgi sub main remove the right bracket I've got in red, see if that works.
Code:
#### Following two lines added for secure_password_lookup mod
elsif ($in{'lookup_form'}) { &html_lookup_form; }
elsif ($in{'lookup'}) { &lookup; }
}

Webmaster
http://www.izmirhigh.com/index.shtml
Quote Reply
Re: Help for password lookup mod In reply to
thanks for your suggestion Jr
but it still does not work

i 've read again your post and when i search for the following lines:
elsif ($in{'change_email_form'}) { unless ($db_userid eq "default") { &html_change_email_form; } else { &html_unauth; } }
elsif ($in{'change_email'}) { unless ($db_userid eq "default") { &change_email; }else {&html_unauth; } }

either in db.cgi or html.pl i don't find them
wher did youy see them in the jpdeni's mod?

did you install the lookup password mod succesfully on your web site or not?

if someone did could you send me the files?

thanks
benoit

Quote Reply
Re: Help for password lookup mod In reply to
hi eliott

i've installed a debug mod in my db.cgi and html.pl files
and it gives me the following error in the error.txt file created:

syntax error at db.cgi line 126, near "elsif"
Execution of db.cgi aborted due to compilation errors.

when i look at line 126 there's the following:

# Auth Check Password has determined that the user has not logged in, so let's send
# him to the login screen.
elsif ($status eq "no login") { &html_login_form; } <----------- line 126
}

could you help?

all files are here:
http://www.ebesiens.ovh.org/dbman/

thanks
benoit

Quote Reply
Re: Help for password lookup mod In reply to
benoit,

When I initially looked at yr post, I simply bumped it against what I had, thought you had the "Change Email" option in yr Password Lookup. "After the fact", I looked at yr ref'd http://www.ebesiens.ovh.org/dbman/db_cgi.txt which told me you didn't have that option installed. Sorry, bout that, ignore my initial reply.

That said, I then ran the syntax of yr above db.cgi and found the problem I replied with this morning. When I removed the }, the syntax then appeared sound (no compilation errors). Before that I had received an error at line 115 (that right bracket problem).

Now you've further got an error at line 126? Think it's maybe Eliot's turn.

Sorry for any confusion.

JR