M3. Access

Access denied

Called when access denied according ACL settings or as a result of the access_check procedure.

Database

Parameters

Returned value

available

id — temporary client ID (for newbies/Dr.Web Servers)

address — client network address

station — NetBIOS name of a client. Undefined for Dr.Web Servers and does not replaced by DNS name

type — one of station, installer, newbie, server, proxy

description — station description

ignored

Procedure text:

--[[

Called:

 when access denied according ACLs settings or result

 of 'access_check' procedure

 

Database:

 available

 

Parameters:

 id             station (temporary for newbie/server) ID

 address        station network address

 station        station name (undefined for servers)

                this is NetBIOS station name (not replaced by DNS one)

 type           one of 'station' | 'installer' | 'newbie' | 'server' | 'proxy'

 description    station description

 

Returned value:

 ignored

 

]]

 

local args = ... -- args.id, args.address, args.station, args.type, args.description

 

-- no return => `nil' value

Access check

Called before check access against appropriate ACL (Access Control List).

Database

Parameters

Returned value

available

id — temporary client ID (for newbies/Dr.Web Servers)

address — client network address

station — NetBIOS name of a client. Undefined for Dr.Web Servers and does not replaced by DNS name

type — one of station, installer, newbie, server, proxy

nil — check address against configured ACLs

boolean — do not check against ACLs, for all:

true — allow access

false — reject access

Procedure text

--[[

Called:

 before check access against appropriate ACL

 

Database:

 available

 

Parameters:

 id             station ID (temporary for newbie/server)

 address        station network address

 station        station name (undefined for servers)

                this is NetBIOS station name (not replaced by DNS one)

 type           one of 'station | installer | newbie | server | proxy'

 

Returned value:

            nil        check address against configured ACLs

 boolean    true       allow access, do not check agains ACLs

            false      reject access, do not check agains ACLs

 

Procedure from next set will be called if returned nothing.

]]

 

local args = ... -- args.id, args.address, args.station, args.type

 

-- no return => `nil' value