Authorizations shows no users when using LDAP

Bug #372850 reported by mtom
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
policykit-gnome (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: policykit-gnome

I installed Jaunty last week and setup ldap for users and groups. So far everything works fine. The ldap-users show up in the fast-user-switcher and getent passwd shows them, too.
But when I click on System->Administration->Authorizations and would like to change something there and get the policykit-authenticate dialog, I have no users to choose from, everything is greyed out, so I cannot continue.
It is the same with any other policykit-authentication dialog.
I've looked around but I found very little documentation about the policykit stuff. Any hints and pointers are welcomed.

$ lsb_release -rd
Description: Ubuntu 9.04
Release: 9.04

policykit-gnome:
  Installed: 0.9-1ubuntu3
  Candidate: 0.9-1ubuntu3
  Version table:
 *** 0.9-1ubuntu3 0
        500 http://de.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 372850] [NEW] Authorizations shows no users when using LDAP

On Wed, 2009-05-06 at 19:24 +0000, mtom wrote:
> Public bug reported:
>
> Binary package hint: policykit-gnome
>
> I installed Jaunty last week and setup ldap for users and groups. So far everything works fine. The ldap-users show up in the fast-user-switcher and getent passwd shows them, too.
> But when I click on System->Administration->Authorizations and would like to change something there and get the policykit-authenticate dialog, I have no users to choose from, everything is greyed out, so I cannot continue.
> It is the same with any other policykit-authentication dialog.
> I've looked around but I found very little documentation about the policykit stuff. Any hints and pointers are welcomed.

Hi,

What it is probably trying to list there is admin users. Do you have
any users in the "admin" group? What does

  getent group admin

return? Have you modified your /etc/PolicyKit/PolicyKit.conf?

Sounds similar to bug 368650.

Thanks,

James

Revision history for this message
mtom (thloh) wrote :

Hi James,

I didn't modify /etc/PolicyKit/PolicyKit.conf, so it's still the admin group which matters.

But you were right, getent group admin only returned the local group memberships. I changed the groups setting in /etc/nsswitch.conf from
group: files ldap

to

group: ldap files

and it works. Any further hints on how one could configure this?

Regards,
Thomas

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 372850] Re: Authorizations shows no users when using LDAP

On Wed, 2009-05-06 at 19:57 +0000, mtom wrote:
> Hi James,
>
> I didn't modify /etc/PolicyKit/PolicyKit.conf, so it's still the admin
> group which matters.
>
> But you were right, getent group admin only returned the local group memberships. I changed the groups setting in /etc/nsswitch.conf from
> group: files ldap
>
> to
>
> group: ldap files
>
> and it works. Any further hints on how one could configure this?

Isn't that enough? I would expect it to do the right thing now.

Thanks,

James

Revision history for this message
mtom (thloh) wrote :

OK, thought there might be something else. But it works changing nsswitch.conf, so this bug can be marked as solved.

Thanks,
Thomas

Revision history for this message
James Westby (james-w) wrote :

Closing as suggested.

Thanks,

James

Changed in policykit-gnome (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.