Bug 599732

Summary: Root node in directory browser shows DN syntax error
Product: [Retired] 389 Reporter: Nathan Kinder <nkinder>
Component: Directory ConsoleAssignee: Nathan Kinder <nkinder>
Status: CLOSED CURRENTRELEASE QA Contact: Viktor Ashirov <vashirov>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.2.5   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-07 17:17:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 434914, 543590    
Attachments:
Description Flags
Proposed Patch nhosoi: review+

Description Nathan Kinder 2010-06-03 19:53:47 UTC
With 389 1.2.6.a4 and it's associated Console packages, selecting the top-level node in the tree on the left side of the "Directory" tab of the Directory Console results in an invalid DN syntax error being displayed in the right side panel.

The ns-slapd access log shows that console is sending a search like this when the root node is selected:

[03/Jun/2010:08:21:05 -0700] conn=10 op=21 SRCH dn="no LDAP connection", invalid dn
[03/Jun/2010:08:21:05 -0700] conn=10 op=21 RESULT err=34 tag=101 nentries=0 etime=0

Comment 1 Nathan Kinder 2010-06-03 20:01:14 UTC
Created attachment 419510 [details]
Proposed Patch

Clicking on the root node in the directory browser in DS console
shows a DN syntax error.  The root node is created with a bogus
DN of "no LDAP connection".  This was being used as a search base
in an attempt to find child entries to display in the right hand
panel of the directory browser.

The fix is to avoid searching for child entries of the root node
since the root node itself doesn't actually represent an LDAP
entry.

Comment 2 Nathan Kinder 2010-06-03 20:10:04 UTC
Pushed to master.  Thanks to Noriko for her review!

Counting objects: 17, done.
Delta compression using 2 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (9/9), 1011 bytes, done.
Total 9 (delta 4), reused 0 (delta 0)
To ssh://git.fedorahosted.org/git/389/ds-console.git
   bf23aae..01ddc9c  master -> master