active directory authentication, full mfa implementation, vpn generation

This commit is contained in:
2024-05-20 16:10:32 -07:00
parent 49962ade44
commit a64e527fac
16 changed files with 1084 additions and 19 deletions

12
vpn.py Normal file
View File

@@ -0,0 +1,12 @@
import sys
import subprocess
def genVPN(cu, dev):
result = subprocess.call(['sh', 'ikev2.sh', '--addclient', cu+'-'+dev])
if result == "Error: Invalid client name. Client " + cu+'-'+dev + " already exists.":
return getVPN(cu, dev)
else:
return "profiles/"+cu+'-'+dev+".mobileconfig"
def getVPN(cu, dev):
return "profiles/"+cu+'-'+dev+".mobileconfig"