This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

LDIF contents display in Tree

 
raga p
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have to read the contents form an ldif file and display it with in a tree, in that the first dn, should be taken as root dn, and next as child nodes with all the properties of dn.

I displayed all the dn's but am not understanding how to take root dn and child nodes. please help me if any one know.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"raga p" -

Welcome to the JavaRanch! We don't have many rules around the ranch, but we do have a policy on displayed names... Please adjust your displayed name to meet the JavaRanch Naming Policy. User names cannot be obviously fake and must consist of a first name and a last name.

You can change your user name here.

Thanks! and welcome to the JavaRanch!
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "root dn" idea is confusing to me too...

Shouldn't the "root" of the tree be the file itself? Then have child dn's under it, and those have children properties?

This is kind of a crude example, parsing should be better -



I got the example input from Wikipedia...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic