It is currently Tue Dec 11, 2018 11:24 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: special characters in user_name and user_password
PostPosted: Wed Feb 10, 2010 4:45 pm 

Joined: Fri Jan 29, 2010 8:44 am
Posts: 3
Hello,

I need to use special characters in user_name and user_password in the
session section of openl2tpd.conf. However, if I do this I get a parse error.
I tried a backslash as an escape character, but that doesn't work.
Does anybody know how to properly use special characters in the config file?

Thanks.

Eberhard


Top
 Profile  
 
 Post subject: Re: special characters in user_name and user_password
PostPosted: Sun Feb 14, 2010 9:54 pm 
Site Admin

Joined: Sun Jul 27, 2008 1:39 pm
Posts: 122
schruefer wrote:
I need to use special characters in user_name and user_password in the
session section of openl2tpd.conf. However, if I do this I get a parse error.
I tried a backslash as an escape character, but that doesn't work.
Does anybody know how to properly use special characters in the config file?

Unfortunately this isn't supported by the command line / config file parser at the moment. We'll look into this. Perhaps we could send you a patch to try?


Top
 Profile  
 
 Post subject: Re: special characters in user_name and user_password
PostPosted: Sun Feb 14, 2010 10:54 pm 

Joined: Fri Jan 29, 2010 8:44 am
Posts: 3
I would be happy to try a patch.

Thanks.


Top
 Profile  
 
 Post subject: Re: special characters in user_name and user_password
PostPosted: Mon Sep 13, 2010 8:31 am 
Site Admin

Joined: Sun Jul 27, 2008 1:39 pm
Posts: 122
bircoph wrote:
So, dear developers! I kindly ask you to fix daemon's config file parser! The problem is that numerical usernames are interpreted as numbers, not as strings hence this triggers syntax error at config file and daemon fails to start. As far as I dig into the code, it seems to be a problem in the yacc parser. Yes, autogenerated code seems to be a shit again.

Can you submit a patch?


Top
 Profile  
 
 Post subject: Re: special characters in user_name and user_password
PostPosted: Mon Sep 13, 2010 2:39 pm 
Site Admin

Joined: Sun Jul 27, 2008 1:39 pm
Posts: 122
bircoph wrote:
What I can't understand is why l2tpconfig and config parser from openl2tpd are using different code to read effectively the same config files.

l2tpconfig is designed for interactive use. It supports tab completion for keywords, so has its own parser. It builds up RPC commands from each command line input provided by the user. It used to be the only way to configure openl2tpd.
Some users wanted a way to configure openl2tpd without RPC. So the config file parser was added to openl2tpd for this, and we chose the same syntax as l2tpconfig. As a result, there are two methods for configuring openl2tpd.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group