LUALoriotPro WEB site

LoriotPro scripting documentation
Extensions for LUA language

Table of contents Search function

Print the current page Mail this  link UTUBE Channel version française

lp.GetUserInformation

LoriotPro has extended the LUA sripting language by providing its own LUA libraries. The new functions provided are dedicated to the creation of monitoring and SNMP automation application.

Syntax

value = lp.GetUserInformation('user','array')

Description

This LUA function provide the rights associated to WEB user. (see WEB user creation and rights assigment)

Parameters

'user' : a user name

'array' : A lua table with the user rights

Return Values

val : 1 if succeeded

array : a lua table with the user rights

Return nil if an error occurs

Example

val=lp.GetUserInformation('admin','array')
if val ~= nil then
for k,v in pairs(array) do
lp.Trace(k,":",v,"\n")
end
end

Example of return

database:1
create_lua:0
traps:1
ip:0.0.0.0
host_event:0
level:1000
map:1
local_lua:1
script:1
php:1
edite_lua:1
uid:0
events:1
last_time_connect:0
last_clock_connect:0
delete_lua:0
syslog:1
global_lua:1


www.loriotpro.com