Hi Jörg,
Thanks for taking the time to help me.
I just redid the installation, as mentioned in the given tutorial. So I have a
clean install.
I checked both files and they to match, but here is the output:
/etc/bareos/bconsole.conf:
# Bareos User Agent (or Console) Configuration File
#
Director {
Name = bareos-dir
address = localhost
Password = "Zv50xay/lfq8dxVpxWcmOAqzwNrv0j0zJGyCcV39"
Description = "Bareos Console credentials for local Director"
}
And /etc/bareos/bareos-dir.d/director/bareos-dir.conf:
Director { # define myself
Name = bareos-dir
QueryFile = "/usr/lib/bareos/scripts/query.sql"
Maximum Concurrent Jobs = 10
Password = "Zv50xay/lfq8dxVpxWcmOAqzwNrv0j0zJGyCcV39" # Console
password
Messages = Daemon
Auditing = yes
So the passwords both match. So that's good I guess.
I created an user with bconsole. This was mentioned in the tutorial.
bconsole
configure add console name=DirUserName password=RndPass001 profile=webui-admin
After that I got a message that it created a resource config file:
Created resource config file
"/etc/bareos/bareos-dir.d/console/DirUserName.conf":
Console {
Name = DirUserName
Password = RndPass001
Profile = webui-admin
}
Then I logged out of bconsole and restarted all services to make sure.
When I try to login on bareos-webui, with the created credentials, I get the
"Sorry, can not authenticate. Wrong username and/or password." as described in
my first post.
Probably I am making a beginners mistake somewhere, but what I do find weird,
is that in the mentioned tutorial the created user can simply login without any
other actions. So I am doing something wrong, or the tutorial is incorrect or
missing some step?
Regards,
Mik
Op dinsdag 20 maart 2018 10:27:15 UTC+1 schreef Jörg Steffens:
> 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 joerg.steffens @bareos.com
> 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.