Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General 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