On 20.03.2018 at 08:55 wrote Mik Bakker: > I wanted to give Bareos (Open Source Data Protection) a go to see how > it works and performs. However I cannot even get past the basic > installation and get it working... > > I followed the following installation tutorial (several times now): > https://www.svennd.be/installing-bareos-on-centos-7/ > > But I am getting every time the following error: Sorry, can not > authenticate. Wrong username and/or password.
from the bconsole or the webui? > I don't understand what I am doing wrong. I even tried using the > previous version of Bareos 16.2, but that didn't make a difference > and I experience the same issue. I am 200% sure the password and > username are correct. > > I also consulted the logs: 17-Mar 13:00 bareos-dir JobId 0: Fatal > error: Authorization key rejected by Console USERNAME. Please see > http://doc.bareos.org/master/html/bareos-manual-main-reference.html#AuthorizationErrors > for help. 17-Mar 13:00 bareos-dir: ERROR in authenticate.c:283 Unable > to authenticate console "USERNAME" > > > I checked that page (also several times) and even made sure the > (user)names/passwords were correct. But still I get the message > "Sorry, can not authenticate. Wrong username and/or password." when I > try to login on "bareos-webui". > > Probably I am doing something wrong, but I cannot disover what. > > I have the following files available. Maybe I need to make certain > changes to those as well? > > /etc/bareos/bareos-dir.d/director/bareos-dir.conf > /etc/bareos/bareos-fd.d/director/bareos-dir.conf > /etc/bareos/bareos-sd.d/director/bareos-dir.conf > /etc/bareos/bconsole.conf > /etc/bareos/bareos-sd.d/storage/bareos-sd.conf > /etc/bareos/bareos-dir.d/client/bareos-fd.conf > /etc/bareos/bareos-dir.d/job/backup-bareos-fd.conf > > When I compared some files, they have different passwords in them? > > For example: /etc/bareos/bareos-fd.d/director/bareos-dir.conf > Director { Name = bareos-dir Password = > "J36zN1mQVF5lLA/FP0kASo+X9wTo8D988nsVqZjx" Description = "Allow the > configured Director to access this file daemon." } > > > And /etc/bareos/bareos-sd.d/director/bareos-dir.conf > > Director { Name = bareos-dir Password = > "PAU/ov3RvnFp0I59brd4d8u9m8ejRpkVE7P/4Qz3" Description = "Director, > who is permitted to contact this storage daemon." } > > > And (one more example): /etc/bareos/bconsole.conf > > # Bareos User Agent (or Console) Configuration File Director { Name = > bareos-dir address = localhost Password = > "Fs5JnyO1ypBhcR0D9CNkx3gynPMa+jmp7sj9Ghst" Description = "Bareos > Console credentials for local Director" } > > > They all have different passwords here? As I understand it, from the > online docs, they should all be the same, right? no, these are intended to be different. The password in /etc/bareos/bconsole.conf have to match the password in /etc/bareos/bareos-dir.d/director/bareos-dir.conf. Unfortunately, this file is not given. > Maybe that's the issue? Hopefully someone can explain things a bit > better or advice me what to do in order to get this working... Maybe > it's something simple that I may overlooked? > > FYI: I whitelisted all IP's and ports I use on this server. > > I re-read the documents once again and it says: "The default > configuration files are automatically defined for correct authorization > with random passwords. If you add to or modify these files, you will > need to take care to keep them consistent." > > So if I didn't change a thing, it should have worked in the first > place, right? Yes. At least the 3 daemon on the same server and the bconsole. webui is another matter. You also mention that you have created a user via bconsole. Can you give more details on that? [...] -- Jörg Steffens [email protected] Bareos GmbH & Co. KG Phone: +49 221 630693-91 http://www.bareos.com Fax: +49 221 630693-10 Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646 Komplementär: Bareos Verwaltungs-GmbH Geschäftsführer: S. Dühr, M. Außendorf, Jörg Steffens, P. Storz -- You received this message because you are subscribed to the Google Groups "bareos-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
