From: J. P. C. <pa...@lo...> - 2005-12-01 01:59:58
|
>>>Paul, I've been playing with the Makefile and now here's what i get: >>> >>>Nov 30 19:17:07 [imapd] Connection, ip=[::ffff:127.0.0.1] >>>Nov 30 19:17:07 [imapd] LOGIN, user=patrick, ip=[::ffff:127.0.0.1], >>>protocol=IMAP >>>Nov 30 19:17:07 [imapd] Connection, ip=[::ffff:127.0.0.1] >>>Nov 30 19:17:07 [imapd] LOGIN, user=patrick, ip=[::ffff:127.0.0.1], >>>protocol=IMAP >>>Nov 30 19:17:07 [imapd] LOGOUT, user=patrick, ip=[::ffff:127.0.0.1], >>>headers=0, body=0, time=0 >>> - Last output repeated twice - >>>Nov 30 19:17:07 [imapd] Connection, ip=[::ffff:127.0.0.1] >>>Nov 30 19:17:07 [imapd] LOGIN, user=patrick, ip=[::ffff:127.0.0.1], >>>protocol=IMAP >>>Nov 30 19:17:07 [imapd] LOGOUT, user=patrick, ip=[::ffff:127.0.0.1], >>>headers=0, body=0, time=0 >>> >>>neo script # sh test.sh >>>IMAP username: patrick >>>IMAP password: ***************** >>>No RC file path found >>>RESULT: 17 >>>No RC file path found >>>RESULT: 17 >>>No RC file path found >>>RESULT: 17 >>> >>> >>Looks like SERVERSIDEFILTERHOME is wrong. >> >> >> >> >>>If you do not need to perform additional tests, remove the file test_creds >>>Remove now? (Y/n): >>>My live Makefile is here: >>>http://lowmips.com:8000/squirrelmail/plugins/serversidefilter/script/Makefile >>> >>> >>Looks ok. Hrmph. >> >>Try opening script/filtercmd.c and look for this aroung line 702: >> >> return readconfigvar(SERVERSIDEFILTERHOME "/config.php", phpvar, >>filter_file, buflen) >> ? ERR_OK : ERR_NO_RC_FILE_PATH; >> >>Change it to: >> >> if (readconfigvar(SERVERSIDEFILTERHOME "/config.php", phpvar, >>filename, STR_MAX)) { >> strncat(filter_file, filename, (STR_MAX - >>strlen(filter_file) - 1)); >> return ERR_OK; >> } >> else { >> return ERR_NO_RC_FILE_PATH; >> } >> >>I can send a corrected file if you prefer. >> >> > >See attached replacement for filtercmd.c > > > Paul, i replaced my filtercmd.c with the one you gave me. neo script # ls -l total 184 drwxr-xr-x 2 root root 128 Nov 28 02:32 CVS -rw-r--r-- 1 root apache 6352 Nov 30 19:36 Makefile -rw-r--r-- 1 root root 6372 Nov 22 15:55 Makefile.ldap -rw-r--r-- 1 root root 6347 Nov 22 15:55 Makefile.mysql -rw-r--r-- 1 root root 4990 May 21 2005 README -rw-r--r-- 1 root root 3466 May 21 2005 checkcreds_cclient.c -rw-r--r-- 1 root root 5252 Nov 28 02:52 checkcreds_cclient.o -rw-r--r-- 1 root root 1774 May 21 2005 checkcreds_imap.c -rw-r--r-- 1 root root 3220 Nov 30 19:36 checkcreds_imap.o -rw-r--r-- 1 root root 0 Nov 30 19:36 filter -rw-r--r-- 1 root root 0 Nov 30 19:36 filter.orig -rwsr-x--- 1 root apache 25096 Nov 30 19:36 filtercmd -rw-rw-r-- 1 root root 27603 Nov 30 20:26 filtercmd.c -rw-r--r-- 1 root root 30720 Nov 30 20:53 filtercmd.c.tar -rw-r--r-- 1 root root 1691 May 21 2005 filtercmd.h -rw-r--r-- 1 root root 12768 Nov 30 19:36 filtercmd.o -rw-r--r-- 1 root root 492 May 21 2005 index.php drwxr-xr-x 3 root root 248 Nov 28 02:32 ldap drwxr-xr-x 3 root root 264 Nov 28 02:32 mysql -rw-r--r-- 1 root root 5735 May 21 2005 serversidefilter_ldap.conf.sample -rw-r--r-- 1 root root 5134 May 21 2005 serversidefilter_mysql.conf.sample -rwxr-xr-x 1 root root 1882 May 21 2005 test.sh neo script # make gcc -c filtercmd.c -DSQUIRRELMAILCONFIGFILE='"../../config/config.php"' gcc -o filtercmd filtercmd.o checkcreds_imap.o chown root:apache filtercmd chmod 4750 filtercmd neo script # sh test.sh IMAP username: patrick IMAP password: *********** No RC file path found RESULT: 17 No RC file path found RESULT: 17 No RC file path found RESULT: 17 If you do not need to perform additional tests, remove the file test_creds Remove now? (Y/n): Y |