From 0373f93b02aa12f533d0323c741a12f1799d45ea Mon Sep 17 00:00:00 2001 From: David Galloway Date: Thu, 24 Mar 2016 16:45:23 -0400 Subject: [PATCH] gateway: modify auth-openvpn script to ignore comments and blank lines Signed-off-by: David Galloway --- roles/gateway/templates/auth-openvpn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/gateway/templates/auth-openvpn b/roles/gateway/templates/auth-openvpn index bd82544..4c346c0 100644 --- a/roles/gateway/templates/auth-openvpn +++ b/roles/gateway/templates/auth-openvpn @@ -43,6 +43,8 @@ def authenticate(): for line in f: assert line.endswith('\n') line = line[:-1] + if line.startswith("#") or len(line) == 0: + continue (username, salt, correct) = line.split(' ', 2) if username == wanted: return (salt, correct) -- 2.39.5