[unix-pc.general] Wanted: Intelligent getty program for SYS V

rick@kimbal.UUCP (Rick Kimball) (12/11/88)

I'm in search of the source code to an intelligent getty.
Before I run off half-cocked and write my own, I thought
I'd query the net to see if someone has already done it.

Here is my wish list for the "perfect" getty. It should:

    o   Work well with intelligent modems
        o   Perform speed recognition & auto bauding -
            It should recognize that the phone is ringing
            and log that fact.  Determine what speed the
            caller connected with the modem by reading the
            modem responses and then properly set the port
            for that speed. (no breaks needed)

    o   Handle the login process
        o   Validate login id and passwd.
        o   Log invalid attempts
        o   Set the user environment HOME, MAIL etc...

    o   Allow initialization of the modem each time the Carrier
        is dropped using any of the following [string|file|program].

        I would like to be able to send a string like
        "ATZ\r", or maybe a file containing an sequence
        of commands.  Even better, I'd like to be able
        to specify a program name that will handle the
        initialization.

    o   Allow for an alternate login prompt to be displayed using any
        of the following [string|file|program]

    o   Provide dial in/out on same line.
        Probably what I need is a wrapper proram that
        will work with uucp, cu, etc...  It could
        communicate with the getty program and let it know
        when to stop and start.

    o   Work in a System V environment on a UNIX-PC
        This is the most important item of all.

Have I missed anything?  I'm aware of "uutty" and it's
almost exactly what I want.  But ...


Thanks in advance.


-- 
____________________________________________________________________________
Rick Kimball | Mac Source BBS, Altamonte Springs, FL     DATA (407) 862-6214
             |                                          VOICE (407) 788-6875
UUCP: rick@kimbal ..!gatech!fabscal!kimbal!rick ..!ucf-cs!sdgsun!kimbal!rick

les@chinet.chi.il.us (Leslie Mikesell) (12/13/88)

In article <822@kimbal.UUCP> rick@kimbal.UUCP (Rick Kimball) writes:
>I'm in search of the source code to an intelligent getty.
>Before I run off half-cocked and write my own, I thought
>I'd query the net to see if someone has already done it.

I started to work on something like this a few months ago but haven't
had time to do much (and it doesn't look good for the near future either).

>Have I missed anything?  I'm aware of "uutty" and it's
>almost exactly what I want.  But ...

I think you have the right ideas. My main problems with the normal
getty/uugetty are:

 1) Poor support for multiple speed modems.

 2) Slow login when the passwd file is large.
 
 3) No logfile.

One of the machines I work with handles a live database of agricultural
market information on a subscription basis.  It is accessed by a large
number of fairly non-technical users who want to log in quickly, make
their requests and log off.  Making getty also handle the login process
should speed things up, especially if it could use a hash table to
index the names (followed by a linear scan if the hash file happens to
be out of date).  The usual getty-type speed change (send a break, wait
a while, ad infinitum) is pretty annoying also, considering that the
modem tells you what speed it is going to use.  The logfile information
that I would like to see (only if the login fails) is every character
that was sent to the getty/login program and the date and time of the
call.  We have run across things like terminals (or emulators) that
send CR/LF/NULL when you hit return or XOFF/XON after each line.  The
current solution is to hook up a monitor terminal, which is difficult
because the inbound lines are on a roll-over and the subscribers often
don't have a second line to talk during the call.  A decent logfile would
make problem-solving much easier.
 
>    o   Provide dial in/out on same line.
>        Probably what I need is a wrapper proram that
>        will work with uucp, cu, etc...  It could
>        communicate with the getty program and let it know
>        when to stop and start.

The HDB uucp style locking and uugetty work pretty well. 

Les Mikesell

michael@stb.UUCP (Michael) (12/14/88)

In article <822@kimbal.UUCP> rick@kimbal.UUCP (Rick Kimball) writes:
>I'm in search of the source code to an intelligent getty.
>Before I run off half-cocked and write my own, I thought
>I'd query the net to see if someone has already done it.
>
>Here is my wish list for the "perfect" getty. It should:
>
>    o   Work well with intelligent modems
>        o   Perform speed recognition & auto bauding -
>            caller connected with the modem by reading the
>            modem responses and then properly set the port
>            for that speed. (no breaks needed)

Please, make this overridable. I've seen modems get this wrong.
I've generally determined speed by writting "If you can read this, hit
enter" or something similar out, and then waiting for characters. Not
elegant, but it works. Another possibility is to say "Login:", and if
nothing is typed, switch speed and repeat.

		Michael
: --- 
: Michael Gersten			 uunet.uu.net!stb!michael
:					crash!gryphon!denwa!stb!michael
: Coff Coff <=== Stop smoking.