#----------------------------------------------------------------------------- # /etc/check.d/carddav2xml.exp - expressions for check table of configuration params # # Copyright (c) 2015-2019 The Eisfair Team, team(at)eisfair(dot)org # # Creation: 2015-04-11 jed # Last Update: $Id$ # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #----------------------------------------------------------------------------- CARDDAV2XML_USER = '([-._[:lower:]0-9])+' : 'no valid user name, because only the following characters are allowed: a-z, 0-9, ., _ and -' CARDDAV2XML_URL = 'http(s)?://[[:alnum:]/%~._-]+(:(RE:NUMERIC)(/[[:alnum:]/%~._-]*)?)?' : 'no valid URL' CARDDAV2XML_EURL = '()|(RE:CARDDAV2XML_URL)' : 'nor empty or a valid URL' CARDDAV2XML_GROUP = '([-._[:alnum:] ])+' : 'no valid address book group name given, only the following characters are allowed: a-z, 0-9, ., _, " " and -' CARDDAV2XML_EGROUP = '()|([-._[:alnum:]])+' : 'no valid address book group name given. Should be empty or contain only the following characters: a-z, 0-9, ., _, " " and -' CARDDAV2XML_OFORMAT = 'console|grandstream|slims' : 'no valid output format given, should be "console", "grandstream" or "slims".' CARDDAV2XML_FACCESS = '(RE:CARDDAV2XML_USER):(RE:CARDDAV2XML_USER):[0-7]{3,4}' : 'no valid file access information given, should be in the format of "user:group:access", e.g. "wwwrun:nogroup:0444"."' CARDDAV2XML_EFACCESS = '()|(RE:CARDDAV2XML_FACCESS)' : 'no valid file access information given, should be empty or in the format of "user:group:access", e.g. "wwwrun:nogroup:0444"."'