[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #22505] id command fails to retrieve group info when nss_ldap is us
From: |
anonymous |
Subject: |
[bug #22505] id command fails to retrieve group info when nss_ldap is used |
Date: |
Thu, 06 Mar 2008 18:39:45 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080208 Mandriva/2.0.0.12-3mdv2008.1 (2008.1) Firefox/2.0.0.12 |
URL:
<http://savannah.gnu.org/bugs/?22505>
Summary: id command fails to retrieve group info when
nss_ldap is used
Project: GNU Core Utilities
Submitted by: None
Submitted on: Thursday 03/06/08 at 18:39 UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
coreutils-6.10
By just installing nss_ldap and adding it to passwd, group and shadow in
/etc/nsswitch.conf, the below happens:
address@hidden ~]# id miura
uid=501(miura) gid=502(miura)id: failed to get groups for user `miura': No
such
file or directory
but:
address@hidden ~]# getent passwd miura
miura:x:501:502::/home/miura:/bin/bash
address@hidden ~]# getent group miura
miura:x:502:
Notice that it is not even required to have an ldap server around, nor to
configure /etc/ldap.conf.
Downgrading to coreutils-6.9 makes the problem go away.
I tracked it to a change in getugroups() and came up with the attached
patch.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thursday 03/06/08 at 18:39 UTC Name: coreutils-6.10-groupfix.patch
Size: 463B By: None
<http://savannah.gnu.org/bugs/download.php?file_id=15198>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?22505>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #22505] id command fails to retrieve group info when nss_ldap is used,
anonymous <=