Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 595
  • Last Modified:

Connecting java to LDAP directory

Hello
I am working in the SAP Portal environment. I am using Eclipse to create java iViews.
I would like to know how to connect java to LDAP(a repository) and once I have the connection how would I get data out from LDAP so that I could write to a file? Would I be using SQL statements for this?
Can you please provide me some sample code or a link to documentation so I have some sort of idea about coding this.

Any help is very much appreciated!!
Thank You.
ScarletBlue
0
ScarletBlue
Asked:
ScarletBlue
  • 2
1 Solution
 
mvoelkerCommented:
Hi ScarletBlue, take a look at

http://developer.novell.com/ndk/doc/jldap/

complete documentation with examples.

Regards,

 - michael
0
 
ScarletBlueAuthor Commented:
Thank you for your help but I am not using a Novell Development Kit(NDK)... I am using a Portal Development Kit(PDK), so I can not import those classes mentioned in the link you have given me for this type of connection because it is for a novell development environment.

Any further help is much appreciated!
ScarletBlue


0
 
savalouCommented:
http://java.sun.com/products/jndi/tutorial/TOC.html

There's an example of how to connect to LDAP (look under Getting Started -> Examples -> Directory Example).
0
 
ScarletBlueAuthor Commented:
Thank-U
This looks like the help im looking for.
SB
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now