Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get entries in ldap?

 
Paulo Aquino
Ranch Hand
Posts: 202
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! LDAP newbie here, so please be kind to me. Anyway, here is the directory structure

ou = People
ou = Services
ou = Extranet
-------ou = Groups
-------ou = People
--------------uid=pinolo
--------------uid=pizarro
--------------uid=racero
--------------uid=tirano

under the uid entry, these are some attributes:
uid
sn
givenName
mail
cn

What I need to do is to loop through all of the uid entries (pinolo, pizarro etc)....printing each uid entries then printing all attributes found under each entry. Can anyone help me with a code snippet?
 
Paulo Aquino
Ranch Hand
Posts: 202
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anyone?
 
Paulo Aquino
Ranch Hand
Posts: 202
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im really stuck, hope somebody will respond.
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sometime back, the foll. code used to work for me with Weblogic 8.1 Embedded LDAP database, but I guess it is likely to work with other LDAP servers also.

Which LDAP server are you using?


[ June 13, 2005: Message edited by: Vishwa Kumba ]
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic