[prev in list] [next in list] [prev in thread] [next in thread] 

List:       webmin-l
Subject:    Re: [webmin-l] Postfix module and the Webmin Actions Log
From:       "Jamie Cameron" <jcameron () webmin ! com>
Date:       2006-10-30 20:12:54
Message-ID: 1162239174.26855 () www ! virtualmin ! com
[Download RAW message or body]

[Attachment #2 (text/html)]

That would certainly work too..<br /><br /> - Jamie<br /><br />On 30/Oct/2006 12:09 \
Dave Isaacs wrote .. <blockquote type="cite">

<div><span class="218220220-30102006"><font size="2" face="Arial" color="#0000ff">My
current plan is to modify miniserv.pl to change the 7 days to be 30 minutes (our
session timeout).  This will ensure that after the session times out, the
script is run and the session deleted from the %sessiondb hash.  Since the
session is deleted, I don't think that there is any danger of the logout_script
running more than once.</font></span></div>
<div><span class="218220220-30102006"><font size="2" face="Arial" \
color="#0000ff"></font></span> </div> <div><span class="218220220-30102006"><font \
size="2" face="Arial" color="#0000ff">Does this sound correct?</font></span></div>
<div><span class="218220220-30102006"><font size="2" face="Arial" \
color="#0000ff"></font></span> </div> <div><span class="218220220-30102006"><font \
size="2" face="Arial" color="#0000ff">Thanks</font></span></div> <div><span \
class="218220220-30102006"><font size="2" face="Arial" color="#0000ff"></font></span> \
</div> <div><span class="218220220-30102006"><font size="2" face="Arial" \
color="#0000ff">Dave I</font></span></div>
<blockquote style="margin-right: 0px;">
  <div></div>
  <div lang="en-us" dir="ltr" align="left" class="OutlookMessageHeader"><font \
size="2" face="Tahoma">-----Original Message-----<br /><b>From:</b>  \
webadmin-list-bounces@lists.sourceforge.net  \
[mailto:webadmin-list-bounces@lists.sourceforge.net] <b>On Behalf Of </b>Jamie  \
Cameron<br /><b>Sent:</b> Monday, October 30, 2006 2:46 PM<br /><b>To:</b> Webmin  \
users list<br /><b>Subject:</b> Re: [webmin-l] Postfix module and the Webmin  Actions \
Log<br /><br /></font></div>Yes, that is correct ... running it after a  regular \
timeout would be tricky, as it could get re-run every time the user  tries to refresh \
and already-timed-out session!<br /><br /> - Jamie<br /><br />On  30/Oct/2006 11:39 \
Dave Isaacs wrote ..  <blockquote type="cite">
    <div><span class="075393419-30102006"><font size="2" face="Arial" \
color="#0000ff">I  just stumbled upon this while spelunking through the
    code.</font></span></div>
    <div><span class="075393419-30102006"><font size="2" face="Arial" \
color="#0000ff"></font></span> </div>  <div><span class="075393419-30102006"><font \
size="2" face="Arial" color="#0000ff">However, I do not see the logout_script being \
called immediately  after a timeout.  Instead I see it being called (around line 499) \
when  removing sessions that are over 7 *days* old.  That 7 days appears to
    be hard-coded in miniserv.pl.  </font></span></div>
    <div><span class="075393419-30102006"><font size="2" face="Arial" \
color="#0000ff"></font></span> </div>  <div><span class="075393419-30102006"><font \
size="2" face="Arial" color="#0000ff">The only other call to logout_script I see \
occurs when the user  explicitly click the Logout link.</font></span></div>
    <div><span class="075393419-30102006"><font size="2" face="Arial" \
color="#0000ff"></font></span> </div>  <div><span class="075393419-30102006"><font \
size="2" face="Arial" color="#0000ff">I  am running 1.290, in case that makes a \
difference.</font></span></div>  <div><span class="075393419-30102006"><font size="2" \
face="Arial" color="#0000ff"></font></span> </div>  <div><span \
class="075393419-30102006"><font size="2" face="Arial" \
color="#0000ff">Thanks</font></span></div>  <div><span \
class="075393419-30102006"><font size="2" face="Arial" color="#0000ff"></font></span> \
</div>  <div><span class="075393419-30102006"><font size="2" face="Arial" \
color="#0000ff">Dave I</font></span></div>  <blockquote style="margin-right: 0px;">
      <div></div>
      <div lang="en-us" dir="ltr" align="left" class="OutlookMessageHeader"><font \
size="2" face="Tahoma">-----Original Message-----<br /><b>From:</b>  \
webadmin-list-bounces@lists.sourceforge.net  \
[mailto:webadmin-list-bounces@lists.sourceforge.net] <b>On Behalf Of  </b>Jamie \
                Cameron<br /><b>Sent:</b> Monday, October 30, 2006 2:30
      PM<br /><b>To:</b> Webmin users list<br /><b>Subject:</b> Re: [webmin-l]
      Postfix module and the Webmin Actions Log<br /><br /></font></div>This is
      actually possible, via an un-documented option. Just edit the file
      /etc/webmin/miniserv.conf and add the line
      :<br /><br />logout_script=/path/to/some/script.pl<br /><br />And then restart
      Webmin with /etc/webmin/restart . This will be run when a user logs out or
      times out, with the username, session ID, remote IP and local IP as
      parameters.<br />There is also a matching login_script parameter, but it
      doesn't sound like you need that.<br /><br /> - Jamie<br /><br />On
      30/Oct/2006 10:06 Dave Isaacs wrote ..
      <blockquote type="cite">
        <div><span class="785420118-30102006"><font size="2" face="Arial" \
color="#0000ff">Thanks!  That's great!  Looking forward to  it.</font></span></div>
        <div><span class="785420118-30102006"><font size="2" face="Arial" \
                color="#0000ff"></font></span> </div>
        <div><span class="785420118-30102006"><font size="2" face="Arial" \
color="#0000ff">Unfortunately, our customer want to take this an extra  step.  They \
                have in mind some sort of config audit process that
        will be kicked off whenever a webmin user logs out or a webmin session
        times out.  Kicking off a process when logging out of webmin seems
        straightforward enough.  It's the kicking off a process when timing
        out of webmin that concerns me.  If have no idea how to achieve
        this.  Any suggestions?</font></span></div>
        <div><span class="785420118-30102006"><font size="2" face="Arial" \
                color="#0000ff"></font></span> </div>
        <div><span class="785420118-30102006"><font size="2" face="Arial" \
                color="#0000ff">Thanks</font></span></div>
        <div><span class="785420118-30102006"><font size="2" face="Arial" \
                color="#0000ff"></font></span> </div>
        <div><span class="785420118-30102006"><font size="2" face="Arial" \
color="#0000ff">Dave I</font></span></div>  <blockquote style="margin-right: 0px;">
          <div></div>
          <div lang="en-us" dir="ltr" align="left" class="OutlookMessageHeader"><font \
size="2" face="Tahoma">-----Original Message-----<br /><b>From:</b>  \
                webadmin-list-bounces@lists.sourceforge.net
          [mailto:webadmin-list-bounces@lists.sourceforge.net] <b>On Behalf Of
          </b>Jamie Cameron<br /><b>Sent:</b> Friday, October 27, 2006 2:26
          PM<br /><b>To:</b> Webmin users list<br /><b>Subject:</b> Re: [webmin-l]
          Postfix module and the Webmin Actions Log<br /><br /></font></div>On
          27/Oct/2006 10:51 Dave Isaacs wrote ..
          <blockquote type="cite">
            <p><font size="2">From inspecting the source of the Postfix module, it
            appears that the Postfix module does almost no logging to the Webmin
            Actions Log.  Is this conclusion correct?  If yes, will
            this ever be remedied?</font></p>
            <p><font size="2">This is an issue because a customer of ours requires
            that changes to the Postfix configuration be auditable.  We can
            roll our own change-auditing process, but it would be nice if Webmin
            was doing it for us.</font></p>
            <p><font size="2">Thanks</font> </p>
            <p><font size="2">Dave I</font> </p></blockquote>That is (unfortunately)
          correct .. however, now that you have pointed it out, I do plan to add
          logging in the next Webmin release.<br /><br /> -
        Jamie<br /><br /></blockquote></blockquote><br \
/></blockquote></blockquote><br /></blockquote></blockquote><br />



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

-
Forwarded by the Webmin mailing list at webadmin-list@lists.sourceforge.net
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic