Adding Users in php?

How to customize and extend your OpenVPN installation.

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

Post Reply
josephchrzempiec
OpenVpn Newbie
Posts: 4
Joined: Sun May 27, 2018 3:22 am

Adding Users in php?

Post by josephchrzempiec » Sun May 27, 2018 3:24 am

Hello I'm new to VPN and I'm running the pivpn open vpn. But i was wondering If there is a possible to adding user using php webpage? Sometimes i cannot able to get local access to the Pi or ssh in But again i was something if there is a way to add a user in php webpage?



Joseph

bbuckm
OpenVPN User
Posts: 39
Joined: Thu Apr 26, 2018 2:45 pm

Re: Adding Users in php?

Post by bbuckm » Mon May 28, 2018 1:46 pm

You might be able to do it with FreeRADIUS + DaloRADIUS.

User avatar
vnpenguin
OpenVpn Newbie
Posts: 14
Joined: Sun Dec 06, 2015 7:12 am
Location: Belgium

Re: Adding Users in php?

Post by vnpenguin » Fri Dec 21, 2018 4:33 pm

josephchrzempiec wrote:
Sun May 27, 2018 3:24 am
Hello I'm new to VPN and I'm running the pivpn open vpn. But i was wondering If there is a possible to adding user using php webpage? Sometimes i cannot able to get local access to the Pi or ssh in But again i was something if there is a way to add a user in php webpage?

Joseph
Yes, you can do yourself with PHP:
  • Write shell script to do that job under root
  • From PHP, run shell script by using "ssh2" module

Post Reply