Subject: bug or feature?

From: Shevtsov Anton Yurevich <[email-masked]>
Date: Wed, 12 Oct 2011 10:18:21 +0600

Hi,

I found strange result for 'id' use.
If run id with lowercase login we getting this

[shev_ay@pandora Admins]$ id -a shev_ay
uid=1062(shev_ay) gid=513(DomainUsers)
groups=513(DomainUsers),100(users),2005(vboxusers),2006(ossec),512(DomainAdmins),201(hpclj5550),203(xpe120i),1010(xpe120i2),1013(PetrelUsers),1019(AddressBook),1020(prjREGION),1039(GGX_users),1040(Project0),1041(ATSusers),1045(SharedRoster),1046(prjSAMOTLOR),1047(DIRECTUM_users),1048(unixadmins),1057(prjSAMOTLOR_GDM)

if first letter in uppercase, we get
[shev_ay@pandora Admins]$ id -a Shev_ay
uid=1062(shev_ay) gid=513(DomainUsers) groups=513(DomainUsers)

and last, if first letter in uppercase and space at end
[shev_ay@pandora Admins]$ id -a 'shev_ay '
uid=1062(shev_ay) gid=513(DomainUsers)
groups=513(DomainUsers),512(DomainAdmins),201(hpclj5550),203(xpe120i),1010(xpe120i2),1013(PetrelUsers),1019(AddressBook),1020(prjREGION),1039(GGX_users),1040(Project0),1041(ATSusers),1045(SharedRoster),1046(prjSAMOTLOR),1047(DIRECTUM_users),1048(unixadmins),1057(prjSAMOTLOR_GDM)

cat /etc/nsswitch.conf
passwd:     files ldap
shadow:     files ldap
group:      files ldap

p.s into ldap all fields is lowercase

-- 
Anton Shevtsov