cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
568
Views
0
Helpful
0
Replies

Help modifing a simple Lua DAP query

naim.cote
Level 1
Level 1

Hello I need help with something I can't figure out.

We currently have the following LUA script ( found in the Cisco DAP examples)

This rule allows a vpn client to connect if any AV software is installed, this is fine for PC and Mac, but now have users conneting from iOS device where no AV is running and we want to allow them in our exsiting LUA script.


assert(function()

    for k,v in pairs(endpoint.av) do

         if (EVAL(v.exists, "EQ", "true", "string")) then

              return true
         end
    end

    return false

end)()

We'd like to modify this simple script to allow any antivirus or any iOS based device.

I need to put in an OR  if (EVAL(endpoint.os.version, "EQ", "Apple Plugin", "string") then return true.

But in all honesty I don't have the skills to make it work.

Naim

0 Replies 0
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: