Re: [Bacula-devel] Client in python

2011-01-27 Thread Matthew Ife
Heres a snippet of the code I use: _recv() is a protocol compliant function just used to get the length and return the real data. Same for _send. The rest should make some sense. The important bit is how the base64 is implemented. This code works to authenticate as a director (we actually use thi

Re: [Bacula-devel] Client in python

2011-01-27 Thread Derek Wright
On Thu, Jan 27, 2011 at 8:59 AM, Nabil Servais wrote: > I update my code, I think I manage to use the same algorithms of > bacula for the challenge but result between my code and bconsole is a > bite different. I don't understand why. > > For example : > > challenge send by the server : > <2014017

Re: [Bacula-devel] Client in python

2011-01-27 Thread Nabil Servais
I update my code, I think I manage to use the same algorithms of bacula for the challenge but result between my code and bconsole is a bite different. I don't understand why. For example : challenge send by the server : <2014017250.1296136483@eole-laptop-dir> and the response of bconsole: dg5j5

Re: [Bacula-devel] Client in python

2011-01-26 Thread Rory Campbell-Lange
On 26/01/11, Nabil Servais ([email protected]) wrote: > I try to implements bacula protocol in python. > > I have some difficulites about the digest challenge. And I'm not an expert in > C. > > My code : http://pastebin.com/pX9HdC1q I haven't had a chance to look at your code, but the res