auth-user-pass-verify and PHP script

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
bojanpog
OpenVpn Newbie
Posts: 1
Joined: Sat Apr 13, 2019 8:35 pm

auth-user-pass-verify and PHP script

Post by bojanpog » Sat Apr 13, 2019 8:39 pm

Hello!

I have this in my config file:

auth-user-pass-verify "/usr/local/php-servers/7.3/bin/php /home/scripts/openvpn-login.php" via-file

When openvpn is run in DAEMON mode, i get this:
WARNING: Failed running command (--auth-user-pass-verify): external program exited with error status: 255

If openvpn is running in foregroud, everythink is working good.
I suppose this has to do with redirecting STDOUT, STDERR ??

Post Reply