Client authentication in python

John (J5) Palmieri johnp at redhat.com
Thu Nov 3 13:12:55 PST 2005


On Thu, 2005-11-03 at 22:02 +0100, Rob Caelers wrote:
> Hello,
> 
> I'm trying to use the Bus.get_unix_user function to authenticate clients
> accessing a dbus service. This seems to be impossible with the current
> bindings because the dbus message or service name of the client is not
> passed to the service when receiving a remote call. The
> explicitly_pass_message decorator can be used to get the dbus message,
> but only works for signals.
> 
> Is there some other way to use the get_unix_user for client authentication?

We just talked about this today on IRC and are adding a way to get the
sender to the bindings that should be out in the next release.
Something to the a effect of 

@dbus.method(iface, sender_keyword='sender')
def MyMethod(self, arg0, sender = None):
    ...

-- 
John (J5) Palmieri <johnp at redhat.com>



More information about the dbus mailing list