|
From: Jamie C. <jca...@we...> - 2006-10-30 20:13:08
|
That would certainly work too..<br /><br />=A0- Jamie<br /><br />On 30/Oct/2006 12:09 Dave Isaacs wrote ..
<blockquote type=3D"cite">
<div><span class=3D"218220220-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff">My
current plan is to modify miniserv.pl to change the 7 days to be 30 minutes (our
session timeout).=A0 This will ensure that after the session times out, the
script is run and the session deleted from the %sessiondb hash.=A0 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=3D"218220220-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff"></font></span>=A0</div>
<div><span class=3D"218220220-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff">Does
this sound correct?</font></span></div>
<div><span class=3D"218220220-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff"></font></span>=A0</div>
<div><span class=3D"218220220-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff">Thanks</font></span></div>
<div><span class=3D"218220220-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff"></font></span>=A0</div>
<div><span class=3D"218220220-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff">Dave
I</font></span></div>
<blockquote style=3D"margin-right: 0px;">
<div></div>
<div lang=3D"en-us" dir=3D"ltr" align=3D"left" class=3D"OutlookMessageHeader"><font size=3D"2" face=3D"Tahoma">-----Original Message-----<br /><b>From:</b>
web...@li...
[mailto:web...@li...] <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 />=A0- Jamie<br /><br />On
30/Oct/2006 11:39 Dave Isaacs wrote ..
<blockquote type=3D"cite">
<div><span class=3D"075393419-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff">I
just stumbled upon this while spelunking through the
code.</font></span></div>
<div><span class=3D"075393419-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff"></font></span>=A0</div>
<div><span class=3D"075393419-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff">However, I do not see the logout_script being called immediately
after a timeout.=A0 Instead I see it being called (around line 499) when
removing sessions that are over 7 *days* old.=A0 That 7 days appears to
be hard-coded in miniserv.pl.=A0 </font></span></div>
<div><span class=3D"075393419-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff"></font></span>=A0</div>
<div><span class=3D"075393419-30102006"><font size=3D"2" face=3D"Arial" color=3D"#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=3D"075393419-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff"></font></span>=A0</div>
<div><span class=3D"075393419-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff">I
am running 1.290, in case that makes a difference.</font></span></div>
<div><span class=3D"075393419-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff"></font></span>=A0</div>
<div><span class=3D"075393419-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff">Thanks</font></span></div>
<div><span class=3D"075393419-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff"></font></span>=A0</div>
<div><span class=3D"075393419-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff">Dave I</font></span></div>
<blockquote style=3D"margin-right: 0px;">
<div></div>
<div lang=3D"en-us" dir=3D"ltr" align=3D"left" class=3D"OutlookMessageHeader"><font size=3D"2" face=3D"Tahoma">-----Original Message-----<br /><b>From:</b>
web...@li...
[mailto:web...@li...] <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=3D/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 />=A0- Jamie<br /><br />On
30/Oct/2006 10:06 Dave Isaacs wrote ..
<blockquote type=3D"cite">
<div><span class=3D"785420118-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff">Thanks!=A0 That's great!=A0 Looking forward to
it.</font></span></div>
<div><span class=3D"785420118-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff"></font></span>=A0</div>
<div><span class=3D"785420118-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff">Unfortunately, our customer want to take this an extra
step.=A0 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.=A0 Kicking off a process when logging out of webmin seems
straightforward enough.=A0 It's the kicking off a process when timing
out of webmin that concerns me.=A0 If have no idea how to achieve
this.=A0 Any suggestions?</font></span></div>
<div><span class=3D"785420118-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff"></font></span>=A0</div>
<div><span class=3D"785420118-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff">Thanks</font></span></div>
<div><span class=3D"785420118-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff"></font></span>=A0</div>
<div><span class=3D"785420118-30102006"><font size=3D"2" face=3D"Arial" color=3D"#0000ff">Dave I</font></span></div>
<blockquote style=3D"margin-right: 0px;">
<div></div>
<div lang=3D"en-us" dir=3D"ltr" align=3D"left" class=3D"OutlookMessageHeader"><font size=3D"2" face=3D"Tahoma">-----Original Message-----<br /><b>From:</b>
web...@li...
[mailto:web...@li...] <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=3D"cite">
<p><font size=3D"2">From inspecting the source of the Postfix module, it
appears that the Postfix module does almost no logging to the Webmin
Actions Log.=A0 Is this conclusion correct?=A0 If yes, will
this ever be remedied?</font></p>
<p><font size=3D"2">This is an issue because a customer of ours requires
that changes to the Postfix configuration be auditable.=A0 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=3D"2">Thanks</font> </p>
<p><font size=3D"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 />=A0-
Jamie<br /><br /></blockquote></blockquote><br /></blockquote></blockquote><br /></blockquote></blockquote><br />
|