Good day.
I update the script for sending a message to the mail when a user connects.
I took the script from
https://forums.openvpn.net/viewtopic.php?t=15927 as a basis, but redid it for python 3.
Everything is working as expected, but there was one issue: I can't get the user's platform.
What does the request look like?
I tried to do this
if attributes.get('auth_parms'):
useros = attributes('IV_PLAT')
else:
useros = 'Impossible to Determine'
and that
if attributes.get('IV_PLAT'):
useros = attributes('IV_PLAT')
else:
useros = 'Impossible to Determine'
and that
if attributes.client_info get('auth_parms'):
useros = attributes.client_info.get('IV_PLAT')
else:
useros = 'Impossible to Determine'
with combinations, but all without success.
Thank you.