Hello Paul,

Peter Slacik wrote:
Paul Lesneiwski wrote:
  
Peter,

Thanks for all the details.  It's a bit hard to reconcile the error
messages from your maillog with each of your logins, but it does look
like the correct IMAP server is only being used for the first login and
not the 2nd one.  Yes, the debugger plugin, if enabled, should help you
see any PHP errors if they exist.
    
I've seen the debugger plugin output after clicking on the link (nothing
suspicious there), it is somewhere inbetween the links around on the
screen just behind Help, nut no idea how to use the plugin during login
process (probably some source editing necessary).
  
You should never get blank frames
without either the bad user/pwd message or a PHP error.  I would suggest
that you undo any patches, possibly reinstall again, and wait a few
hours for me to release the newest version of multilogin (should be out
very soon).  Show the results of your patch command and/or the code from
that file as patched, to be sure it is correct, then use tail -f to
follow your maillog when you log in as a user for each server, capturing
the messages separately, etc.

- Paul
    
I'm looking forward for the new version. I'll do the changes as you
suggested.
  
So I did the following:
[client 10.1.0.240] PHP Warning:  main(../functions/global.php): failed to open stream: Permission denied in /usr/share/squirrelmail/functions/strings.php on line 34
[client 10.1.0.240] PHP Fatal error:  main(): Failed opening required '../functions/global.php' (include_path='.:/usr/share/pear') in /usr/share/squirrelmail/functions/strings.php on line 34

Oct 28 18:30:51 orcS1 kernel: audit(1130517051.370:0): avc:  denied  { getattr } for  pid=8776 exe=/usr/sbin/httpd path=/usr/share/squirrelmail/functions/global.php dev=dm-0 ino=3752021 scontext=root:system_r:httpd_t tcontext=root:object_r:tmp_t tclass=file
Oct 28 18:30:51 orcS1 kernel: audit(1130517051.370:0): avc:  denied  { read } for  pid=8776 exe=/usr/sbin/httpd name=global.php dev=dm-0 ino=3752021 scontext=root:system_r:httpd_t tcontext=root:object_r:tmp_t tclass=file

[28/Oct/2005:18:30:51 +0200] 10.1.0.240 TLSv1 DHE-RSA-AES256-SHA "GET /webmail/src/login.php HTTP/1.1" 26
10.1.0.240 - - [28/Oct/2005:18:30:51 +0200] "GET /webmail/src/login.php HTTP/1.1" 200 26
10.1.0.240 - - [28/Oct/2005:18:47:55 +0200] "GET /webmail/src/login.php HTTP/1.1" 200 950
10.1.0.240 - - [28/Oct/2005:18:47:55 +0200] "GET /webmail/images/sm_logo.png HTTP/1.1" 200 7396

[28/Oct/2005:18:47:55 +0200] 10.1.0.240 TLSv1 DHE-RSA-AES256-SHA "GET /webmail/src/login.php HTTP/1.1" 950
[28/Oct/2005:18:47:55 +0200] 10.1.0.240 TLSv1 DHE-RSA-AES256-SHA "GET /webmail/images/sm_logo.png HTTP/1.1" 7396

----------------------- 
I tried also to reinstall SqM and use multilogin without compatibility.I try to log in:

Oct 28 19:11:22 orcS1 master[22016]: about to exec /usr/lib/cyrus-imapd/imapd
Oct 28 19:11:22 orcS1 imap[22016]: executed
Oct 28 19:12:22 orcS1 master[2441]: process 21866 exited, status 0

10.1.0.240 - - [28/Oct/2005:19:11:22 +0200] "POST /webmail/src/redirect.php HTTP/1.1" 200 1323
[28/Oct/2005:19:11:22 +0200] 10.1.0.240 TLSv1 DHE-RSA-AES256-SHA "POST /webmail/src/redirect.php HTTP/1.1" 1323

Notice: Undefined index: settingsWithEmbeddedPHP in /usr/share/squirrelmail/plugins/multilogin/functions.php on line 281
Stack Trace:

