get username from message ?

frederic heem frederic.heem at telsey.it
Mon Oct 30 05:52:47 PST 2006


Hi,
Thanks a lot, it works:
org_freedesktop_DBus_get_connection_unix_user(pSniffer->pProxy, 
dbus_g_method_get_sender(pMethodInvocation), &uiUserId, &pError)

The only problem is that the parameter pMethodInvocation of type 
DBusGMethodInvocation is given only for asynchronous functions, which fine 
for my case.
What about the group id ? 
Frederic Heem

Alle 11:32, lunedì 30 ottobre 2006, Matthew Johnson ha scritto:
> On Mon, 30 Oct 2006, frederic heem wrote:
> > Hi,
> > Is there a way the get the message sender username ?
>
> Yes, get the sending unique bus name (with dbus_message_get_sender, or
> equivalent in your binding) and call
> org.freedesktop.DBus.GetConnectionUnixUser
>
> Matt


More information about the dbus mailing list