Odd problem with password authentication
| From: | Bill Mackiewicz | Date: | Tue, 07 Mar 2000 18:14:37 +0000 |
| Subject: | Odd problem with password authentication | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-16511@lists.php.net to get a copy of this message | ||
Good afternoon,
I've run into an odd problem while using php and Apache, specifically when
dealing with the htpasswd bin and password authentication to get to certain
files.
I'm using Apache 1.3.9 with php-3.0.15 as a module; php itself has been
compiled with support for PostgreSQL 6.5.3.
It turns out that after I've compiled the whole package, Apache's htpasswd
program will core dump when trying to encrypt the password for the user I've
submitted. Also, if I have password-protected a file or set of files using
an .htaccess file, the httpd core dumps when trying to verify the username
and password from the resulting dialog box. I've noticed that the htpasswd
bin only does this when it's been linked with PostgreSQL's libpq.so, which
usually sits in /usr/local/pgsql/lib. If I modify the Makefile to not link
against it, the htpasswd bin responds correctly. I'm hestitant to do the
same thing to the httpd bin in case it requires that library for php to work
with PostgreSQL correctly.
I've included the stack trace that I received for this bug, as the FAQ
suggested. Has anyone run into this problem before, and if so, what is
the easiest solution (short of compiling with a different database). If
this turns out to be better served by the PostgreSQL or Apache folks, please
let me know. Thanks,
Bill
-----
Bill Mackiewicz Department 49
BBN Technologies Distributed Systems & Logistics
10 Moulton Street bmackiew@bbn.com
Cambridge, MA 02138 (617) 873-4840
-----
Stack trace follows:
Starting program: /u1/local/openmap-apache/bin/httpd -X -f /usr/local/openmap-apache/conf/httpd.conf
Program received signal SIGSEGV, Segmentation fault.
0xef552e84 in _libc_thr_keycreate () from /usr/lib/libc.so.1
(gdb) bt
#0 0xef552e84 in _libc_thr_keycreate () from /usr/lib/libc.so.1
#1 0xef780454 in _get_iobuf () from /usr/local/pgsql/lib/libpq.so
#2 0xef7804d8 in des_crypt () from /usr/local/pgsql/lib/libpq.so
#3 0xce388 in ap_validate_password ()
#4 0x96230 in authenticate_basic_user ()
#5 0x9e3b0 in run_method ()
#6 0x9e5f0 in ap_check_user_id ()
#7 0xbab5c in process_request_internal ()
#8 0xbaf7c in ap_process_request ()
#9 0xaeb50 in child_main ()
#10 0xaede4 in make_child ()
#11 0xaf000 in startup_children ()
#12 0xaf9f0 in standalone_main ()
#13 0xb05d8 in main ()