OW_ConfigOpts.cpp

Go to the documentation of this file.
00001 /*******************************************************************************
00002 * Copyright (C) 2004 Novell, Inc. All rights reserved.
00003 *
00004 * Redistribution and use in source and binary forms, with or without
00005 * modification, are permitted provided that the following conditions are met:
00006 *
00007 *  - Redistributions of source code must retain the above copyright notice,
00008 *    this list of conditions and the following disclaimer.
00009 *
00010 *  - Redistributions in binary form must reproduce the above copyright notice,
00011 *    this list of conditions and the following disclaimer in the documentation
00012 *    and/or other materials provided with the distribution.
00013 *
00014 *  - Neither the name of Novell, Inc. nor the names of its
00015 *    contributors may be used to endorse or promote products derived from this
00016 *    software without specific prior written permission.
00017 *
00018 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
00019 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00020 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00021 * ARE DISCLAIMED. IN NO EVENT SHALL Novell, Inc. OR THE CONTRIBUTORS
00022 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
00023 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
00024 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00025 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
00026 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
00027 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00028 * POSSIBILITY OF SUCH DAMAGE.
00029 *******************************************************************************/
00030 
00035 #include "OW_config.h"
00036 #include "OW_ConfigOpts.hpp"
00037 #include <cstring>
00038 
00039 namespace OW_NAMESPACE
00040 {
00041 namespace ConfigOpts
00042 {
00043 const NameAndDefault g_defaults[] = 
00044 {
00045    { ACL_SUPERUSER_opt ,  "" },
00046    { ADDITIONAL_CONFIG_FILES_DIRS_opt, OW_DEFAULT_ADDITIONAL_CONFIG_FILES_DIRS },
00047    { ADDITIONAL_LOGS_opt ,  "" },
00048    { ALLOW_ANONYMOUS_opt ,  OW_DEFAULT_ALLOW_ANONYMOUS },
00049    { ALLOWED_USERS_opt ,  OW_DEFAULT_ALLOWED_USERS },
00050    { AUTHENTICATION_MODULE_opt ,  OW_DEFAULT_AUTHENTICATION_MODULE },
00051    { AUTHORIZATION2_LIB_opt ,  "" },
00052    { AUTHORIZATION_LIB_opt ,  "" },
00053    { CHECK_REFERENTIAL_INTEGRITY_opt ,  OW_DEFAULT_CHECK_REFERENTIAL_INTEGRITY },
00054    { REQUEST_HANDLER_PATH_opt ,  OW_DEFAULT_REQUEST_HANDLER_PATH },
00055    { SERVICES_PATH_opt ,  OW_DEFAULT_SERVICES_PATH },
00056    { CMPIPROVIFC_PROV_LOCATION_opt ,  OW_DEFAULT_CMPIPROVIFC_PROV_LOCATION },
00057    { CMPIPROVIFC_PROV_TTL_opt ,  OW_DEFAULT_CMPIPROVIFC_PROV_TTL },
00058    { CONFIG_FILE_opt ,  OW_DEFAULT_CONFIG_FILE },
00059    { CPPPROVIFC_PROV_LOCATION_opt ,  OW_DEFAULT_CPPPROVIFC_PROV_LOCATION },
00060    { CPPPROVIFC_PROV_TTL_opt ,  OW_DEFAULT_CPPPROVIFC_PROV_TTL },
00061    { DATADIR_opt ,  OW_DEFAULT_DATADIR },
00062    { DEBUGFLAG_opt ,  OW_DEFAULT_DEBUGFLAG },
00063 #ifndef OW_DISABLE_DIGEST
00064    { HTTP_SERVER_DIGEST_PASSWORD_FILE_opt ,  OW_DEFAULT_HTTP_SERVER_DIGEST_PASSWORD_FILE },
00065 #endif
00066    { DISABLE_CPP_PROVIDER_INTERFACE_opt ,  OW_DEFAULT_DISABLE_CPP_PROVIDER_INTERFACE },
00067    { DISABLE_INDICATIONS_opt ,  OW_DEFAULT_DISABLE_INDICATIONS },
00068    { DROP_ROOT_PRIVILEGES_opt, OW_DEFAULT_DROP_ROOT_PRIVILEGES },
00069    { DUMP_SOCKET_IO_opt ,  "" },
00070    { EXPLICIT_REGISTRATION_NAMESPACES_opt, "" },
00071    { HTTP_SERVER_ENABLE_DEFLATE_opt ,  OW_DEFAULT_HTTP_SERVER_ENABLE_DEFLATE },
00072    { HTTP_SERVER_ALLOW_LOCAL_AUTHENTICATION_opt ,  OW_DEFAULT_HTTP_SERVER_ALLOW_LOCAL_AUTHENTICATION },
00073    { HTTP_SERVER_HTTP_PORT_opt ,  OW_DEFAULT_HTTP_SERVER_HTTP_PORT },
00074    { HTTP_SERVER_DEFAULT_CONTENT_LANGUAGE_opt ,  OW_DEFAULT_HTTP_SERVER_DEFAULT_CONTENT_LANGUAGE },
00075    { HTTP_SERVER_SSL_CLIENT_VERIFICATION_opt ,  OW_DEFAULT_HTTP_SERVER_SSL_CLIENT_VERIFICATION },
00076    { HTTP_SERVER_SSL_TRUST_STORE ,  OW_DEFAULT_HTTP_SERVER_SSL_TRUST_STORE },
00077    { HTTP_SERVER_HTTPS_PORT_opt ,  OW_DEFAULT_HTTP_SERVER_HTTPS_PORT },
00078    { HTTP_SERVER_TIMEOUT_opt ,  OW_DEFAULT_HTTP_SERVER_TIMEOUT },
00079    { HTTP_SERVER_USE_DIGEST_opt ,  OW_DEFAULT_HTTP_SERVER_USE_DIGEST },
00080    { INTEROP_SCHEMA_NAMESPACE_opt ,  OW_DEFAULT_INTEROP_SCHEMA_NAMESPACE },
00081    { LIBEXECDIR_opt ,  OW_DEFAULT_OWLIBEXECDIR },
00082    { HTTP_SERVER_LISTEN_ADDRESSES_opt ,  OW_DEFAULT_HTTP_SERVER_LISTEN_ADDRESSES },
00083    { LOG_1_CATEGORIES_opt ,  "" },
00084    { LOG_1_COMPONENTS_opt ,  OW_DEFAULT_LOG_1_COMPONENTS },
00085    { LOG_1_FLUSH_opt, OW_DEFAULT_LOG_1_FLUSH },
00086    { LOG_1_FORMAT_opt ,  OW_DEFAULT_LOG_1_FORMAT },
00087    { LOG_1_LEVEL_opt ,  OW_DEFAULT_LOG_1_LEVEL },
00088    { LOG_1_LOCATION_opt ,  "" },
00089    { LOG_1_MAX_BACKUP_INDEX_opt , OW_DEFAULT_LOG_1_MAX_BACKUP_INDEX },
00090    { LOG_1_MAX_FILE_SIZE_opt ,  OW_DEFAULT_LOG_1_MAX_FILE_SIZE },
00091    { LOG_1_TYPE_opt ,  OW_DEFAULT_LOG_1_TYPE },
00092    { LOG_DEBUG_LOG_NAME ,  "" },
00093    { LOG_LEVEL_opt ,  OW_DEFAULT_LOG_LEVEL },
00094    { LOG_LOCATION_opt ,  OW_DEFAULT_LOG_LOCATION },
00095    { LOG_MAIN_LOG_NAME ,  "" },
00096    { MAX_CLASS_CACHE_SIZE_opt ,  OW_DEFAULT_MAX_CLASS_CACHE_SIZE },
00097    { HTTP_SERVER_MAX_CONNECTIONS_opt ,  OW_DEFAULT_HTTP_SERVER_MAX_CONNECTIONS },
00098    { MAX_INDICATION_EXPORT_THREADS_opt ,  OW_DEFAULT_MAX_INDICATION_EXPORT_THREADS },
00099    { NPIPROVIFC_PROV_LOCATION_opt ,  OW_DEFAULT_NPIPROVIFC_PROV_LOCATION },
00100    //{ ONLY_HELP_opt ,  OW_DEFAULT_ONLY_HELP },
00101    { OWBI1IFC_PROV_LOCATION_opt, OW_DEFAULT_OWBI1IFC_PROV_LOCATION },
00102    { OWBI1IFC_PROV_TTL_opt, OW_DEFAULT_OWBI1IFC_PROV_TTL },
00103    { OWLIBDIR_opt ,  OW_DEFAULT_OWLIBDIR },
00104    { PAM_ALLOWED_USERS_opt ,  "" },
00105    { PERLPROVIFC_PROV_LOCATION_opt ,  OW_DEFAULT_PERLPROVIFC_PROV_LOCATION },
00106    { PIDFILE_opt, OW_DEFAULT_PIDFILE },
00107    { POLLING_MANAGER_MAX_THREADS_opt ,  OW_DEFAULT_POLLING_MANAGER_MAX_THREADS },
00108    { PROVIDER_IFC_LIBS_opt ,  OW_DEFAULT_PROVIDER_IFC_LIBS },
00109    { REMOTEPROVIFC_MAX_CONNECTIONS_PER_URL_opt ,  OW_DEFAULT_REMOTEPROVIFC_MAX_CONNECTIONS_PER_URL },
00110    { REQUEST_HANDLER_TTL_opt ,  OW_DEFAULT_REQUEST_HANDLER_TTL },
00111    { RESTART_ON_ERROR_opt ,  OW_DEFAULT_RESTART_ON_ERROR },
00112    { HTTP_SERVER_REUSE_ADDR_opt ,  OW_DEFAULT_HTTP_SERVER_REUSE_ADDR },
00113    { SIMPLE_AUTH_PASSWORD_FILE_opt ,  OW_DEFAULT_SIMPLE_AUTH_PASSWORD_FILE },
00114    { HTTP_SERVER_SINGLE_THREAD_opt ,  OW_DEFAULT_HTTP_SERVER_SINGLE_THREAD },
00115    { SLP_ENABLE_ADVERTISEMENT_opt ,  OW_DEFAULT_SLP_ENABLE_ADVERTISEMENT },
00116    { HTTP_SERVER_SSL_CERT_opt ,  "" },
00117    { HTTP_SERVER_SSL_KEY_opt ,  "" },
00118    { HTTP_SERVER_UDS_FILENAME_opt ,  OW_DEFAULT_HTTP_SERVER_UDS_FILENAME },
00119    { HTTP_SERVER_USE_UDS_opt ,  OW_DEFAULT_HTTP_SERVER_USE_UDS },
00120    { WQL_LIB_opt ,  OW_DEFAULT_WQL_LIB },
00121    { "zz_end" , "garbage" }
00122 }; 
00123 
00124 const NameAndDefault* const g_defaultsEnd = &g_defaults[0] + 
00125    (sizeof(g_defaults)/sizeof(*g_defaults)) - 1; 
00126 
00127 
00128 
00129 
00130 
00131 } // end namespace ConfigOpts
00132 } // end namespace OpenWBEM
00133 

Generated on Thu Feb 9 08:47:57 2006 for openwbem by  doxygen 1.4.6