+7 (916) 741 5495
support@netams.com

                         english   

 

service login


2002 NeTAMS weblogin -. , . , . , , . , . login.

:
  1. SQL.
  2. . ( ), .
  3. , . ( )
  4. , login quota
  5. unit user, "" , .. IP-, .
login . NeTAMS. , MySQL, data-source 2:
	service data-source 2
	type mysql
login - :
	service login 0
	storage 2
NeTAMS. . , , :
  1. -
  2. SQL- NeTAMS: mysqlshow netams ( `login')
  3. telnet- show config
login, , , . , login. SQL- login. :
+------------------+------------------+------+-----+---------+-------+
| Field            | Type             | Null | Key | Default | Extra |
+------------------+------------------+------+-----+---------+-------+
| unit_oid         | int(10) unsigned |      | PRI | 0       |       |
| password         | varchar(32)      | YES  |     | NULL    |       |
| inact            | int(10) unsigned | YES  |     | NULL    |       |
| abs              | int(10) unsigned | YES  |     | NULL    |       |
| last_changed     | int(10) unsigned | YES  |     | NULL    |       |
| last_opened_time | int(10) unsigned | YES  |     | NULL    |       |
| last_opened_ip   | int(10) unsigned | YES  |     | NULL    |       |
| last_opened_mac  | varchar(18)      | YES  |     | NULL    |       |
| def_state        | int(11)          | YES  |     | NULL    |       |
| curr_state       | int(11)          | YES  |     | NULL    |       |
+------------------+------------------+------+-----+---------+-------+
  • unit_oid - (OID) ,
  • password - . SQL.
  • inact -
  • abs -
  • last_changed - ( UNIXTIME)
  • last_opened_time - ( UNIXTIME),
  • last_opened_ip - IP-,
  • last_opened_mac - MAC-,
  • def_state - (, ). 0 , 1 .
  • curr_state - . 0 , 1 . , ().
SQL/ "login" , . - (.. OID ), login (fw-policy, sys-policy, quota .). "" .

, , . (u->logindata->c_state) (def_state ). delay , u->logindata->c_state. data-source.

SQL- login . telnet- . login: set, login logout. .

- "debug login"

(, login) "show login {name AAA | oid BBBB}"

- NeTAMS. - . NeTAMS cgi-bin/ login.cgi. logo-small.gif netams_api.pl ( ), .

-, Perl . :
  1. HTTPS
  2. " " NeTAMS, .
  3. URL desktop, https://loginserver/login.cgi
; HTML-.

, Windows ( ) .


default-inact N
. , login . . 0.

default-abs N
. , login . . 0.

max_inact N
, () . . 43200 = 12*60*60.

min_inact N
, () . . 60 .

max_abs N
, () . . 1036800 = 24*12*60*60.

min_abs N
, () . . 60 .

min_passwd_length N
. 3 , .

delay N
. . 10 .

relogin {yes|no}
, ? "".

set-user-ip
IP- ( user) ; 0.0.0.0. yes 1 ( ) no 0 ( ). 0.

set {name AAA | oid BBBB} [password CCCC] [inact DDDD] [abs EEEE] [mac 0a:0b:0c:0d:0e:0f] [strict|nostrict]
SQL- ( OID):
  • (password)
  • (inact)
  • (abs)
  • MAC- (mac)
  • (strict) (nostrict)
. , . - ( ) , . - , ( src/netams.h default-inact default-abs).

login {name AAA | oid BBBB} password CCCC [ip A.B.C.D] [mac JJ:JJ:JJ:JJ:JJ:JJ]
. OID , . IP- MAC- .
:
login:0#login name r546-1a
parse: FAIL: unit with name= r546-1a is not exist
:
login:0#login name r546-1 password 123
parse: FAIL: password incorrect
:
login:0#login name r546-1 password 123456
parse: OK: login success from ip:0.0.0.0, mac:00:00:00:00:00:00
- .

logout {name AAA | oid BBBB} password CCCC [ip A.B.C.D] [mac JJ:JJ:JJ:JJ:JJ:JJ]
, , login.

[an error occurred while processing this directive]