On Monday, October 3, 2016 at 12:46:44 PM UTC-6, Kenny Hibberd wrote:
> On Monday, October 3, 2016 at 11:33:10 AM UTC-6, Kenny Hibberd wrote:
> > I didn't get back to this until today. I'm not sure of the syntax to add
> > config files for the bareos-dir.d to the bareos-dir.conf file. Can somebody
> > post an example, and say whether it should go in any special place in the
> > file?
> >
> > Very much appreciated!!!
> >
> > Kenny
> >
> > On Wednesday, September 28, 2016 at 6:08:01 AM UTC-6, Kenny Hibberd wrote:
> > > On Wednesday, September 28, 2016 at 6:00:48 AM UTC-6, Jochen Eggemann
> > > wrote:
> > > > Am Mittwoch, 28. September 2016 12:20:18 UTC+2 schrieb Frank Bergkemper:
> > > > > Am 28.09.2016 um 12:02 schrieb Jochen Eggemann:
> > > > > > Hi everybody,
> > > > > >
> > > > > > I installed Bareos 16.2 RC1 on Ubuntu 16.04.1.
> > > > > > Everything works, bconsole is OK.
> > > > > >
> > > > > > But trying to log into the webui gives me following error:
> > > > > >
> > > > > > Backup-dir: ERROR in authenticate.c:282 Unable to authenticate
> > > > > > console "BckpAdmin" at client:192.168.100.210:9101.
> > > > > >
> > > > > > How can I check if that user is still in the database?
> > > > > > Any ideas?
> > > > > >
> > > > > > I added the relevant config files (I hope)
> > > > > >
> > > > > > baroes/bareos-dir.d/console/admin.conf:
> > > > > > #
> > > > > > # Restricted console used by bareos-webui
> > > > > > #
> > > > > > Console {
> > > > > > Name = BckpAdmin
> > > > > > Password = "XXXXXXXX"
> > > > > > Profile = "webui-admin"
> > > > > > }
> > > > > >
> > > > > > bareos/bareos-dir.d/profile/operator.conf:
> > > > > > Profile {
> > > > > > Name = operator
> > > > > > Description = "Profile allowing normal Bareos operations."
> > > > > >
> > > > > > Command ACL = !.bvfs_clear_cache, !.exit, !.sql
> > > > > > Command ACL = !configure, !create, !delete, !purge, !sqlquery,
> > > > > > !umount, !unmount
> > > > > > Command ACL = *all*
> > > > > >
> > > > > > Catalog ACL = *all*
> > > > > > Client ACL = *all*
> > > > > > FileSet ACL = *all*
> > > > > > Job ACL = *all*
> > > > > > Plugin Options ACL = *all*
> > > > > > Pool ACL = *all*
> > > > > > Schedule ACL = *all*
> > > > > > Storage ACL = *all*
> > > > > > Where ACL = *all*
> > > > > > }
> > > > > >
> > > > > > bareos/bareos-dir.d/profile/webui-admin.conf
> > > > > > #
> > > > > > # bareos-webui webui-admin profile resource
> > > > > > #
> > > > > > Profile {
> > > > > > Name = webui-admin
> > > > > > Command ACL = !.bvfs_clear_cache, !.exit, !.sql
> > > > > > Command ACL = !configure, !create, !delete, !purge, !sqlquery,
> > > > > > !umount, !unmount
> > > > > > Command ACL = *all*
> > > > > >
> > > > > > Catalog ACL = *all*
> > > > > > Client ACL = *all*
> > > > > > FileSet ACL = *all*
> > > > > > Job ACL = *all*
> > > > > > Pool ACL = *all*
> > > > > > Schedule ACL = *all*
> > > > > > Storage ACL = *all*
> > > > > > Where ACL = *all*
> > > > > > }
> > > > > >
> > > > > > Thanks for the OSB conference I enjoyed it very much.
> > > > > >
> > > > > > Jochen
> > > > > >
> > > > >
> > > > > Hi Jochen,
> > > > >
> > > > > great to hear you enjoyed OSBConf very much.
> > > > >
> > > > > Did you reload your configuration after installing webui and adding a
> > > > > new console by executing the reload command in bconsole?
> > > > >
> > > > > I think you simply may have forgotten to reload you configuration or
> > > > > restarting you director.
> > > > >
> > > > > Users are not stored in database. But you can check which consoles for
> > > > > users are currently configured by executing the ".console" command in
> > > > > bconsole.
> > > > >
> > > > > 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
> > > >
> > > > Hi Frank,
> > > >
> > > > thanks for the fast response.
> > > >
> > > > I was hit by the mix of the new structured conf directories and an old
> > > > bareos-dir.conf. After manually adding the path to
> > > > bareos-dir.d/[console, profile]/xxx.conf in bareos-dir.conf everything
> > > > works.
> > > >
> > > > Regards, Jochen
> > >
> > > Jochen,
> > >
> > > Thanks for your input. This sounds like it might fix my issue as
> > > well, I'll try it later today, and let you know if it fixes my issue.
> > >
> > > Thanks!!!!
> > >
> > > Kenny
>
> I added the following to the end of the bareos-dir.conf file:
>
> @/etc/bareos/bareos-dir.d/console/*.conf
> @/etc/bareos/bareos-dir.d/profile/*.conf
>
> Then I restarted the bareos-dir service. Now when I login, I get the message:
> Error:
>
> "Connection refused, director seems to be down or blocking our request."
>
> I think I've moved past the login issue, and on to the next issue. Can
> somebody check my work to tell me if I setup these links correctly?
>
> Thank you!!!
>
> Kenny
Maybe I didn't move past this issue, because I found this in the syslog:
Oct 3 09:41:08 backup bareos-dir[1173]: Config error: Cannot open included
config file /etc/bareos/bareos-dir.d/console/*.conf: No such file or directory
So I tried to explicitly define the actual files with this:
@/etc/bareos/bareos-dir.d/console/admin.conf
@/etc/bareos/bareos-dir.d/profile/webui-admin.conf
Then I found this in the syslog:
Oct 3 10:17:25 backup bareos-dir[1192]: Config error: Keyword "Profile" not
permitted in this resource.
So I removed the reference to the profile configuration file, and restarted,
but still have the same error message. I'm not sure what it needs.
Kenny
--
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.