Hi,

You need to uses "Name"  and "Password" field (bareos console user) from
/etc/bareos/bareos-dir.d/bareos-webui.conf to login, not database user.

-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Sven Gehr
Sent: Montag, 13. April 2015 11:02
To: [email protected]
Subject: [bareos-users] bareos-webui, test ok but no login

Hi@all,

I use bareos for some time and it works without error :-) My host is a
Ubuntu 14.04.2 LTS (64Bit). The installed packages:

ii  bareos                              14.2.2-46.1   amd64
ii  bareos-bconsole                     14.2.2-46.1   amd64
ii  bareos-client                       14.2.2-46.1   amd64
ii  bareos-common                       14.2.2-46.1   amd64
ii  bareos-database-common              14.2.2-46.1
ii  bareos-database-postgresql          14.2.2-46.1   amd64
ii  bareos-database-tools               14.2.2-46.1   amd64
ii  bareos-director                     14.2.2-46.1   amd64
ii  bareos-filedaemon                   14.2.2-46.1   amd64
ii  bareos-storage                      14.2.2-46.1   amd64
ii  bareos-tools                        14.2.2-46.1   amd64
ii  bareos-traymonitor                  14.2.2-46.1   amd64
ii  bareos-webui                        14.2.0.git.1428491022-63.1   all


Not surprised the hostnam is "bacula01" .... fqh=bacula.local.lan


I follow the install-instructions:



echo "@/etc/bareos/bareos-dir.d/bareos-webui.conf" >>
/etc/bareos/bareos-dir.conf su - postgres DB_USER=bareos_webui
DB_PASS=geheim /usr/lib/bareos/scripts/bareos-config
get_database_grant_priviliges postgresql $DB_USER $DB_PASS readonly >
/tmp/database_grant_priviliges.sql
psql -d bareos -f /tmp/database_grant_priviliges.sql
rm /tmp/database_grant_priviliges.sql
exit


edit /etc/bareos-webui/directors.ini:


[bacula01-dir]
enabled = "yes"
dbdriver = "postgresql"
dbaddress = "localhost"
dbport = 5432
dbuser = "bareos_webui"
dbpassword = "secret"
dbname = "bareos"
diraddress = "bacula01.local.lan"
dirport = 9101


echo "ServerName bacula01.local.lan" | tee
/etc/apache2/conf-available/servername.conf

a2enconf servername


and reboot the host.

When I open the URL:

http://bacula01.local.lan/bareos-webui/install/test

from a Win7-Host all looks good (status=ok)

When I try to login on:

http://bacula01.local.lan/bareos-webui

with

[bacula01-dir]
dbuser = "bareos_webui"
dbpassword = "secret"

I get the error:

"Sorry, can not authenticate. Wrong username and/or password"

The bareos message daemon send me a mail:

13-Apr 10:57 bacula01-dir: ERROR in authenticate.c:446 Unable to
authenticate console "bareos_webui" at client:192.168.1.124:9101.


My /etc/postgresql/9.3/main/pg_hba.conf:

local   all             postgres                                peer
local   all             all                                     peer
host    all             all             127.0.0.1/32            md5
host    all             all             ::1/128                 md5
host    bareos      bareos_webui    127.0.0.1/32        md5
host    bareos      bareos_webui    192.168.1.0/24         md5
host    bareos      bareos_webui    ::1/128         md5

What is wrong?

best regards
sven

--
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.

-- 
.

-- 
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.

Reply via email to