Author Topic: extra logs added...  (Read 5215 times)

Offline astrosmf

  • Jr. Member
  • **
  • Posts: 16
extra logs added...
« on: August 23, 2008, 01:30:11 AM »
hey crew... i would LOVE it if one of you could create a script for me that would add the following logs in the existing /logs folder

LOGIN - a seperate file that logs when someone logs in... in the following example
Code: [Select]
[20-Aug-2008 15:55:46 -0600] testuser@domainexample.com LOGIN SUCCESSFUL

PASSWORD - a seperate file that logs when a user changes password... in the following example
Code: [Select]
[20-Aug-2008 15:55:46 -0600] testuser@domainexample.com PW SUCCESSFUL

This would be a huge help... would greatly appreciate it...

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,849
extra logs added...
« Reply #1 on: August 23, 2008, 05:09:13 AM »
Hi. look for log_logins in your config file, this option was added before the 0.2a release. Loging changes to passwords would have to be done as part of your change password patch but it should be easy to add. Something like this should do it:

Code: [Select]

write_log('password', $_SESSION['username'].' PW SUCCESSFUL');
« Last Edit: August 23, 2008, 05:17:24 AM by JohnDoh »
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline astrosmf

  • Jr. Member
  • **
  • Posts: 16
extra logs added...
« Reply #2 on: August 23, 2008, 11:54:59 AM »
Quote from: JohnDoh;13458
Hi. look for log_logins in your config file, this option was added before the 0.2a release. Loging changes to passwords would have to be done as part of your change password patch but it should be easy to add. Something like this should do it:

Code: [Select]

write_log('password', $_SESSION['username'].' PW SUCCESSFUL');


the log_logins worked perfectly...

where would you throw the PW code in?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,849
extra logs added...
« Reply #3 on: August 24, 2008, 04:45:44 AM »
Put it in the file that does the actual changeing of the password, right after the password has been changed.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…