dbus-java and windbus

Jacques-Olivier Goussard jogoussard at gmail.com
Tue Jun 10 06:49:49 PDT 2008


So I set
<auth>DBUS_COOKIE_SHA1</auth>
in the daemon configuration.
I use
DBUS_TEST_HOMEDIR=C:/tmp
in the daemon environment and
-Duser.home=C:/tmp
on the client java command line - both should read/write the cookies from
the
proper place right ? The doc is really thin on those issues.
I get :
15684: server: got command "AUTH DBUS_COOKIE_SHA1 6a6f67"
15684: server: Trying mechanism DBUS_COOKIE_SHA1
15684: server: data: 'jog'
15684: Using fake homedir for testing: C:/tmp
...
15684: server: data: '821f3865ae9ebb4af7e7e9ffafa31c9f2309117b
5df4c83adaa60c550
f38edb1d121cadba04e6dbb'
15684: server: going from state WaitingForData to state WaitingForBegin
15684: server: authenticated client using DBUS_COOKIE_SHA1
15684: exchange_credentials: do_reading = 1, do_writing = 0
...
15684: server: got command "BEGIN"
15684: server: going from state WaitingForBegin to state Authenticated
15684: _dbus_getsid() returns 1
15684: Client authorized as SID
'S-1-5-21-52702793-1996691837-315576832-2805' bu
t our SID is 'S-1-5-21-52702793-1996691837-315576832-2805', disconnecting
15684: _dbus_transport_disconnect start
...
and it fails.
This is with the DBusVIewer client from dbus-java-2.4.
Log attached.
Thanks
         /jog


On Tue, Jun 10, 2008 at 9:09 AM, Matthew Johnson <dbus at matthew.ath.cx>
wrote:

> On Tue Jun 10 08:36, Jacques-Olivier Goussard wrote:
> > Well, I tried without <auth/> configuration (in which case it seems all
> > schemes are tried
> > by the dbus-java code) and got no success.
> > Using the EXTERNAL scheme fails because auth information cannot be
> retreived
> > from the socket it seems, from which I infer that EXTERNAL works only
> with
> > unix sockets (I'm using a TCP transport).
>
> Sure, but cookies should work
>
> Matt
> --
> www.matthew.ath.cx
> D-Bus Java
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFITn0e2XtckeYvo1gRAjnVAJ9V21Kb8bCsT6PA2dnQke9l8S4z5QCg6urB
> w4Oy0CrfafKkurcUw7h+wW8=
> =gHec
> -----END PGP SIGNATURE-----
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20080610/6c695267/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: daemon.out
Type: application/octet-stream
Size: 30336 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20080610/6c695267/attachment-0001.obj 


More information about the dbus mailing list