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:
[EMAIL PROTECTED] ~]# id miura
uid=501(miura) gid=502(miura)id: failed to get groups for user `miura': No
such
file or directory
but:
[EMAIL PROTECTED] ~]# getent passwd miura
miura:x:501:502::/home/miura:/bin/bash
[EMAIL PROTECTED] ~]# 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-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils