Skip to contentSkip to conversation

openvpn + utf8 ?

Openvpn-devel Kosztyu András 2 participants 3 messages Oct 5, 2009 – Oct 6, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

Does openvpn support utf8 encoding (unicode?) for usernames and passwords?

I could not find anything about it, only a very old mail
(http://openvpn.net/archive/openvpn-devel/2006-04/msg00044.html)

I've been using 2.1 rc18 as server for months now without any trouble, but now i got a report that special character passwords are not working.

The authentication is done by a simple bash script. Added a line to this script to check if it gets the passwords with wrong charset or gets it at all (echo $username:$password:TEST >> /var/log/openvpn/test) but it shows nothing for the password.

Thanks,

Andras

#1 lore raw
Quoted 9 lines · Kosztyu András

Hi,

Does openvpn support utf8 encoding (unicode?) for usernames and passwords?

I could not find anything about it, only a very old mail
(http://openvpn.net/archive/openvpn-devel/2006-04/msg00044.html)

Quoted 7 lines

I've been using 2.1 rc18 as server for months now without any trouble, but now i got a report that special character passwords are not working.

The authentication is done by a simple bash script. Added a line to this script to check if it gets the passwords with wrong charset or gets it at all (echo $username:$password:TEST >> /var/log/openvpn/test) but it shows nothing for the password.

Hi,

You need --script-security 3 in order to get passwords passed to scripts.

Regards,

Alberto

Signature · 5 lines
Alberto Gonzalez Iniesta    | Formación, consultoría y soporte técnico
agi@(inittab.org|debian.org)| en GNU/Linux y software libre
Encrypted mail preferred    | http://inittab.com

Key fingerprint = 9782 04E7 2B75 405C F5E9  0C81 C514 AF8E 4BA4 01C3
#2 lore raw

Thank you for the reply,
I have script-security 3 in my configs. All have been working just fine, and still working - except when using special characters in the password. An example: password1 is "pass", and its accepted and everything is working fine. Password2 is "passwördé", but the auth script will only see "passwrd" from this, skipping the special character.
So, it simply skips the "not printable" characters.

Andras

-----Original Message-----
From: Alberto Gonzalez Iniesta [mailto:[email protected]...]
Sent: Tuesday, October 06, 2009 11:41 AM
To: [email protected]
Subject: Re: [Openvpn-devel] openvpn + utf8 ?

Quoted 9 lines · Kosztyu András

Hi,

Does openvpn support utf8 encoding (unicode?) for usernames and passwords?

I could not find anything about it, only a very old mail
(http://openvpn.net/archive/openvpn-devel/2006-04/msg00044.html)

Quoted 7 lines

I've been using 2.1 rc18 as server for months now without any trouble, but now i got a report that special character passwords are not working.

The authentication is done by a simple bash script. Added a line to this script to check if it gets the passwords with wrong charset or gets it at all (echo $username:$password:TEST >> /var/log/openvpn/test) but it shows nothing for the password.

Hi,

You need --script-security 3 in order to get passwords passed to scripts.

Regards,

Alberto

Signature · 17 lines
Alberto Gonzalez Iniesta    | Formación, consultoría y soporte técnico
agi@(inittab.org|debian.org)| en GNU/Linux y software libre
Encrypted mail preferred    | http://inittab.com

Key fingerprint = 9782 04E7 2B75 405C F5E9  0C81 C514 AF8E 4BA4 01C3

----------------------------------------------------------------------------
--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel