Using AUTH_NULL for custom authentication

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
pd1998
OpenVpn Newbie
Posts: 9
Joined: Tue Jan 31, 2023 7:10 am

Using AUTH_NULL for custom authentication

Post by pd1998 » Wed Feb 01, 2023 3:48 am

i Using AUTH_NULL for custom authentication but i can't go to Admin Web UI.
Is there a way to fix it?

pd1998
OpenVpn Newbie
Posts: 9
Joined: Tue Jan 31, 2023 7:10 am

Re: Using AUTH_NULL for custom authentication

Post by pd1998 » Wed Feb 01, 2023 4:01 am

ERROR: AttributeError: 'AuthNull' object has no attribute 'collect_statuses' (9000)

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1333
Joined: Tue Feb 16, 2021 10:41 am

Re: Using AUTH_NULL for custom authentication

Post by openvpn_inc » 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
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

pd1998
OpenVpn Newbie
Posts: 9
Joined: Tue Jan 31, 2023 7:10 am

Re: Using AUTH_NULL for custom authentication

Post by pd1998 » Wed Feb 01, 2023 6:36 am

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.

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1333
Joined: Tue Feb 16, 2021 10:41 am

Re: Using AUTH_NULL for custom authentication

Post by openvpn_inc » Wed Feb 01, 2023 2:23 pm

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
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

Post Reply