O3. 访问权限

已禁止访问

依照ACL设置或access_check执行结果禁止访问时调用

数据库

参数

返回值

可使用

id——客户端临时ID(用于新工作站/Dr.Web服务器),

address——客户端网络地址,

station——客户端NetBIOS名称。不可为Dr.Web服务器指定并不可替换为DNS名称,

type——“station”、“installer”、“newbie”、“server”、“proxy”,

description——工作站描述

忽略

钩子文本:

--[[

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

检查访问权限

按照相应ACL(Access Control List - 权限监控列表)进行访问权限检查之前调用

数据库

参数

返回值

可使用

id——客户端临时ID(用于新工作站/Dr.Web服务器),

address——客户端网络地址,

station——客户端NetBIOS名称。不可为Dr.Web服务器指定并不可替换为DNS名称,

type——“station”, “installer”, “newbie”, “server”, “proxy”

nil——通过指定的ACL检查地址,

boolean——不通过ACL检查地址,全部适用:

true——允许访问,

false——禁止访问

钩子文本

--[[

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