The environment
CentOS 6.4(32) + PPTP + RADIUS + MySQL
Functions implemented
Use PPTP protocol built on CentOS system VPN service, VPN account authentication using RADIUS read MySQL account password information.
Individual Problem Description
Our VPN service is temporarily use the Window server 2003 system provides by default, VPN account passwords are system accounts, many problems, first, the system is not very safe, and the second, hires, separations, corresponding to the VPN account New and removing more complicated. Later superiors to consider the issues raised in this program is, VPN platform affiliates OA systems, VPN account information in the accounts and OA correspondence (not the same account and OA accounts), after removing and adding VPN account is not necessary to operate, as long as disable OA accounts on OK (according to the company require employees to entry, leaving OA accounts also need to do the appropriate action). Later on the network to find some materials, most use Linux + PPTP + RADIUS + MySQL platform architecture can achieve the company's needs, then try to build their own according to the curriculum, we come across a problem
Tutorial links:
http://blog.chinaunix.net/xmlrpc.php...896&id=4554880
Problem description
VPN passwords are stored in plain text in the MySQL database, very unsafe!
Later, according to other tutorials supplements can achieve MySQL database VPN MD5 password encryption, but it is the emergence of new problems
Tutorial links:
http://blog.chinaunix.net/uid-10449864-id-2956934.html
Problem description
RADIUS can be read properly in MySQL MD5 encrypted passwords, but PPTP service call RADIUS, you can not verify successful
Friends assist trouble about, about what the problem is, or there are other better options. THX