]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/console/console_conf.h
First cut Console ACLs
[bacula/bacula] / bacula / src / console / console_conf.h
1 /*
2  * Bacula User Agent specific configuration and defines
3  *
4  *     Kern Sibbald, Sep MM
5  *
6  *     Version $Id$
7  */
8
9 /*
10  * Resource codes -- they must be sequential for indexing   
11  */
12 #define R_FIRST                       1001
13
14 #define R_CONSOLE                     1001
15 #define R_DIRECTOR                    1002
16
17 #define R_LAST                        R_DIRECTOR
18
19 /*
20  * Some resource attributes
21  */
22 #define R_NAME                        1020
23 #define R_ADDRESS                     1021
24 #define R_PASSWORD                    1022
25 #define R_TYPE                        1023
26 #define R_BACKUP                      1024
27
28
29 /* Definition of the contents of each Resource */
30
31 /* Console "globals" */
32 struct s_res_con {
33    RES   hdr;
34    char *rc_file;                     /* startup file */
35    char *hist_file;                   /* command history file */
36    int require_ssl;                   /* Require SSL on all connections */
37    char *password;                    /* UA server password */
38 };
39 typedef struct s_res_con CONRES;
40
41 /* Director */
42 struct s_res_dir {
43    RES   hdr;
44    int   DIRport;                     /* UA server port */
45    char *address;                     /* UA server address */
46    char *password;                    /* UA server password */
47    int  enable_ssl;                   /* Use SSL */
48 };
49 typedef struct s_res_dir DIRRES;
50
51
52 /* Define the Union of all the above
53  * resource structure definitions.
54  */
55 union u_res {
56    struct s_res_dir     res_dir;
57    struct s_res_con     res_cons;
58    RES hdr;
59 };
60
61 typedef union u_res URES;