[imp] Login (horde auth = 'imp') always returns "Login failed
for some reason..."
James Nikolich
jnikolic@compeuphoria.com
Fri, 2 Nov 2001 14:26:20 -0500 (EST)
On Fri, 2 Nov 2001, David Peoples wrote:
> That behavior of three sess_* files created, then three more, is definitely
> not normal. Each file represents a different session, so it's no wonder the
> state isn't getting saved. But I can't say for certain why this is happening.
>
> On my machine, loading the http://example.com/horde/imp page produces one
> sess_* file, 38 bytes long. Successfully logging in makes that file grow to
> 4039 bytes, and creates no other sess_* files. That is the behavior you want
> to aim for. <g>
>
> It is as if the individual pages on your machine are resetting the
> session_id() variable somewhere. Or else your copy of PHP is messed up
> somehow and not doing internally what it is supposed to with session_id().
> Three pages are loaded to get to the login screen.
>
> Do you perhaps have an auto_prepend_file or auto_append_file set up? If so,
> show us the contents. Maybe something in there is messing you up. And since
> this is looking more like a PHP problem, show us the output of phpinfo().
I was starting to think that my problem is related to configuration. I
only have the 1 prepend line that I lifted out of your suggestion to use
file-based session storage:
#
# PHP Stuff
#
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag track_errors On
php_admin_value session.save_handler 'files'
php_value session.save_path '/usr/lib/apache/var'
php_value auto_prepend_file '/var/www/html/horde/config/prepend.inc.php'
The contents of this file are also what you suggested:
<?php
ini_set("session.save_handler", "files");
?>
The phpinfo() output is as follows (it's a bit long - sorry):
PHP Version 4.0.5
System Linux biblios.compeuphoria.com 2.4.9 #3 Thu Aug 30 20:26:46 EDT
2001 i586 unknown
Build Date Oct 26 2001
Configure Command './configure' '--with-apxs' '--prefix=/usr'
'--with-config-file-path=/etc' '--disable-debug' '--enable-pic'
'--enable-shared' '--enable-inline-optimization'
'--with-exec-dir=/usr/bin' '--with-regex=system' '--with-gettext'
'--with-gd' '--with-jpeg-dir=/usr' '--with-png' '--with-zlib' '--with-db2'
'--with-db3' '--with-gdbm' '--enable-debugger' '--enable-magic-quotes'
'--enable-safe-mode' '--enable-sockets' '--enable-sysvsem'
'--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-ftp'
'--enable-wddx' '--with-mysql' '--without-oracle' '--without-oci8'
'--with-xml' '--with-pgsql' '--with-imap=/usr/local/lib/imap'
'--with-openssl=/usr' '-with-kerberos'
Server API Apache
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php.ini
ZEND_DEBUG disabled
Thread Safety disabled
This program makes use of the Zend scripting language engine:
Zend Engine v1.0.5, Copyright (c) 1998-2001 Zend Technologies
--------------------------------------------------------------------------------
PHP 4.0 Credits
--------------------------------------------------------------------------------
Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference
On On
allow_url_fopen
1 1
arg_separator
& &
arg_separator.input
& &
arg_separator.output
& &
asp_tags
Off Off
auto_append_file
no value no value
auto_prepend_file
/var/www/html/horde/config/prepend.inc.php
browscap
no value no value
default_charset
no value no value
default_mimetype
text/html text/html
define_syslog_variables
Off Off
disable_functions
no value no value
display_errors
On On
display_startup_errors
Off Off
doc_root
no value no value
enable_dl
On On
error_append_string
Off Off
error_log
no value no value
error_prepend_string
Off Off
error_reporting
2039 2039
expose_php
On On
extension_dir
./ ./
file_uploads
1 1
gpc_order
GPC GPC
highlight.bg
#FFFFFF #FFFFFF
highlight.comment
#FF9900 #FF9900
highlight.default
#0000CC #0000CC
highlight.html
#000000 #000000
highlight.keyword
#006600 #006600
highlight.string
#CC0000 #CC0000
html_errors
On On
ignore_user_abort
Off Off
implicit_flush
Off Off
include_path
/usr/lib/php /usr/lib/php
log_errors
Off Off
magic_quotes_gpc
Off Off
magic_quotes_runtime
Off Off
magic_quotes_sybase
Off Off
max_execution_time
30 30
open_basedir
no value no value
output_buffering
Off Off
output_handler
no value no value
post_max_size
8M 8M
precision
14 14
register_argc_argv
On On
register_globals
On On
safe_mode
Off Off
safe_mode_exec_dir
no value no value
sendmail_from
me@localhost.com me@localhost.com
sendmail_path
/usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
short_open_tag
On On
SMTP
localhost localhost
sql.safe_mode
Off Off
track_errors
On Off
upload_max_filesize
2M 2M
upload_tmp_dir
no value no value
user_dir
no value no value
variables_order
EGPCS EGPCS
y2k_compliance
Off Off
zlib
ZLib Support enabled
'zlib:' fopen wrapper enabled
Compiled Version 1.1.3
Linked Version 1.1.3
yp
YP Support enabled
xml
XML Support active
wddx
WDDX Support enabled
standard
Regex Library System library enabled
Dynamic Library Support enabled
Path to sendmail /usr/sbin/sendmail -t -i
Directive Local Value Master Value
assert.active
1 1
assert.bail
0 0
assert.callback
no value no value
assert.quiet_eval
0 0
assert.warning
1 1
safe_mode_allowed_env_vars
PHP_ PHP_
safe_mode_protected_env_vars
LD_LIBRARY_PATH LD_LIBRARY_PATH
session.use_trans_sid
1 1
sockets
sockets support enabled
session
Session Support enabled
Directive Local Value Master Value
session.auto_start
Off Off
session.cache_expire
180 180
session.cache_limiter
nocache nocache
session.cookie_domain
no value no value
session.cookie_lifetime
0 0
session.cookie_path
/ /
session.cookie_secure
Off Off
session.entropy_file
no value no value
session.entropy_length
0 0
session.gc_maxlifetime
1440 1440
session.gc_probability
1 1
session.name
PHPSESSID PHPSESSID
session.referer_check
no value no value
session.save_handler
files files
session.save_path
/usr/lib/apache/var /tmp
session.serialize_handler
php php
session.use_cookies
On On
posix
Revision $Revision: 1.27 $
pgsql
PostgreSQL Support enabled
Active Persistent Links 0
Active Links 0
Directive Local Value Master Value
pgsql.allow_persistent
On On
pgsql.max_links
Unlimited Unlimited
pgsql.max_persistent
Unlimited Unlimited
pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 3.4 22-Aug-2000
openssl
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.6 24 Sep 2000
mysql
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 3.23.32
MYSQL_INCLUDE
MYSQL_LFLAGS
MYSQL_LIBS
Directive Local Value Master Value
mysql.allow_persistent
On On
mysql.default_host
no value no value
mysql.default_password
no value no value
mysql.default_port
no value no value
mysql.default_socket
no value no value
mysql.default_user
no value no value
mysql.max_links
Unlimited Unlimited
mysql.max_persistent
Unlimited Unlimited
imap
IMAP Support enabled
IMAP c-Client Version 4.1
gettext
GNU GetText Support enabled
gd
GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with TTF library
JPG Support enabled
PNG Support enabled
WBMP Support enabled
ftp
FTP support enabled
dba
DBA support enabled
Supported handlers gdbm db2 db3
apache
APACHE_INCLUDE
APACHE_TARGET
Apache Version Apache/1.3.19
Apache Release 10319100
Apache API Version 19990320
Hostname:Port www.compeuphoria.com:80
User/Group apache(48)/48
Max Requests Per Child: 100
Keep Alive: on
Max Per Connection: 100
Timeouts Connection: 300
Keep-Alive: 15
Server Root /etc/httpd
Loaded Modules mod_ssl, mod_dav, mod_php4, mod_perl, mod_setenvif, mod_so,
mod_headers, mod_expires, mod_auth_db, mod_auth_anon, mod_auth,
mod_access, mod_rewrite, mod_alias, mod_userdir, mod_actions, mod_imap,
mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_info,
mod_status, mod_negotiation, mod_mime, mod_log_referer, mod_log_agent,
mod_log_config, mod_env, mod_vhost_alias, http_core
Apache Environment
Variable Value
DOCUMENT_ROOT /var/www/html
HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, */*
HTTP_ACCEPT_LANGUAGE en-us
HTTP_CONNECTION keep-alive
HTTP_COOKIE chuckmIMPlang=en; horde_language=en;
PHPSESSID=f55be931e4b31a35a80f9a987c0fa503
HTTP_HOST www.compeuphoria.com
HTTP_REFERER http://www.compeuphoria.com/horde/test.php
HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
HTTP_VIA 1.1 - (DeleGate/7.1.2)
PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
REMOTE_ADDR 199.212.40.118
REMOTE_PORT 3264
SCRIPT_FILENAME /var/www/html/horde/test.php
SERVER_ADDR 10.3.0.2
SERVER_ADMIN root@localhost
SERVER_NAME www.compeuphoria.com
SERVER_PORT 80
SERVER_SIGNATURE Apache/1.3.19 Server at www.compeuphoria.com Port 80
SERVER_SOFTWARE Apache/1.3.19 (Unix) (Red-Hat/Linux) mod_ssl/2.8.1
OpenSSL/0.9.6 DAV/1.0.2 PHP/4.0.5 mod_perl/1.24_01
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING mode=phpinfo
REQUEST_URI /horde/test.php?mode=phpinfo
SCRIPT_NAME /horde/test.php
HTTP Headers Information
HTTP Request Headers
HTTP Request GET /horde/test.php?mode=phpinfo HTTP/1.1
Accept image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, */*
Accept-Language en-us
Connection keep-alive
Cookie chuckmIMPlang=en; horde_language=en;
PHPSESSID=f55be931e4b31a35a80f9a987c0fa503
Host www.compeuphoria.com
Referer http://www.compeuphoria.com/horde/test.php
User-Agent Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
Via 1.1 - (DeleGate/7.1.2)
HTTP Response Headers
X-Powered-By PHP/4.0.5
Expires Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma no-cache
Keep-Alive timeout=15, max=100
Connection Keep-Alive
Transfer-Encoding chunked
Content-Type text/html
Additional Modules
sysvshm
sysvsem
Environment
Variable Value
PWD /var/www/html/horde/config
HOSTNAME biblios.compeuphoria.com
QTDIR /usr/lib/qt-2.3.0
MANPATH :/opt/schily/man
LESSOPEN |/usr/bin/lesspipe.sh %s
ENV ~/.kshrc
VISUAL vi
KDEDIR /usr
USER root
LS_COLORS
no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
MACHTYPE i386-redhat-linux-gnu
INPUTRC /etc/inputrc
MAIL /var/spool/mail/root
LANG en_US
LOGNAME root
SHLVL 2
SHELL /bin/ksh
HOSTTYPE i386
HISTSIZE 1000
OSTYPE linux-gnu
TERM vt100
HOME /root
SSH_ASKPASS /usr/libexec/openssh/gnome-ssh-askpass
PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
_ /sbin/initlog
PHP Variables
Variable Value
PHP_SELF /horde/test.php
HTTP_GET_VARS["mode"] phpinfo
HTTP_COOKIE_VARS["chuckmIMPlang"] en
HTTP_COOKIE_VARS["horde_language"] en
HTTP_COOKIE_VARS["PHPSESSID"] f55be931e4b31a35a80f9a987c0fa503
HTTP_SERVER_VARS["DOCUMENT_ROOT"] /var/www/html
HTTP_SERVER_VARS["HTTP_ACCEPT"] image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, */*
HTTP_SERVER_VARS["HTTP_ACCEPT_LANGUAGE"] en-us
HTTP_SERVER_VARS["HTTP_CONNECTION"] keep-alive
HTTP_SERVER_VARS["HTTP_COOKIE"] chuckmIMPlang=en; horde_language=en;
PHPSESSID=f55be931e4b31a35a80f9a987c0fa503
HTTP_SERVER_VARS["HTTP_HOST"] www.compeuphoria.com
HTTP_SERVER_VARS["HTTP_REFERER"]
http://www.compeuphoria.com/horde/test.php
HTTP_SERVER_VARS["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 5.5;
Windows NT 5.0)
HTTP_SERVER_VARS["HTTP_VIA"] 1.1 - (DeleGate/7.1.2)
HTTP_SERVER_VARS["PATH"] /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
HTTP_SERVER_VARS["REMOTE_ADDR"] 199.212.40.118
HTTP_SERVER_VARS["REMOTE_PORT"] 3264
HTTP_SERVER_VARS["SCRIPT_FILENAME"] /var/www/html/horde/test.php
HTTP_SERVER_VARS["SERVER_ADDR"] 10.3.0.2
HTTP_SERVER_VARS["SERVER_ADMIN"] root@localhost
HTTP_SERVER_VARS["SERVER_NAME"] www.compeuphoria.com
HTTP_SERVER_VARS["SERVER_PORT"] 80
HTTP_SERVER_VARS["SERVER_SIGNATURE"] Apache/1.3.19 Server at
www.compeuphoria.com Port 80
HTTP_SERVER_VARS["SERVER_SOFTWARE"] Apache/1.3.19 (Unix) (Red-Hat/Linux)
mod_ssl/2.8.1 OpenSSL/0.9.6 DAV/1.0.2 PHP/4.0.5 mod_perl/1.24_01
HTTP_SERVER_VARS["GATEWAY_INTERFACE"] CGI/1.1
HTTP_SERVER_VARS["SERVER_PROTOCOL"] HTTP/1.1
HTTP_SERVER_VARS["REQUEST_METHOD"] GET
HTTP_SERVER_VARS["QUERY_STRING"] mode=phpinfo
HTTP_SERVER_VARS["REQUEST_URI"] /horde/test.php?mode=phpinfo
HTTP_SERVER_VARS["SCRIPT_NAME"] /horde/test.php
HTTP_SERVER_VARS["PATH_TRANSLATED"] /var/www/html/horde/test.php
HTTP_SERVER_VARS["PHP_SELF"] /horde/test.php
HTTP_SERVER_VARS["argv"] Array
(
[0] => mode=phpinfo
)
HTTP_SERVER_VARS["argc"] 1
HTTP_ENV_VARS["PWD"] /var/www/html/horde/config
HTTP_ENV_VARS["HOSTNAME"] biblios.compeuphoria.com
HTTP_ENV_VARS["QTDIR"] /usr/lib/qt-2.3.0
HTTP_ENV_VARS["MANPATH"] :/opt/schily/man
HTTP_ENV_VARS["LESSOPEN"] |/usr/bin/lesspipe.sh %s
HTTP_ENV_VARS["ENV"] ~/.kshrc
HTTP_ENV_VARS["VISUAL"] vi
HTTP_ENV_VARS["KDEDIR"] /usr
HTTP_ENV_VARS["USER"] root
HTTP_ENV_VARS["LS_COLORS"]
no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
HTTP_ENV_VARS["MACHTYPE"] i386-redhat-linux-gnu
HTTP_ENV_VARS["INPUTRC"] /etc/inputrc
HTTP_ENV_VARS["MAIL"] /var/spool/mail/root
HTTP_ENV_VARS["LANG"] en_US
HTTP_ENV_VARS["LOGNAME"] root
HTTP_ENV_VARS["SHLVL"] 2
HTTP_ENV_VARS["SHELL"] /bin/ksh
HTTP_ENV_VARS["HOSTTYPE"] i386
HTTP_ENV_VARS["HISTSIZE"] 1000
HTTP_ENV_VARS["OSTYPE"] linux-gnu
HTTP_ENV_VARS["TERM"] vt100
HTTP_ENV_VARS["HOME"] /root
HTTP_ENV_VARS["SSH_ASKPASS"] /usr/libexec/openssh/gnome-ssh-askpass
HTTP_ENV_VARS["PATH"] /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
HTTP_ENV_VARS["_"] /sbin/initlog
Jim
>
> David
>
> On Thursday 01 November 2001 05:14 pm, you wrote:
> > OK, I switched over to file-based session storage, and confirmed that
> > various "sess_*" files are being created. I'm not familiar with PHP
> > session-management, but I'll describe what I observed:
> >
> > Immediately after pointing my browser at
> > "http://www.example.com/horde/imp", I got the login screen. Three
> > "sess_*" files were created, two of which were 0-length and the third
> > 38-bytes long. It's contents were:
> >
> > prefs_cache|a:1:{s:7:"_filled";a:0:{}}
> >
> > After attempting (and failing) to log in, I noticed that 3 more "sess_*"
> > files were created, one of which was 0-length, one 38 bytes long, and one
> > 536 bytes long. This last one appeared to have meaningful information in
> > it, such as values for "userID", "password", "timestamp", "user", "pass",
> > etc.
> >
> > The log below shows the value of $GLOBALS[HTTP_SESSION_VARS]['imp'] before
> > and after it is assigned &$imp. Before, it's value is [0]. Afterwards,
> > its value is [1]. However, in IMP::setupSession, it still fails the
> > isset() test.
> >
> > Based on what's happening here, I'm wondering whether I've screwed up some
> > fundamental PHP or Apache configuration setting somewhere. How is
> > $GLOBALS[HTTP_SESSION_VARS]['imp'] set and preserved across the individual
> > file-level scope?...
> >
> > (BTW, sorry to be cluttering up the mailing list this way. I DO
> > appreciate the advice and help folks have been supplying...)
> >
> > Jim
>
>
>From g2@magestudios.net Date: Fri, 2 Nov 2001 16:42:46 -0800
Return-Path: <g2@magestudios.net>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 14603 invoked from network); 3 Nov 2001 00:42:49 -0000
Received: from softdnserror (HELO gandalf.magestudios.net) (66.183.12.244)
by clark.horde.org with SMTP; 3 Nov 2001 00:42:49 -0000
Received: (qmail 22202 invoked from network); 3 Nov 2001 00:42:46 -0000
Received: from unknown (HELO localhost) (127.0.0.1)
by localhost with SMTP; 3 Nov 2001 00:42:46 -0000
Received: from isaruman.magestudios.net ( [isaruman.magestudios.net])
as user g2@magestudios.net@mail.magestudios.net by mail.magestudios.net with HTTP;
Fri, 2 Nov 2001 16:42:46 -0800
Message-ID: <1004748166.3be33d8624e0b@mail.magestudios.net>
Date: Fri, 2 Nov 2001 16:42:46 -0800
From: Gerard Escalante <g2@magestudios.net>
To: imp@lists.horde.org
References: <1004667155.3be2011362ca7@mail.magestudios.net> <1004720963.3be2d343496f1@marina.horde.org>
In-Reply-To: <1004720963.3be2d343496f1@marina.horde.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
Subject: Re: [imp] vmailmgr's long usernames
I am using a copy of the HEAD tagged CVS tree.
Regards,
Gerard Escalante
g2@magestudios.net
Quoting Chuck Hagenbuch <chuck@horde.org>:
> Quoting Gerard Escalante <g2@magestudios.net>:
>
> > I am using vmailmgr for my domain's e-mail. This requires me to use the
> full
> > e-mail address as a username. Is there any way, with Horde/IMP, to have it
>
> > automatically append the '@domain' portion to the username? So if my
> > username is 'g2@magestudios.net' I would only have to type in 'g2'?
>
> What version of IMP are you using?
>
> -chuck
>
> --
> Charles Hagenbuch, <chuck@horde.org>
> "What was and what may be, lie, like children whose faces we cannot see, in
> the
> arms of silence. All we ever have is here, now." - Ursula K. Le Guin
>
> --
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
>
>