Bug 903154

Summary: Group lookup fails and takes ~60s to return to shell if member dn is incorrect
Product: Red Hat Enterprise Linux 6 Reporter: Kaushik Banerjee <kbanerje>
Component: sssdAssignee: Jakub Hrozek <jhrozek>
Status: CLOSED DUPLICATE QA Contact: Kaushik Banerjee <kbanerje>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: dpal, grajaiya, jgalipea, okos, pbrezina
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-23 15:28:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kaushik Banerjee 2013-01-23 10:29:44 UTC
Description of problem:
Group lookup hangs for a minute if member dn is incorrect.

Version-Release number of selected component (if applicable):
1.9.2-74

How reproducible:
Always

Steps to Reproduce:
1. Add a group as follows:
dn: cn=Group_02,ou=Groups,dc=example,dc=com
gidNumber: 10120
objectClass: top
objectClass: groupOfNames
objectClass: posixGroup
cn: Group_02
member: uid=kuser1    <== I removed ",dc=example,dc=com"

2. Try to lookup the group
# time getent group Group_02

real    0m58.008s    <== Takes almost a minute to return back to shell
user    0m0.000s
sys    0m0.001s 

3.
  
Actual results:
Group lookup fails and takes a minute to come back to shell.

Expected results:
Group lookup shouldn't fail, but shouldn't return any members either.

Additional info:

Comment 3 Pavel Březina 2013-01-23 13:07:07 UTC
Upstream ticket:
https://fedorahosted.org/sssd/ticket/1783

Comment 4 Pavel Březina 2013-01-23 15:28:25 UTC
This is actually a cause of performance regression we were seeing. Closing as duplicate.

*** This bug has been marked as a duplicate of bug 872827 ***