"J. Frederick Bartlett ([email protected])" wrote:
>
> I have a situation in which I would like to know if someone has
> created a telnet connection to an EPICS IOC. I had hoped that the IOC
> error logging facility might capture a telnet connection event;
> however, it does not. Has anyone else encountered this problem and is
> there a solution?
You can stop access completely using shellLock(), if that's what you
really want to do. There are also two undocumented routines mentioned in
shellLib.h called shellLoginInstall() and shellLogoutInstall() that you
can use to install your own routines to be called when someon does
{dis}connect. I use that here at APS to output the long DOE "you must be
authorized to use this machine" message before prompting for the username
and password.
STATUS apsLoginPrompt(char *userName) {
puts(doe_msg);
taskDelay(1); /* Give the above message a chance to
flush */
return loginPrompt(userName);
}
In config/all/usrConfig.c the following line was added immediately after
the call to loginInit():
shellLoginInstall (apsLoginPrompt, NULL); /* install security program */
HTH,
- Andrew
--
Perfection is reached, not when there is no longer anything to add,
but when there is no longer anything to take away.
- Antoine de Saint-Exupery
- Replies:
- Re: Capturing a telnet connection event Kay-Uwe Kasemir
- References:
- Capturing a telnet connection event J. Frederick Bartlett ([email protected])
- Navigate by Date:
- Prev:
Re: Capturing a telnet connection event Ned Arnold
- Next:
Re: Capturing a telnet connection event Kay-Uwe Kasemir
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
<2002>
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Capturing a telnet connection event Pete R. Jemian
- Next:
Re: Capturing a telnet connection event Kay-Uwe Kasemir
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
<2002>
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|