On 30/09/10, Derek Wright ([email protected]) wrote:
> On Thu, Sep 30, 2010 at 9:45 AM, Joakim Tjernlund
> <[email protected]> wrote:
> > Derek Wright <[email protected]> wrote on 2010/09/30 15:27:06:

> > Could it be that Director expects an newline in the end?

> But that ascii "C" is created in the encoding process from the 16bit
> hmac-md5 hash (i think? :P ). When I take the text output from my
> program and send it to the director it is terminated with a newline
> character. Basically im executing this little program w/ PHP exec()
> and sending the generated base64 to my director via a socket so I can
> build a webapp to auth/manage all of my Bacula directors.

Wierdly I had a last character issue with encoding base 64 md5 strings
too. I had to strip off and '=' character in python.

(See http://support.microsoft.com/kb/191239 re '=' sings and RFC 1521
compliance)

Not sure if this is related.

-- 
Rory Campbell-Lange
[email protected]

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to