[baculum] Invalid Director
Summary
Reproducibility | Platform | OS | OS Version | Product Version |
---|---|---|---|---|
always | AMD64 | Debian | Bullseye | 11.0.6 |
Description
After having installed and configured Baculum 11.0.6 using debian repositories, accessing the dashboard throws an error "Invalid Director".
Additional Information
I investigated a bit and found that the Web component is not specifying the director when calling the endpoint /api/v2/jobs
(i.e. "GET /api/v2/jobs?director= HTTP/1.1" 401
). I don't know where the director is firstly initialized (is there any setting for it?).
Bypass
I managed to bypass it by forcing the director name in the file /usr/share/baculum/htdocs/protected/API/Class/BaculumAPIServer.php
:
$this->director = $this->Request->contains('director') ? $this->Request['director'] : 'mybaculadir-dir';
instead of null
.