Page 1 of 1
Using AUTH_NULL for custom authentication
Posted: Wed Feb 01, 2023 3:48 am
by pd1998
i Using AUTH_NULL for custom authentication but i can't go to Admin Web UI.
Is there a way to fix it?
Re: Using AUTH_NULL for custom authentication
Posted: Wed Feb 01, 2023 4:01 am
by pd1998
ERROR: AttributeError: 'AuthNull' object has no attribute 'collect_statuses' (9000)
Re: Using AUTH_NULL for custom authentication
Posted: Wed Feb 01, 2023 5:02 am
by openvpn_inc
Hello pd1998,
If this was caused after an upgrade from pre-2.9 to 2.9 or newer, it's likely caused by the post_auth script still being a Python2 script while it should be Python3 now. Version 2.9 was rewritten to Python3. If you have this issue, fix that and reload the script and things should work again in that case.
To get Access Server working without your custom authentication post_auth script and get Access Server starting up again you can remove the post_auth script.
https://openvpn.net/vpn-server-resource ... uth-script
Are you running latest version of Access Server, 2.11.3?
Can you share your custom post_auth script (without any sensitive details) here, or, if it is sensitive, can you submit it in a support ticket at
https://openvpn.net/support?
Kind regards,
Johan
Re: Using AUTH_NULL for custom authentication
Posted: Wed Feb 01, 2023 6:36 am
by pd1998
openvpn_inc wrote: ↑Wed Feb 01, 2023 5:02 am
Hello pd1998,
If this was caused after an upgrade from pre-2.9 to 2.9 or newer, it's likely caused by the post_auth script still being a Python2 script while it should be Python3 now. Version 2.9 was rewritten to Python3. If you have this issue, fix that and reload the script and things should work again in that case.
To get Access Server working without your custom authentication post_auth script and get Access Server starting up again you can remove the post_auth script.
https://openvpn.net/vpn-server-resource ... uth-script
Are you running latest version of Access Server, 2.11.3?
Can you share your custom post_auth script (without any sensitive details) here, or, if it is sensitive, can you submit it in a support ticket at
https://openvpn.net/support?
Kind regards,
Johan
i Install or update the script:
https://swupdate.openvpn.net/scripts/po ... om_auth.py
but status of sacli : ERROR: AttributeError: 'AuthNull' object has no attribute 'collect_statuses' (9000). and I lost admin rights to
Admin Web UI.
Re: Using AUTH_NULL for custom authentication
Posted: Wed Feb 01, 2023 2:23 pm
by openvpn_inc
Hello pd1998,
Then I'll just repeat; to get Access Server working without your custom authentication post_auth script and get Access Server starting up again you can remove the post_auth script.
https://openvpn.net/vpn-server-resource ... uth-script
And again ask; what version of Access Server are you using? Is it 2.11.3?
Kind regards,
Johan