Bug 262153 - www/bareos-webui: 21.0.0 cannot authenticate
Summary: www/bareos-webui: 21.0.0 cannot authenticate
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Jose Alonso Cardenas Marquez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-23 15:32 UTC by Felicián Hoppál
Modified: 2022-03-06 20:26 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (acm)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felicián Hoppál 2022-02-23 15:32:42 UTC
After upgrading to 21.0.0 I always get the error: 'Sorry, cannot authenticate. Wrong username, password or SSL/TLS handshake failed.' If I shut down the director I get 'Error: Connection refused, director seems to be down or blocking our request.' so the auth fails, the webui can communicate with the dir. I'm using PHP 7.4.27.

I've tried the stock config with TLS Enable = no in dir's console.conf and TLS disabled in webui's directors.ini:

tls_verify_peer = false
server_can_do_tls = false
server_requires_tls = false
client_can_do_tls = false
client_requires_tls = false

1000 OK: xxx-dir Version: 21.0.0 (21 December 2021)
self-compiled binary
self-compiled binaries are UNSUPPORTED by bareos.com.
Get official binaries and vendor support on https://www.bareos.com
You are connected using the default console

Enter a period (.) to cancel a command.
*show consoles
Console {
  Name = "admin"
  Password = "[md5]xxx"
  Profile = "webui-admin"
  TlsEnable = No
}

*show profiles
Profile {
  Name = "webui-admin"
  JobAcl = "*all*"
  ClientAcl = "*all*"
  StorageAcl = "*all*"
  ScheduleAcl = "*all*"
  PoolAcl = "*all*"
  CommandAcl = "!.bvfs_clear_cache", "!.exit", "!.sql", "!configure", "!create", "!delete", "!purge", "!prune", "!sqlquery", "!umount", "!unmount", "*all*"
  FileSetAcl = "*all*"
  CatalogAcl = "*all*"
  WhereAcl = "*all*"
}
Comment 1 Felicián Hoppál 2022-03-02 16:30:20 UTC
Solved this one. In /usr/local/www/bareos/version.php the variable $bareos_full_version is empty:

$bareos_full_version = "";

If I replace it with the valid version,

$bareos_full_version = "21.0.0";

it works instantly.

Please update the port because it's broken.
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-03-06 20:25:30 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4e171dd99a5f58849e8d61f7719ef8ecaba4b472

commit 4e171dd99a5f58849e8d61f7719ef8ecaba4b472
Author:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2022-03-06 20:21:34 +0000
Commit:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2022-03-06 20:21:34 +0000

    www/bareos-webui: Fix problem on authenticate time

    - Fix issue where bareos version is not defined. It cause problems on
      authenticate time
    - Bump PORTREIVISION
    PR:             262153
    Reported by:    feldeci  _at_  gmail.com

 www/bareos-webui/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Comment 3 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2022-03-06 20:26:45 UTC
- Committed thanks!