Am 13.04.2015 um 11:01 schrieb Sven Gehr:
> 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
> 

Hi Sven,

according to your description above and the authentication error you
got, it seems you haven't configured the needed restricted console properly.

The credentials you have to provide at login to authenticate aren't
those of the database user you created. You have to use name (username)
and password of the restricted console you defined in
/etc/bareos/bareos-dir.d/bareos-webui.conf.

Please see step two of the installation manual,
https://github.com/bareos/bareos-webui/blob/master/doc/INSTALL.md .

Regards,
Frank

-- 
Frank Bergkemper                           [email protected]
dass IT GmbH                               Phone:  +49.221.3565666-94
http://www.dass-IT.de/                     Fax  : +49.221.3565666-10

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRB52500
GF: Stephan Dühr, Maik Außendorf, Jörg Steffens, Philipp 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.

Reply via email to