This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ldap authentication

 
Bernard Sigmund Gustav
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can someone help me with this please?
 
Bernard Sigmund Gustav
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone give me an idea on how to start with this one?
 
Paul Clapham
Sheriff
Pie
Posts: 20764
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20764
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic