Solved

Connecting java to LDAP directory

Posted on 2003-10-24
4
575 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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
what is a "java.lang.System Property"   ? 20 66
tomcat startup error 5 63
Error in @AspectJ Based AOP with Spring 2 13
mysql jsp example issue 32 33
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to implement Singleton Design Pattern in Java.

770 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