]> git.sur5r.net Git - bacula/bacula/blob - gui/baculum/README
baculum: Update language files
[bacula/bacula] / gui / baculum / README
1 Baculum - Bacula web interface
2
3 Table of content:
4
5 1. Customized and restricted consoles
6 2. Baculum users configuration file
7 3. FAQ
8
9 ================================================================================
10
11 === 1. Customized and restricted consoles ===
12
13 Baculum supports customized and restricted consoles for each logged in user.
14
15 Before using customized and restricted consoles please check location for
16 bconsole configuration files for each user. For do it, there is need to run
17 on Baculum webGUI configuration wizard and there is need to go to "Console"
18 wizard step (fourth step).
19
20 In "Console" wizard step there is field defined as:
21
22 Bconsole custom config file path: __________________
23
24 In this field there is required to define location for restricted consoles.
25 In defined path exists one keyword {user}. It will be replaced into current
26 logged in username.
27
28 For example, if there is logged user named "john", keyword {user} will be replaced
29 into "john".
30
31
32 Example:
33
34 "Bconsole custom config file path" is defined as:
35
36 /usr/local/bacula/etc/bconsole-{user}.conf
37
38 After login user "john" to Baculum webGUI, for each bconsole request will be
39 used file:
40
41 /usr/local/bacula/etc/bconsole-john.conf
42
43 It makes available to define some specific console access (or restricted access)
44 for each Baculum user.
45
46 For user named "willy" in above configured path according bconsole configuration
47 file will be:
48
49 /usr/local/bacula/etc/bconsole-willy.conf
50
51 etc...
52
53
54 NOTE!
55
56 In configuration wizard step "Console" there is also field:
57
58 "Bconsole admin config file path:": ___________________
59
60 Config file defined in this field will be used by administrator only. For this
61 reason the best practice is to define here console configuration file that gives
62 full access for administrator.
63
64 Administrator user and password will be defined in next configuration wizard
65 step named "Authorization" (fifth step).
66
67
68 Baculum users are defined on web server level as described in instruction
69 in attached to Baculum INSTALL file.
70
71 Example:
72
73 For creating users "john" and "willy" as Baculum HTTP Basic authorization users
74 there is need to create this users for example by:
75
76 # htpasswd /some/location/htpasswd/file john
77
78 # htpasswd /some/location/htpasswd/file willy
79
80 For case using other HTTP Basic authorization backends (for example LDAP) there
81 is need to define these users in this specific service.
82
83
84 Example of content custom consoles configuration file is below:
85
86 Console {
87     Name = "BaculaRestrictedUser"
88     Password = "XXXXXXXXX"
89     CommandACL = show,.client,.jobs,.fileset,.pool,.storage,.jobs,.bvfs_update,
90 .bvfs_lsdirs,.bvfs_lsfiles,.bvfs_versions,.bvfs_get_jobids,.bvfs_restore,restore
91     CatalogACL = *all*
92     ClientACL = user-fd
93     JobACL = somejob1,userjob
94     PoolACL = Full-Pool
95     StorageACL = VTL
96     FileSetACL = somejob1-fileset,userjobFileSet3
97     WhereACL = *all*
98 }
99
100 After defining these ACL there is also need to define the console access to
101 Director service in Bacula Director configuration file as Console{} resource.
102
103
104 NOTE!
105
106 Please note that in above example in CommandACL are shown the most
107 essential commands necessary for proper working of Baculum webGUI and
108 possibility do to restore action (all .bvfs_* command and "restore"
109 command)
110
111 Below are the same necessary commands broke one per line:
112
113 show
114 .client
115 .jobs
116 .fileset
117 .pool
118 .storage
119 .jobs
120 .bvfs_update
121 .bvfs_lsdirs
122 .bvfs_lsfiles
123 .bvfs_versions
124 .bvfs_get_jobids
125 .bvfs_restore
126 restore
127
128
129 Catalog Database restriction
130
131 Because Baculum in few parts of interface uses data from Bacula Catalog Database,
132 for each user who IS NOT administrator there has been disabled EVERY write to
133 Bacula Catalog database by Baculum webGUI. Modification Bacula Catalog Database
134 tables is possible ONLY for Baculum administrator.
135
136 Additionally because of Console ACL functionality does not support restriction
137 on media/volumes level, access to media/volumes has been disabled for all users
138 except administrator.
139
140
141 Configuration wizard restriction
142
143 For security reason there has been disabled access to Configuration Wizard
144 function for all users except administrator.
145
146
147 ================================================================================
148
149 === 2. Baculum users configuration file ===
150
151 There is possible to manage Baculum administrator login and password directly
152 in configuration wizard step titled "Step 5 - authorization params to Baculum".
153
154 It means that Baculum administrator may change admin auth params by
155 configuration wizard.
156
157 ---------------- NOTE ---------------
158 In older Baculum versions (before 7.0.5) in Step 5 configuration wizard there were
159 need to input admin auth params the same as in pre-defined file by "htpasswd"
160 program.
161
162 In version 7.0.5 has been introduced partial support for possibility changing
163 username and password from Baculum interface working on Lighttpd web server.
164
165 From version 7.2.0 this limitation has been abolished. As long as Web Server uses
166 HTTP Basic auth file located in:
167
168 ./protected/Data/baculum.users
169
170 and Web Server is capable to write (write permission) to this passwords file as
171 long is possible to change username and password from Baculum interface level.
172 ------------ NOTE END -------------
173
174 ================================================================================
175
176 === 3. FAQ ===
177
178 a) Why Jobs list and/or Media list windows do not show any content?
179
180    In case when in Bacula Catalog database exist a lot of finished Jobs or Media
181 records, for example more than 2000, and window with Jobs or Media list do not
182 show any content, then please consider increase "memory_limit" option in php.ini
183 PHP configuration file to higher value than 256M. There is also possible to set
184 limit window list elements on webGUI in window tools option (on window bottom
185 bar), without changing "memory_limit" value.
186
187 b) Just after finish initial wizard there is not possible to login to Baculum
188
189    From Baculum 7.2.0 has been changed format storing passwords. Passwords
190 stored by Baculum for HTTP Basic authentication are encrypted by MD5. It is default
191 alghoritm used by "htpasswd" program. Plain text passwords for HTTP Basic auth
192 are not longer supported by Baculum.
193    From this reason good to check if used web server for Baculum is set to using
194 MD5 type passwords in HTTP Basic authentication.
195
196 c) Why time fields values contain invalid date/time values?
197   This case can mean that timezone is not set for PHP in php.ini file or the
198 timezone value needs correction. To fix it please add (or update) "date.timezone"
199 value in php.ini file. For example:
200
201 date.timezone = "Europe/Warsaw"