/* zentific-xmlrpc: xmlrpc server the Zentific xen interface. collection * point for statistics and interface for frontend. * * Copyright (C) 2007, 2008 * Steven Maresca, Justin Demaris, * and Fugitive LLC * * All rights reserved. * Use is subject to license terms. * * Please visit http://zentific.com for news and updates * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ //---------------DEFINES-------------------- //Zentific formalities #define ZENTIFIC_XMLRPC_VER "0.9" #define ZENTIFIC_CHANGESET "2396" #define ZENTIFIC_COPYRIGHT "Copyright 2007, 2008 Steven Maresca, Zentific LLC" #define ZENTIFIC_DISCLAIMER "THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS.' ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." #define ZENTIFIC_CONTACT "Please send general correspondence to zentific@zentific.com and bug reports to bugs@zentific.com" //Zentific default presets #define DEFAULT_CONF_FILE "/opt/zentific/xmlrpc.conf" // default path to the zentific config file #define DEFAULT_PID_FILE "zentific-xmlrpc.pid" // file location to store process id #define DEFAULT_UTILS_PATH "/opt/zentific/bin" // path to utilities directory #define DEFAULT_VAR_PATH "/var" // path to variable data directory #define DEFAULT_MODULES_PATH "/opt/zentific/modules" // path to xmlrpc modules directory #define DEFAULT_DB_MODULES_PATH "/opt/zentific/db" // path to db modules director #define DEFAULT_DB_MODULE "default" // default db module to load #define DEFAULT_LOG_FILE "/opt/zentific/logs/zentific-xmlrpc.log" // file location to store log file #define DEFAULT_LOG_TYPE "local" // default type of logging destination #define DEFAULT_DB_MODULE "default" // default db module to load #define DEFAULT_DB_MODULE_PATH "/" // default path to db modules // (remote is not now but will be supported) #define DEFAULT_PORT 4444 // default port to which server binds #define DEFAULT_THREADS 10 // default port to which server binds #define DEFAULT_LISTEN "localhost" // default address upon which server listens #define DEFAULT_KEY_PATH "/opt/zentific/keys" // default path to trust #define DEFAULT_SSL_PATH "/opt/zentific/ssl" // default path to trust #define DEFAULT_SSL_CERT "server.pem" // default path to trust #define IGNORE_SSL_ERROR 1 // ignore trust errors (e.g. expired or self-signed certs) #define ZENTIFIC_WEB_ROOT "/opt/www/zentific.com" #define DEFAULT_MAX_LOGIN_FAIL 5 //max login failures before temporary lockout specified by DEFAULT_RETRY_TIMEOUT #define DEFAULT_VM_CONF_PATH "/opt/zentific/vms" #define MAX_USERNAME_LENGTH 255 #define DEFAULT_RETRY_TIMEOUT 5 //minutes before logins are again permitted after max_failed_logins was reached