URL: https://github.com/SSSD/sssd/pull/59
Title: #59: ipa_netgroups: Lowercase key to htable

lslebodn commented:
"""
On (20/10/16 02:20), Jakub Hrozek wrote:
>On Thu, Oct 20, 2016 at 01:40:15AM -0700, lslebodn wrote:
>> On (20/10/16 01:21), Jakub Hrozek wrote:
>> >before the patch:
>> >```
>> >[jhrozek@client] sssd $ [] getent netgroup ngr1
>> >ngr1                  (-,user1,ipa.test)
>> >[jhrozek@client] sssd $ [] getent netgroup ngr2                             
>> >                             
>> >[jhrozek@client] sssd $ [] 
>> >```
>> >
>> >After the patch:
>> >```
>> >[jhrozek@client] sssd $ [(review)] getent netgroup ngr1
>> >ngr1                  (-,user1,ipa.test)
>> >[jhrozek@client] sssd $ [(review)] getent netgroup ngr2
>> >ngr2                  (-,user1,ipa.test) (-,user1,ipa.test)
>> >[jhrozek@client] sssd $ [(review)] 
>> >```
>> >
>> >So the netgroup can be resolved, but is it correct that the netgroup member 
>> >is listed twice?
>> >
>> It's impossible to say without content of netgroups on server.
>> Could you provide them?
>
>Same as the reproducer in the ticket. But the point is, is it ever OK to
>print duplicates? I guess they are harmless, but it just looks odd.
>
Then the bug is not fixed

Here is a hierarchy based on descition in ticket
    ng1: user1
    ng2: user2, ng1

So getent netgroup shoudl return for

ng1 -> just a "(-,user1,-)"
ng2 -> "(-,user1,-)" "(-,user2,-)"


This is exactly a reason why I require to write a test for each bugfix.
Manual testing if error-prone and wasting of time.
Reviewer need a reliable reproducer and not just some "steps to reproduce"

LS

"""

See the full comment at 
https://github.com/SSSD/sssd/pull/59#issuecomment-255062193
_______________________________________________
sssd-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to