Problem connecting DBus java and c-windbus (2)

Havoc Pennington hp at redhat.com
Tue Aug 28 13:31:34 PDT 2007


meant to send to list

On 8/28/07, Havoc Pennington <hp at redhat.com> wrote:
> Hi,
>
> On 8/27/07, Matthew Johnson <dbus at matthew.ath.cx> wrote:
> > Specifically, the EXTERNAL auth mechanism refers to writing an
> > authentication string to a file and reading it back to prove that you
> > have access to the file (typically to the user's home directory).
>
> The cookie file is DBUS_COOKIE_SHA1; EXTERNAL refers to using some
> outside mechanism (separate from the protocol) to authenticate, such
> as reading credentials from the socket using getsockopt()
>
> In other words EXTERNAL means "authenticate me somehow, I'll wait but
> can't give you any auth information in-band" and DBUS_COOKIE_SHA1
> means "I want to authenticate by giving you a cookie I read from a
> file"
>
> It isn't currently documented how either of these work on Windows, nor
> am I confident they work in an ideal way, but I don't really have the
> knowledge to say how they should work. It would seem logical to me
> perhaps to just stick the auth cookie in the per-user registry on
> Windows? But I don't know for sure that no other user can read that.
>
> Havoc
>


More information about the dbus mailing list