Skip Menu |
 

This queue is for tickets about the Net-DBus CPAN distribution.

Report information
The Basics
Id: 101369
Status: new
Priority: 0/
Queue: Net-DBus

People
Owner: Nobody in particular
Requestors: anaselli [...] linux.it
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject:
Date: Wed, 7 Jan 2015 11:25:27 +0100
To: bug-Net-DBus [...] rt.cpan.org
From: "Angelo Naselli" <anaselli [...] linux.it>
I have a problem using dbus for services. If i run systemctl start service_name.service dialog asking for password comes up and it seems to work. From the log it seems the action is org.freedesktop.systemd1.manage-units Looking at systemctl code on github https://github.com/systemd/systemd/blob/master/src/systemctl/systemctl.c I found a line: r = sd_bus_message_set_allow_interactive_authorization(m, arg_ask_password); invoked before sending the action message. So it seems they set they set the "allow interactive authorization" flag before. If I use a perl script invoking dbus api (I used http://www.freedesktop.org/wiki/Software/systemd/dbus/ for API explanation, and perl Net::DBus to access to) I got the following exception as result org.freedesktop.DBus.Error.InteractiveAuthorizationRequired: Interactive authentication required That indeed should confirm the need of setting that flag. Any helps how to set that flag? The perl example that starts xinetd (change it accord to your system) is at http://pastebin.com/GjtWJsRL Thanks Angelo


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.