[Refdb-users] Re: Web Access Problems
Status: Beta
Brought to you by:
mhoenicka
|
From: Daniel H. <da...@se...> - 2003-03-25 21:31:14
|
Thanks Markus. I tried that and discovered that nothing happend when I
tried the web interface. So I wrote a quick perl script to see if
something was happening with the username/password/database and cgi;
everything appeared to check out here. Next, I modified the refdbc.c
code (line 3517) to see if I could print the username when the refdbc is
called. Now when refdbc is called via cgi the error message prints:
'' is an incorrect username
incorrect username.
3516 else if (!strcmp(varname, "username")) {
3517 fprintf(stderr,"\ '%s' is an incorrect username\n",username); //daniel's Code
3518 if (!username[0] && getlogin()) {
As I know very very little about CGI and what is happening in refdbc.c, I would appreciate any input.
-----------
refdb0.9.2a
Mozilla 1.1
GNU/Linux Mandrake 9.0
apache-1.3.26
mysql-3.23.52
>
>
>
>
> From: "Markus Hoenicka" <mar...@mh...>
> Date: Tue, 25 Mar 2003 00:08:40 +0100
> To: ref...@li...
> Subject: [Refdb-users] web access problems
>
> Hi,
>
> you can run refdbd with log level set to 7 (e.g. refdbd -s -e 0 -l
> 7). This will show the username/password that refdbc sent to the
> server.
>
> regards,
> Markus
>
> Daniel Hyduke writes:
> > I have just started using refdb (0.9.2a), on GNU/Linux Mandrake 9.0 with
> > apache-1.3.26 and mysql-3.23.52, and am having problems with the web
> > interface. The client works perfectly from the commandline but when I
> > try to access the database through the web interface I get an internal
> > server error. I have inserted the tail of my webserver and refdbd logs
> > below. The cookie and the username, password, and database are
> > correct. I have the correct grant for MySQL. I have checked the
> > mailing list, but none of the suggestions worked for me. Does anybody
> > have any ideas? Also, is there anyway to see the command that is issued
> > when refdbc is called so that I can see if the correct
> > usr/paswword/database is being passed?
> >
> > *********httpd log**********
> > incorrect username
> > [Mon Mar 24 14:02:17 2003] [error] [client 128.97.83.249] Premature end
> > of script headers: /usr/local/www/internal/cgi-bin/refdbc
> > incorrect username
> > [Mon Mar 24 14:05:36 2003] [error] [client 128.97.83.249] Premature end
> > of script headers: /usr/local/www/internal/cgi-bin/refdbc
> > incorrect username
> > [Mon Mar 24 14:07:00 2003] [error] [client 128.97.83.249] Premature end
> > of script headers: /usr/local/www/internal/cgi-bin/refdbc
> > incorrect username
> > [Mon Mar 24 14:07:09 2003] [error] [client 128.97.83.249] Premature end
> > of script headers: /usr/local/www/internal/cgi-bin/refdbc
> > incorrect username
> > [Mon Mar 24 14:19:27 2003] [error] [client 128.97.83.249] Premature end
> > of script headers: /usr/local/www/internal/cgi-bin/refdbc
> >
> > *********refdbd.log**********
> > 6:pid=10299:Mon Mar 24 22:09:01 2003:serving client on fd 6 with
> > protocol version 1
> > 6:pid=10299:Mon Mar 24 22:09:01 2003:child finished client on fd 6
> > 6:pid=3205:Mon Mar 24 22:09:01 2003:parent removing client on fd 6
> > 6:pid=3205:Mon Mar 24 22:09:01 2003:server waiting n_max_fd=5
> > 6:pid=3205:Mon Mar 24 22:09:01 2003:child exited with code 0
> > 6:pid=3205:Mon Mar 24 22:09:01 2003:server waiting n_max_fd=5
> > 6:pid=3205:Mon Mar 24 22:09:29 2003:adding client on fd 6
> > 6:pid=3205:Mon Mar 24 22:09:29 2003:server waiting n_max_fd=6
> > 6:pid=10305:Mon Mar 24 22:09:29 2003:serving client on fd 6 with
> > protocol version 1
> > 6:pid=10305:Mon Mar 24 22:09:29 2003:child finished client on fd 6
> >
> > --
> > Daniel Hyduke <da...@se...>
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Refdb-users mailing list
> > Ref...@li...
> > https://lists.sourceforge.net/lists/listinfo/refdb-users
> >
--
Daniel Hyduke <da...@se...>
|