Author Topic: [SOLVED]how edit openvpn.conf.mas  (Read 1543 times)

dodo

  • Zen Apprentice
  • *
  • Posts: 29
  • Karma: +1/-0
    • View Profile
[SOLVED]how edit openvpn.conf.mas
« on: September 03, 2012, 09:15:30 am »
If I add  a sentence to the openvpn.conf.mas template: example
"plugin /usr/lib/openvpn-auth-ldap.so /etc/openvpn/ldap-auth-conf"

the template affects all the vpn server created in zentyal also if there are is
a zentyal to zentyal vpn server.

Is there any way to add this sentence to only a selected vpn server?
« Last Edit: September 04, 2012, 03:36:47 pm by dodo »

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: openvpn.conf.mas problem
« Reply #1 on: September 03, 2012, 03:25:25 pm »
I don't undestand what is the problem there. If the problem is that you want to add this sentence to only one server, you could check for the daemon name, like this:
Code: [Select]
% if ($name eq 'foo') {
plugin /usr/lib/openvpn-auth-ldap.so /etc/openvpn/ldap-auth-conf
% }

dodo

  • Zen Apprentice
  • *
  • Posts: 29
  • Karma: +1/-0
    • View Profile
Re: how edit openvpn.conf.mas
« Reply #2 on: September 03, 2012, 06:20:05 pm »
it works perfectly!!!

thanks thanks :)