00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
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
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 }
00132 }
00133