multilogin_sqoverride_config_do()
/usr/share/squirrelmail/plugins/multilogin/functions.php
line 281

    multilogin_sqoverride_config_do(Array[1])
    /usr/share/squirrelmail/plugins/multilogin/functions.php
    line 73

        multilogin_registerimapserver_do(Array[1])
        /usr/share/squirrelmail/plugins/multilogin/setup.php
        line 60

            multilogin_registerimapserver(Array[1])
            /usr/share/squirrelmail/functions/plugin.php
            line 53

                do_hook("login_before")
                /usr/share/squirrelmail/src/redirect.php
                line 76


My browser information: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) My web server information: PHP Version 4.3.11 PHP Extensions (List) * 0 = yp * 1 = xml * 2 = wddx * 3 = tokenizer * 4 = sysvshm * 5 = sysvsem * 6 = standard * 7 = sockets * 8 = shmop * 9 = session * 10 = pspell * 11 = posix * 12 = pcre * 13 = overload * 14 = mime_magic * 15 = iconv * 16 = gmp * 17 = gettext * 18 = ftp * 19 = exif * 20 = dio * 21 = dbx * 22 = dba * 23 = curl * 24 = ctype * 25 = calendar * 26 = bz2 * 27 = bcmath * 28 = zlib * 29 = openssl * 30 = apache2handler * 31 = domxml * 32 = gd * 33 = ldap * 34 = mbstring * 35 = mysql * 36 = ncurses * 37 = odbc SquirrelMail-specific information: Version: 1.4.5-1 Plugins (List) * 0 = debugger * 1 = delete_move_next * 2 = squirrelspell * 3 = newmail * 4 = info * 5 = filters * 6 = abook_take * 7 = sent_subfolders * 8 = bug_report * 9 = calendar * 10 = message_details * 11 = listcommands * 12 = mail_fetch * 13 = translate * 14 = administrator * 15 = spamcop * 16 = fortune * 17 = calendar_file_backend * 18 = secure_login * 19 = attachment_tnef * 20 = address_add * 21 = autocomplete * 22 = html_mail * 23 = multilogin My IMAP server information: Server type: cyrus Server info: * OK [HIDDEN] Cyrus IMAP4 v2.2.10-Invoca-RPM-2.2.10-1.RHEL4.1 server ready Capabilities: IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE STARTTLS LISTEXT LIST-SUBSCRIBED X-NETSCAPE
[28/Oct/2005:19:23:00 +0200] 10.1.0.240 TLSv1 DHE-RSA-AES256-SHA "GET /webmail/ HTTP/1.1" 37
[28/Oct/2005:19:23:00 +0200] 10.1.0.240 TLSv1 DHE-RSA-AES256-SHA "GET /webmail/src/login.php HTTP/1.1" 1165

10.1.0.240 - - [28/Oct/2005:19:23:00 +0200] "GET /webmail/ HTTP/1.1" 302 37
10.1.0.240 - - [28/Oct/2005:19:23:00 +0200] "GET /webmail/src/login.php HTTP/1.1" 200 1165


Seems the compatibility plugin having problem on my server, something to do with /usr/share/squirrelmail/functions/strings.php on line 34. There is:
/**
 * There can be a circular issue with includes, where the $version string is
 * referenced by the include of global.php, etc. before it's defined.
 * For that reason, bring in global.php AFTER we define the version strings.
 */
require_once(SM_PATH . 'functions/global.php');


The whole login process is failing differently compared to previously (this time I got the vertical splitter and two blank frames, this time I get only one whole blank frame. Probably because of newer multilogin and compatibility plugins.
I can't find any similar problem on the mailing l
ist (except threads "[SM-PLUGINS] Multilogin - Fatal Error because of load_config()", "[SM-PLUGINS] nntp plugin  config problem !!!" and "[SM-PLUGINS] compatibility plugin  & RHEL4", but the problems doesn't match mine).

Thanks for help
Peter Slacik