Yeah, that's why I understand I am experiencing these difficulties. At first I 
thought it might be the OpenVZ container, so I created a bare-metal server 
instead with CentOS 7.x.

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? :(

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