TinCanTech wrote
Maybe you can edit your server config .. I don't see --duplicate-cn in there ?
bbuckm wrote
Isn’t it working the way it’s supposed to work?
--duplicate-cn
Allow multiple clients with the same common name to concurrently connect. In the absence of this option, OpenVPN will disconnect a client instance upon connection of a new client having the same common name.
Thanks for replies. I can't believe myself i forgot that option 🙂
It fixed part of issue. Now 2 clients can connect with same username even if Simultaneous-Use := 1 in radius. For "virinom" username here is radcheck row
username | attribute | op | value
----------------------------------------------------------
virinom | Simultaneous-Use | := | 1
And here is radacct rows for both connections
username | nasportid | nasporttype | acctstarttime | acctstoptime
--------------|--------------------------------------------------------------------------------------
virinom | 1 virtual 2018-05-07 12:15:23 NULL
virinom | 2 virtual 2018-05-07 12:15:59 NULL