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>
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><br>
Also I attached the log of the server to this mail: dbus-daemon_system_service.log<br>
---------------------------------<br><br>Thx in advance for a analysis of the 3 logs<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;">Julien Isorce schrieb:<div class="im"><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>
First, thx for the reply.<br>
<br>
I follow your advises but I am still not able to use dbus. This is my configuration and the result:<br>
<br>
- I am launching dbus-daemon.exe --system in a system service (using CreateProcess).<br>
</blockquote></div>
this is new land<br>
<br>
for quick error reproducing in dbus as system service environment a nice solution is to install a service using cygwin's cygrunsrv using the following<br>
<br>
cygrunsrv -I dbus-daemon -i --path <cygwin-style-path-to-dbus-daemon.exe> --chdir <cygwin-style-path-to-dbus-install-root> --args --system --env DBUS_VERBOSE=1 --env DBUS_TEST_HOMEDIR=<dbus-keyring-home-path><div class="im">
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
So in task manager I can see that the user name of the dbus-daemon process is "SYSTEM" (because of system service)<br>
- then I open a console and I type: set DBUS_SYSTEM_BUS_ADDRESS=tcp:host=localhost,port=12434<br>
- then I run:<br>
dbus-send --print-reply --system --dest="org.freedesktop.DBus" /org/freedesktop /DBus/Introspectable org.freedesktop.DBus.Introspectable.Introspect<br>
<br>
-> the result:<br>
</blockquote></div>
<snip><div class="im"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
So I still cannot use dbus with severals users.<br>
Anyway, the result is at least better than using --session.<br>
Here it seems that something is not correct (for my needs) in the system.conf file.<br>
</blockquote></div>
yes, see below<div class="im"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
So here is the system.conf file I am using:<br>
----------------------------------------------------------------------------------------------------------------------<br>
<!-- This configuration file controls the systemwide message bus.<br>
Add a system-local.conf and edit that rather than changing this<br>
file directly. --><br>
<br>
<!-- Note that there are any number of ways you can hose yourself<br>
security-wise by screwing up this file; in particular, you<br>
probably don't want to listen on any more addresses, add any more<br>
auth mechanisms, run as a different user, etc. --><br>
<br>
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"<br>
"<a href="http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd" target="_blank">http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd</a>"><br>
<busconfig><br>
<br>
<!-- Our well-known bus type, do not change this --><br>
<type>system</type><br>
<br>
<!-- Run as special user --><br>
<user>Administrator</user><br>
<br>
<!-- Fork into daemon mode --><br>
<fork/><br>
<br>
<!-- Write a pid file --><br>
<pidfile>/dbus-pid</pidfile><br>
<br>
<!-- Only allow socket-credentials-based authentication --><br>
<auth>EXTERNAL</auth><br>
<br>
</blockquote></div>
EXTERNAL auth does only work with unix domain sockets and will not work on windows (this value is a unix default value)<br>
<br>
You may try ANONYMOUS or DBUS_:COOKIE_SHA1, the latter may require to set DBUS_TEST_HOMEDIR=<dbus-keyring-home-path><br>
<br>
you shoule enable debug info printing for the server and/or the clients by running<br>
<br>
set DBUS_VERBOSE=1<br>
<br>
Regards<br>
Ralf<br><font color="#888888">
<br>
<br>
<br>
Ralf<br>
<br>
</font></blockquote></div><br>