windbus problems with dbus-sysdeps-win.c
Wilson Khoo
wilson_ua at yahoo.com
Thu Apr 17 15:00:25 CEST 2008
Hi
I am running win dbus (rel in 2006) in a
secure network. When I run dbus-test and I get failure on
NetUSerGetInfo(), error message as shown below. Stepping thru the code,
the function fill_win_user_info_homedir is unable to get
NetUserGetInfo. I am guessing because I am on a secure network I have
issue getting this info? how can I go around this issue?
dbus-test: checking for memleaks
dbus-test: running userdb tests
NetUserGetInfo() failed with errorcode 2221 'The user name could not be found.',
\\DAWDC102
Current user: NET\wkhoo homedir: \
dbus-test: checking for memleaks
dbus-test: running keyring tests
NetUserGetInfo() failed with errorcode 2221 'The user name could not be found.',
\\DAWDC102
Using your real home directory for testing, set DBUS_TEST_HOMEDIR to avoid 1 keys in test
Little to no networking background here. In my session config, I
reconfigure the file to listen to my tcp address shown in ipconfig
instead of the default localhost.
eg:
<listen>tcp:host=172.168.0.1,port=50000</listen>
<!-- tcp:host=localhost,port=12434 -->
To use the default setting, I will get "Failed to start message bus:
Failed to bind socket "localhost:12434": Address already in use". I am
running Ubuntu on a virtual machine and I had the dbus-daemon listening
on 2 paths. the tcp path address I obtained it using ifconfig. could
this post as a problem?
<listen>unix:path=/var/run/dbus/system_bus_socket</listen>
<listen>tcp:host=192.168.0.1,port=12434</listen>
When I am running the system bus I get the below info with verbose mode
turn on. however when I run dbus-monitor on the system bus I get an
error message "Failed to open connection to system message bus: Did not
receive a reply. Possible causes include: the remote application did
not send a reply, the message bus security policy blocked the reply,
the reply timeout expired, or the network connection was broken." seem
like the dbus-daemon isn't running at all.
whats the issue here?
============
C:\winDBus\bin\debug>dbus-daemon --system
3484: Change working path to .
3484: Allocated slot 0 on allocator 00528194 total 1 slots allocated 1 used
3484: retrieving working path .
3484: read: count=2400 fd=3
3484: read: = 2400
3484: closed C file descriptor 3:
3484: retrieving working path .
3484: _dbus_create_handle_from_value, value: 1952, handle: 268435456
3484: _dbus_socket_to_handle: socket=1952, handle=268435456, index=0
3484: _dbus_socket_to_handle: socket=1952, handle=268435456, index=0
3484: Falling back to pseudorandom for 12 bytes
3484: Initialized server on address tcp:host=172.168.0.1,port=50000,guid=f95f06
48d38b01a78b0f538147b68a00
3484: Adding a read watch on fd 268435456 using newly-set add watch function
3484: Allocated slot 0 on allocator 00528124 total 1 slots allocated 1 used
3484: _dbus_win_sid_to_uid_t sid S-1-5-21-1214440339-682003330-1801674521-803443
added with uid 49286 to cache
3484: _dbus_getuid() returns 49286
3484: No cache for UID 49286
3484: _dbus_uid_t_to_win_sid converted S-1-5-21-1214440339-682003330-1801674531-
803443 into sid
NetUserGetInfo() failed with errorcode 2221 'The user name could not be found.',
\\DAWDC102 (wkhoo)
3484: No cache for user "Administrator"
3484: _dbus_win_sid_to_uid_t sid S-1-5-21-1214440339-682003330-1801674521-501 ad
ded with uid 49300 to cache
NetUserGetInfo() failed with errorcode 2221 'The user name could not be found.',
\\DAWDC102 (Administrator)
3484: _dbus_create_handle_from_value, value: 1916, handle: 268435457
3484: _dbus_create_handle_from_value, value: 1896, handle: 268435458
3484: full-duplex pipe 268435457:1916 <-> 268435458:1896
3484: _dbus_socket_to_handle: socket=1916, handle=268435457, index=1
3484: _dbus_socket_to_handle: socket=1896, handle=268435458, index=2
_dbus_set_signal_handler() has to be implemented
_dbus_set_signal_handler() has to be implemented
3484: We are on D-Bus...
3484: Running main loop, depth 0 -> 1
3484: _dbus_socket_to_handle: socket=1952, handle=268435456, index=0
3484: _dbus_socket_to_handle: socket=1916, handle=268435457, index=1
3484: select: to=-1 R:1952 E:1952 R:1916 E:1916
_dbus_socket_to_handle: socket=1952, handle=268435456, index=0
3484: _dbus_socket_to_handle: socket=1916, handle=268435457, index=1
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
More information about the Kde-windows
mailing list