aspose file tools*
The moose likes Web Services and the fly likes ldap authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "ldap authentication" Watch "ldap authentication" New topic
Author

ldap authentication

Bernard Sigmund Gustav
Ranch Hand

Joined: Dec 20, 2005
Posts: 170
can anyone help me with a web service to authenticate java in ldap?
i found sample code in oracle but it deals with SSLPorts and binding things, which i unfortunately have no idea of.
where do i start with it???

thanks
Bernard Sigmund Gustav
Ranch Hand

Joined: Dec 20, 2005
Posts: 170
can someone help me with this please?
Bernard Sigmund Gustav
Ranch Hand

Joined: Dec 20, 2005
Posts: 170
can anyone give me an idea on how to start with this one?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

can anyone help me with a web service to authenticate java in ldap?
Okay. Does this mean you HAVE a web service and you are having a problem with it? Or does it mean you WANT a web service to do that? Or what?
Bernard Sigmund Gustav
Ranch Hand

Joined: Dec 20, 2005
Posts: 170
i want a web service to do that.

so far, i've got axis installed and running, and i also got some sample services deployed.

but i'm still kinda confused as to how to go about the ldap authentication web service thingie and how other web applications can use that....
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

Then that means you know how to get data from the request and send data back for the web service? So your question is basically "How do I do LDAP authentication?" (I find it is better to break tasks into smaller parts, rather than trying to do everything all at once.)

Assuming that is really your question, I put "java ldap authentication" into Google for you. The first link it returned is this Sun tutorial, which looks like it has a simple example.
Bernard Sigmund Gustav
Ranch Hand

Joined: Dec 20, 2005
Posts: 170
yes. i did try that one but it was too complicated for me to comprehend.

is taht done like a normal .java program and then have it compiled and then renamed to a .jws? or something?

i just want to input an ID, then have the web service check the ldap if that id exists and then return the ID's personal information if it does.
is it really that complicated?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41835
    
  63
The tutorial doesn't look all that complicated to me. In order to use LDAP that's about the minimum required knowledge you will need to have. Why don't you try to run the example programs from your desktop, just to make sure you have everything you need to connect to your directory?
As a second step you can rewrite it into a WS, which could be as simple as renaming it to .jws and putting it in the Axis directory. (Although I don't recommend using the .jws mechanism, but that's a different subject.)


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ldap authentication