Jonas,

On Saturday, March 15, 2003, at 02:04:04 [GMT +0100] (which was 02:04
where I live) you wrote:

JP> Thanks, but that's useless until you tell us to which file it should be
JP> applied ;-)

You're quite right. Sorry for the late response.

JP> You should use the unified diff format (diff -u) in general; it
JP> automatically includes the filenames in its output.

--- ../vpopmail-5.3.7/vchkpw.c  Fri Jun 21 18:05:59 2002
+++ vchkpw.c    Tue Jan 28 11:26:35 2003
@@ -555,6 +555,14 @@
    pw_uid = pw->pw_uid;
    pw_gid = pw->pw_gid;
    pw_dir = pw->pw_dir;
+   
+   /* show success but with no password */
+   if ( ENABLE_LOGGING == 1 || ENABLE_LOGGING == 4) {
+     snprintf(LogLine, LOG_LINE_SIZE, "%s: system password login success %s:%s",
+       VchkpwLogName, TheUser, IpAddr);
+     vlog(VLOG_AUTH, TheUser, TheDomain, ThePass, TheName, IpAddr, LogLine);
+   }
+
 #ifdef POP_AUTH_OPEN_RELAY
    if ( LocalPort != 25 && LocalPort != 465 ) {
         open_smtp_relay();

Note that on this system I'm not quite up-to-date to the latest
release yet, and I haven't checked if something like this made it into
the code in the meanwhile. Also the location in the file may be off
now.

--
With kind regards,
Maurice Snellen


Reply via email to