Solved

Connecting java to LDAP directory

Posted on 2003-10-24
4
582 Views
Last Modified: 2008-03-03
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
Comment
Question by:ScarletBlue
  • 2
4 Comments
 
LVL 3

Expert Comment

by:mvoelker
ID: 9613080
Hi ScarletBlue, take a look at

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

complete documentation with examples.

Regards,

 - michael
0
 

Author Comment

by:ScarletBlue
ID: 9613465
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
 
LVL 3

Accepted Solution

by:
savalou earned 100 total points
ID: 9613698
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
 

Author Comment

by:ScarletBlue
ID: 9613846
Thank-U
This looks like the help im looking for.
SB
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
difference of if loops 23 62
SHA2 certs for IIS AND Java? 2 113
ejb entity bean example issue 2 16
Java basic valueOf question 1 29
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question