https://bz.apache.org/bugzilla/show_bug.cgi?id=59039
Bug ID: 59039
Summary: Digest AuthName not working as expected.
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core
Assignee: [email protected]
Reporter: [email protected]
Created attachment 33579
--> https://bz.apache.org/bugzilla/attachment.cgi?id=33579&action=edit
My Virtual host test configuration.
I am using the latest code checked out by svn on 22-feb-2016
# apachectl -V
Server version: Apache/2.5.0-dev (Unix)
Server built: Feb 22 2016 05:32:38
Server's Module Magic Number: 20150222:12
Server loaded: APR 2.0.0-dev, PCRE 8.35 2014-04-04
Compiled using: APR 2.0.0-dev, PCRE 8.35 2014-04-04
Architecture: 64-bit
Server MPM: event
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/usr/local/apache2"
-D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
-D DEFAULT_PIDLOG="httpd.pid"
-D DEFAULT_SCOREBOARD="apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
When I try to access via the URL "http://joe.test/phpinfo.php" the browser
login shows the name "joe.test" as expected.
But I always get the error:
[auth_digest:error] [pid 23131:tid 140076818339584] [client 10.8.0.216:58058]
AH01788: realm mismatch - got `joe.test' but expected `%{HTTP_HOST}'
But if I manually set
AuthName "joe.test"
Everything works fine.
What I think is happening is that the "AuthName" is getting translated for the
dialog, but this translation is not being used for the error checking for the
reply from the login dialog.
It doesn't appear to be anything with the database as it errors before doing
the database query. And the manually set AuthName does work.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]