GNU bug report logs -
#9732
bug or feature?
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Wed, 12 Oct 2011 09:40:41 -0600
with message-id <4E95B4F9.5080803 <at> redhat.com>
and subject line Re: bug#9732: bug or feature?
has caused the debbugs.gnu.org bug report #9732,
regarding bug or feature?
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
9732: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9732
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Hi,
I found strange result for 'id' use.
If run id with lowercase login we getting this
[shev_ay <at> 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 <at> 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 <at> 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
[Message part 3 (message/rfc822, inline)]
tag 9732 notabug
thanks
[re-adding the list]
On 10/12/2011 09:36 AM, Anton Shevtsov wrote:
>>> if first letter in uppercase, we get
>>> [shev_ay <at> pandora Admins]$ id -a Shev_ay
>>> uid=1062(shev_ay) gid=513(DomainUsers) groups=513(DomainUsers)
>>
>> Given the magic group 513 as DomainUsers, I can't help but wonder if
>> this is on Windows, perhaps via the cygwin port. If so, your question
>> is better asked to the place that ported id to your platform - cygwin
>> may very well have a quirk in exposing window's case-insensitivity
>> when it queries the user database.
>
> Eric, thanks for reply.
> No Windows anywhere :)
> Users accounts into ldap (openldap). DomainUsers creating for WIndows
> compatibility and not used.
> I am login into CentOS5, run id command and see this :)
>
> I trying for three different platform (three domains)
> 1) samba 3.4.8+openldap
> 2) samba 3.4.8+port389
> 3) samba 3.4.8+fedora directory server
So the problem is not Windows, but in Samba's emulation of Window's
case-insensitive quirks. That is, samba is the culprit that is treating
your database queries case-insensitively, since samba must interact with
windows, and windows does the same.
> Users getting from files, ldap (/etc/nsswitch.conf) always.
>
> The result is equivalent to anywhere. It's my side problems or what? :)
> Help :)
You can run strace to see what the actual kernel calls and results were.
Coreutils is not at fault here - it is something in the kernel itself
(most likely, how the kernel is interacting with samba, and thus in
samba rather than in the kernel proper) that is providing the results
you are seeing.
I'll go ahead and mark this bug done on the coreutils side. You can
continue to add comments as you learn more information, but at this
point, I see nothing that coreutils needs to change, rather that you
need to pursue elsewhere, such as on a samba list, for more answers.
--
Eric Blake eblake <at> redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
This bug report was last modified 13 years and 226 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.