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

LUA script to extract computer name from certificate - Anyconnect

Hi Experts

We're authenticating remote user by machine certificate only on ASA firepower 2110 ver 9.13 in appliance mode. We'd like to authorize user by performing LDAP querry to AD to check if machine is member of a specific group via DAP. The cn from certificate is in this format

 G1HSJDDM17823@mycompany.group.internal

 

I am using below LUA script but it doesn't work.

 

assert(function()
GS=cert.subject.cn
FS1 = GS:match"%.(%a+)%."

return FS1

end) ()

 

what is wrong with this LUA script? Any help would be greatly appreciated

 

 

0 REPLIES 0
Create
Recognize Your Peers
Content for Community-Ad