2 Bacula(R) - The Network Backup Solution
4 Copyright (C) 2000-2015 Kern Sibbald
6 The original author of Bacula is Kern Sibbald, with contributions
7 from many others, a complete list can be found in the file AUTHORS.
9 You may use this file and others of this release according to the
10 license defined in the LICENSE file, which includes the Affero General
11 Public License, v3.0 ("AGPLv3") and some additional permissions and
12 terms pursuant to its AGPLv3 Section 7.
14 This notice must be preserved when any source code is
15 conveyed and/or propagated.
17 Bacula(R) is a registered trademark of Kern Sibbald.
20 * Bacula File Daemon specific configuration
22 * Kern Sibbald, Sep MM
26 * Resource codes -- they must be sequential for indexing
30 #define R_DIRECTOR 1001
37 * Some resource attributes
40 #define R_ADDRESS 1021
41 #define R_PASSWORD 1022
45 /* Definition of the contents of each Resource */
48 char *password; /* Director password */
49 char *address; /* Director address or zero */
50 bool monitor; /* Have only access to status and .status functions */
51 bool tls_authenticate; /* Authenticate with TSL */
52 bool tls_enable; /* Enable TLS */
53 bool tls_require; /* Require TLS */
54 bool tls_verify_peer; /* TLS Verify Client Certificate */
55 char *tls_ca_certfile; /* TLS CA Certificate File */
56 char *tls_ca_certdir; /* TLS CA Certificate Directory */
57 char *tls_certfile; /* TLS Server Certificate File */
58 char *tls_keyfile; /* TLS Server Key File */
59 char *tls_dhfile; /* TLS Diffie-Hellman Parameters */
60 alist *tls_allowed_cns; /* TLS Allowed Clients */
61 uint64_t max_bandwidth_per_job; /* Bandwidth limitation (per director) */
62 TLS_CONTEXT *tls_ctx; /* Shared TLS Context */
63 alist *disable_cmds; /* Commands to disable */
64 bool *disabled_cmds_array; /* Disabled commands array */
70 dlist *FDsrc_addr; /* address to source connections from */
71 char *working_directory;
73 char *subsys_directory;
74 char *plugin_directory; /* Plugin directory */
75 char *scripts_directory;
76 char *snapshot_command;
77 MSGS *messages; /* daemon message handler */
78 uint32_t MaxConcurrentJobs;
79 utime_t SDConnectTimeout; /* timeout in seconds */
80 utime_t heartbeat_interval; /* Interval to send heartbeats */
81 uint32_t max_network_buffer_size; /* max network buf size */
82 bool pki_sign; /* Enable Data Integrity Verification via Digital Signatures */
83 bool pki_encrypt; /* Enable Data Encryption */
84 char *pki_keypair_file; /* PKI Key Pair File */
85 alist *pki_signing_key_files; /* PKI Signing Key Files */
86 alist *pki_master_key_files; /* PKI Master Key Files */
87 uint32_t pki_cipher; /* PKI Cipher type */
88 uint32_t pki_digest; /* PKI Digest type */
89 bool tls_authenticate; /* Authenticate with TLS */
90 bool tls_enable; /* Enable TLS */
91 bool tls_require; /* Require TLS */
92 char *tls_ca_certfile; /* TLS CA Certificate File */
93 char *tls_ca_certdir; /* TLS CA Certificate Directory */
94 char *tls_certfile; /* TLS Client Certificate File */
95 char *tls_keyfile; /* TLS Client Key File */
97 X509_KEYPAIR *pki_keypair; /* Shared PKI Public/Private Keypair */
98 alist *pki_signers; /* Shared PKI Trusted Signers */
99 alist *pki_recipients; /* Shared PKI Recipients */
100 TLS_CONTEXT *tls_ctx; /* Shared TLS Context */
101 char *verid; /* Custom Id to print in version command */
102 uint64_t max_bandwidth_per_job; /* Bandwidth limitation (global) */
103 alist *disable_cmds; /* Commands to disable */
104 bool *disabled_cmds_array; /* Disabled commands array */
109 /* Define the Union of all the above
110 * resource structure definitions.