      tacacs+ . 
 ,   ,     
(Vladimir Barmin <bwm@simtel.ru>).
=======================================

void tacacs_server(char *host, char *key)

 IP  (host) tacacs+    (key)    .
---------------------------------------

int tacacs_config()

     .  1   .
   0.    :

=== tacacs.server ===

server 127.0.0.1
key 1234567890

=====================
---------------------------------------

int tacacs_connect()

   tacacs+ .  1   . 
   0.
---------------------------------------

int send_auth_start(char *user, char *port, char *rem)

 tacacs+  START  ASCII .  1 
   0,   .
---------------------------------------

int send_auth_cont(char *arg)

 tacacs+  CONTINUE  .  1  
  0,   .
---------------------------------------

char *tacacs_auth_ascii(char *user, char *port, char *rem, char *pwd)

 ASCII    (user),   (port),
  (rem)   (pwd).  NULL,    
  tacacs+ ,    struct authen_reply.
,   authen_reply,     free().
---------------------------------------

char *tacacs_auth_pap(char *user, char *port, char *rem, char *pwd)

 PAP    (user),   (port),
  (rem)   (pwd).  NULL,    
  tacacs+ ,    struct authen_reply.
,   authen_reply,     free().
---------------------------------------

char *tacacs_acct(char *user, char *port, char *rem, int action, ...)

 accounting    user   port c 
 rem.  action   .   
(    (char *))  accounting attribut-value pairs.
    NULL.  NULL,   
   tacacs+ ,    struct acct_reply.
,   acct_reply,     free().
---------------------------------------

char *tacacs_author(char *user, char *port, char *rem, ...)

    user   port c 
 rem.    rem  (    (char *))
 authorization attribut-value pairs.   
 NULL.  NULL,     
 tacacs+ ,    struct author_reply. , 
 author_reply,     free().
---------------------------------------

int tacacs_auth_login(char *user, char *port, char *rem)

  login   user a  port, 
  rem.   ,  1.   ,
 0.
---------------------------------------

15/07/1998
Denis Shaposhnikov <denis@vlink.ru>
