I find and solve the problem, it turns out that radiusplugin always
use common name as part of the StatusFileKey, but openvpn uses the
username as part of the StatusFileKey when you specified
username-as-common-name, you need to modify the last few line in
raiusplugin.cpp and change the call getCommonname() to getUsername()
when invoking setStatusFileKey().
On Thu, May 24, 2012 at 9:38 PM, vistb<address@hidden> wrote:
OK, I think it has something to do with the certificates. In the
certificate I issued for the clients I use the test account name as
the common name. However, I've specified auth-user-pass in client
config and username-as-common-name in server config. I think the
problem is related to these config but I don't what exactly the
problem is! Please Help!
On Thu, May 24, 2012 at 9:11 PM, vistb<address@hidden> wrote:
Hi guys,
I use mysql+freeradius+openvpn+radiusplugin build a vpn server and
charges the registered users. Everything works fine except that the
Acct-Input-Octets and Acct-Output-Octets field is always 0 in
Interim-Update packets. This happens to all the registered users
except for the test account I created. I.e., the Interim-Update
packets looks normal for my test account. The version of openvpn is
same for all users, so is the openvpn client side config file. Anyone
has any idea why this is happening? I need to track the traffic usage
of the users so that I can bill them... Help plz...
Best,
Chaodong.
_______________________________________________
Radiusplugin-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/radiusplugin-users