Sorry for my english 🙂
I have 2factor OpenVPN server CERTIFICATE+PASSWORD from LDAP
I have a record in LDAP server:
UserName: Peter Brown
CommonName: peter
I have a client config for peter in /etc/openvpn/ccd folder
root@openvpn-new:~# cat /etc/openvpn/ccd/peter
ifconfig-push 10.0.30.12 255.255.255.0
So when I'm connecting to OpenVPN as peter - I'm getting 10.0.30.12 and this is correct
I have another record in LDAP:
UserName: James Green
CommonName: JAMES <---- UPPERCASE
And also I have a client config(wrong) for james in /etc/openvpn/ccd folder
root@openvpn-new:~# cat /etc/openvpn/ccd/james <-- LOWCASE
ifconfig-push 10.0.30.13 255.255.255.0
And yesterday I found a (bug?) feature,
When I'm connecting to OpenVPN and promt JAMES as login I still get an ip address, but from DHCP range of 10.0.30.0/24 subnet (for example 10.0.30.3)
I need to close this feature and I need to connect to OpenVPN only users with right common-name (casesensitive).