Sorry, can not authenticate. Wrong username and/or password.
20-Mar 18:50 bareos-dir JobId 0: Fatal error: Authorization key rejected by Console BackupUsername.
Please see http://doc.bareos.org/master/html/bareos-manual-main-reference.html#AuthorizationErrors for help.
20-Mar 18:50 bareos-dir: ERROR in authenticate.c:283 Unable to authenticate console "BackupUsername" at client:85.190.190.190:9101.
Username and IP are fictional obviously...
No clue what's wrong here, or what I am doing wrong. Seems hopeless...
[root@bareos-gui console]# locate bareos-dir.conf
/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
[root@bareos-gui console]# locate bconsole.conf
/etc/bareos/bconsole.conf
[root@bareos-gui console]# locate bareos-sd.conf
/etc/bareos/bareos-sd.d/storage/bareos-sd.conf
[root@bareos-gui console]# locate bareos-fd.conf
/etc/bareos/bareos-dir.d/client/bareos-fd.conf
/etc/bareos/bareos-dir.d/job/backup-bareos-fd.conf
Maybe everyone is has an IQ of 140 and mine is lower, because I really don't understand what I am doing wrong here. Also some advice would be very helpful and productive.
But still the same issue.
Anyways, I installed "yum install python-bareos"
I followed your steps, but tried it first with my own created credentials. For some reason it didn't work (maybe to many difficult characters?).
So I followed your tutorial (though I changed the username and password a bit):
This is the result:
[root@bareos-gui director]# bconsole.py --debug --name=admin555 --password=secret999 127.0.0.1
DEBUG bconsole.<module>: address: 127.0.0.1
DEBUG bconsole.<module>: port: 9101
DEBUG bconsole.<module>: dirname: ""
DEBUG bconsole.<module>: name: admin555
DEBUG bconsole.<module>: options: {'port': 9101, 'name': 'admin555', 'address': '127.0.0.1'}
DEBUG lowlevel.__init__: init
DEBUG lowlevel.__connect: connected to 127.0.0.1:9101
DEBUG lowlevel.send: Hello admin555 calling
DEBUG lowlevel.__get_header: remaining header len: 4
DEBUG lowlevel.recv_submsg: submsg len: 55
DEBUG lowlevel._cram_md5_respond: (recv): auth cram-md5 <1478914868.1521581178@bareos-dir> ssl=0
DEBUG lowlevel.send: T+s8r5+MB+E8U+chP+IVXA
DEBUG lowlevel.__get_header: remaining header len: 4
DEBUG lowlevel.recv_submsg: submsg len: 13
DEBUG lowlevel.send: auth cram-md5 <7477529783.1521581178@admin555> ssl=0
DEBUG lowlevel.__get_header: remaining header len: 4
DEBUG lowlevel.recv_submsg: submsg len: 23
DEBUG lowlevel._cram_md5_challenge: received: gGcvuV/mm6cJ395X3z+g5A
DEBUG lowlevel._cram_md5_challenge: string_to_base64, compatible: gGcvuVHmmacJ3N5X3zKg5A
DEBUG lowlevel._cram_md5_challenge: string_to_base64, not compatible: gGcvuV/mm6cJ395X3z+g5A
DEBUG lowlevel.send: 1000 OK auth
DEBUG lowlevel.__get_header: remaining header len: 4
DEBUG lowlevel.recv_submsg: submsg len: 50
DEBUG lowlevel.recv_msg: msg "1000 OK: bareos-dir Version: 17.2.4 (21 Sep 2017)" matches regex "^1000 OK.*$"
DEBUG lowlevel.send: autodisplay off
DEBUG lowlevel.__get_header: remaining header len: 4
DEBUG lowlevel.recv_submsg: submsg len: 19
DEBUG lowlevel.__get_header: remaining header len: 4
DEBUG lowlevel.__set_status: End of data stream, new data may follow (-1)
DEBUG bconsole.<module>: authentication successful
Result: authentication successful
So since this is succesful? What's wrong? :(
Result:
<snip>
DEBUG bconsole.<module>: authentication successful
And now I can login...?!
Now I am wondering can it be the used username? Username was something like this: "WELBackup"
And the password started with an exclamation mark (!) and ended with a hashtag (#) symbol.
Maybe that's causing the issues? Because the setup was done like previously, so no change in that. Maybe the password/username is to difficult for Bareos. LOL.
Regards,
Mik
I didn't do anything else at all. Just followed the tutorial in my first post.
Op woensdag 21 maart 2018 07:49:07 UTC+1 schreef Mik Bakker: