Bug 90683 - realmd doesn't authorize root when polkit is not available
Summary: realmd doesn't authorize root when polkit is not available
Status: RESOLVED MOVED
Alias: None
Product: realmd
Classification: Unclassified
Component: realmd (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Stef Walter
QA Contact: yelley
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-27 19:03 UTC by Stephen Gallagher
Modified: 2018-10-12 21:21 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Stephen Gallagher 2015-05-27 19:03:38 UTC
I attempted to install realmd on a Fedora Cloud instance with 'dnf install realmd sssd'. After that, I tried to 'realm discover mydomain.ad' (as root), but was met with:
realm: Couldn't discover realms: Not authorized to perform this action

The journal shows:
May 27 18:50:31 localhost realmd[28952]: client using service: :1.39
May 27 18:50:31 localhost realmd[28952]: holding daemon: :1.39
May 27 18:50:31 localhost realmd[28952]: Using 'r4162.29007' operation for method 'Discover' invocation on 'org.freedesktop.realmd.Provider'
 interface
May 27 18:50:31 localhost realmd[28952]: Registered cancellable for operation 'r4162.29007'
May 27 18:50:31 localhost realmd[28952]: couldn't check polkit authorization: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The nam
e org.freedesktop.PolicyKit1 was not provided by any .service files
May 27 18:50:31 localhost realmd[28952]: rejecting access to method 'Discover' on interface 'org.freedesktop.realmd.Provider' at /org/freede
sktop/realmd
May 27 18:50:31 localhost org.freedesktop.realmd[303]: ** (realmd:28952): WARNING **: couldn't check polkit authorization: GDBus.Error:org.f
reedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit1 was not provided by any .service files


If I install polkit, realmd works properly.
Comment 1 Stef Walter 2015-06-30 09:02:21 UTC
Stephen, did you manage to make a patch for this?
Comment 2 Stephen Gallagher 2015-06-30 13:29:37 UTC
No, I have not patched this. I'm going to be dabbling with some realmd tweaks this week, I think. I'll see what I can do.
Comment 3 Charles Taylor 2016-05-24 21:14:21 UTC
It has been almost a year, and realmd is still unusable without polkit installed, which pretty much means anything with out a GUI.

When will this be fixed??
Comment 4 Charles Taylor 2016-05-24 21:27:12 UTC
For those of you that are encountering this problem, it is only a matter of adding the appropriate support in your distribution. The package name is "polkit" in Arch linux, "policykit-1" in Ubuntu. I'm not sure about other distributions.

This isn't a bug in realmd code explicitly. It is merely missing an installation prerequisite somewhere.
Comment 5 GitLab Migration User 2018-10-12 21:21:09 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/realmd/realmd/issues/1.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.