Hi,<br><br>I saw what happen since 2 days (bugs, patch etc..)<br>Do you plan to update the binaries and dev packages here ? <br><a href="http://sourceforge.net/projects/windbus/files/">http://sourceforge.net/projects/windbus/files/</a><br>
because this url is reported here: <a href="http://www.freedesktop.org/wiki/Software/dbus">http://www.freedesktop.org/wiki/Software/dbus</a><br><br>Sincerely<br>Julien<br><br><div class="gmail_quote">2009/11/20 Ralf Habacker <span dir="ltr"><<a href="mailto:ralf.habacker@freenet.de">ralf.habacker@freenet.de</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Ralf Habacker schrieb:<div><div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Julien Isorce schrieb:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
Thx for the reply.<br>
<br>
I tried what you suggested:<br>
<br>
2 cases, the first works, the second (the one I want) does not work:<br>
<br>
First case:<br>
---------------------------------<br>
I run dbus-daemon --system in command line so the user is Administrator.<br>
In other cmd, I run dbus-send --print-reply --system --dest="org.freedesktop.DBus" /org/freedesktop /DBus/Introspectable org.freedesktop.DBus.Introspectable.Introspect<br>
I got a reply and it's ok.<br>
I attached the log of the server to this mail: dbus-daemon_administrator_classic.log<br>
---------------------------------<br>
<br>
<br>
Second case:<br>
---------------------------------<br>
</blockquote>
I assume in this case you are using DBUS_COOKIE_SHA1 auth<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I run :<br>
cygrunsrv -I dbus-daemon -i --path /cygdrive/c/dbus/dbus-exe/bin/dbus-daemon.exe --chdir /cygdrive/c/dbus/dbus-exe --args --system --env DBUS_VERBOSE=1 --env DBUS_TEST_HOMEDIR=C:\dbus\dbus-exe<br>
then: cygrunsrv -S dbus-daemon<br>
I can then see the dbus-daemon.exe process in task manager and the user name is SYSTEM<br>
<br>
In other cmd, I run dbus-send --print-reply --system --dest="org.freedesktop.DBus" /org/freedesktop /DBus/Introspectable org.freedesktop.DBus.Introspectable.Introspect<br>
The error from the client is: dbus-send.log attached to this mail<br>
</blockquote>
the second log contains the following entry:<br>
<br>
272: Client authorized as SID 'S-1-5-18' but our SID is 'S-1-5-18', disconnecting<br>
<br>
This message coms from dbus/dbus-transport.c::auth_via_default_rules (for the complete code see <a href="http://cgit.freedesktop.org/dbus/dbus/tree/dbus/dbus-transport.c" target="_blank">http://cgit.freedesktop.org/dbus/dbus/tree/dbus/dbus-transport.c</a>)<br>
<br>
The default auth rules are [1]:<br>
<br>
/* By default, connection is allowed if the client is 1) root or 2)<br>
* has the same UID as us or 3) anonymous is allowed.<br>
*/<br>
if (transport->allow_anonymous ||<br>
_dbus_credentials_get_unix_uid (auth_identity) == 0 ||<br>
_dbus_credentials_same_user (our_identity,<br>
auth_identity))<br>
{<br>
<br>
Because none of the condition is true DBUS_COOKIE_SHA1 auth fails (see the code snippet below)<br>
<br>
else<br>
{<br>
if (_dbus_credentials_include(our_identity,DBUS_CREDENTIAL_WINDOWS_SID))<br>
_dbus_verbose ("Client authorized as SID '%s'"<br>
" but our SID is '%s', disconnecting\n",<br>
_dbus_credentials_get_windows_sid(our_identity),<br>
_dbus_credentials_get_windows_sid(our_identity));<br>
else<br>
<br>
_dbus_transport_disconnect (transport);<br>
allow = FALSE;<br>
<br>
BTW: The code shows also a bug - for the client the server sid is also printed. I found this bug in all available dbus implementations and should be fixed -> patch will follow<br>
<br>
If you have the dbus source you may comment out the following line from [1]<br>
<br>
_dbus_credentials_same_user (our_identity,<br>
auth_identity))<br>
<br>
</blockquote></div></div>
Sorry, I was wrong with this patch it is required to not comment out the above mentioned line, instead the following lines should be used (both our_identity)<div class="im"><br>
<br>
_dbus_credentials_same_user (our_identity,<br></div>
our_identity))<br>
<br>
<br>
Regards<br><font color="#888888">
Ralf<br>
<br>
</font></blockquote></div><br>