So I set <br><auth>DBUS_COOKIE_SHA1</auth><br>in the daemon configuration.<br>I use <br>DBUS_TEST_HOMEDIR=C:/tmp<br>in the daemon environment and<br>-Duser.home=C:/tmp<br>on the client java command line - both should read/write the cookies from the <br>
proper place right ? The doc is really thin on those issues.<br>I get :<br>15684: server: got command "AUTH DBUS_COOKIE_SHA1 6a6f67"<br>15684: server: Trying mechanism DBUS_COOKIE_SHA1<br>15684: server: data: 'jog'<br>
15684: Using fake homedir for testing: C:/tmp<br>...<br>15684: server: data: '821f3865ae9ebb4af7e7e9ffafa31c9f2309117b 5df4c83adaa60c550<br>f38edb1d121cadba04e6dbb'<br>15684: server: going from state WaitingForData to state WaitingForBegin<br>
15684: server: authenticated client using DBUS_COOKIE_SHA1<br>15684: exchange_credentials: do_reading = 1, do_writing = 0<br>... <br>15684: server: got command "BEGIN"<br>15684: server: going from state WaitingForBegin to state Authenticated<br>
15684: _dbus_getsid() returns 1<br>15684: Client authorized as SID 'S-1-5-21-52702793-1996691837-315576832-2805' bu<br>t our SID is 'S-1-5-21-52702793-1996691837-315576832-2805', disconnecting<br>15684: _dbus_transport_disconnect start<br>
...<br>and it fails.<br>This is with the DBusVIewer client from dbus-java-2.4.<br>Log attached.<br>Thanks<br> /jog<br><br><br><div class="gmail_quote">On Tue, Jun 10, 2008 at 9:09 AM, Matthew Johnson <<a href="mailto:dbus@matthew.ath.cx">dbus@matthew.ath.cx</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Tue Jun 10 08:36, Jacques-Olivier Goussard wrote:<br>
> Well, I tried without <auth/> configuration (in which case it seems all<br>
> schemes are tried<br>
> by the dbus-java code) and got no success.<br>
> Using the EXTERNAL scheme fails because auth information cannot be retreived<br>
> from the socket it seems, from which I infer that EXTERNAL works only with<br>
> unix sockets (I'm using a TCP transport).<br>
<br>
</div>Sure, but cookies should work<br>
<div><div></div><div class="Wj3C7c"><br>
Matt<br>
--<br>
<a href="http://www.matthew.ath.cx" target="_blank">www.matthew.ath.cx</a><br>
D-Bus Java<br>
</div></div><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.6 (GNU/Linux)<br>
<br>
iD8DBQFITn0e2XtckeYvo1gRAjnVAJ9V21Kb8bCsT6PA2dnQke9l8S4z5QCg6urB<br>
w4Oy0CrfafKkurcUw7h+wW8=<br>
=gHec<br>
-----END PGP SIGNATURE-----<br>
<br></blockquote></div><br>