• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ldap authentication

 
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can anyone give me an idea on how to start with this one?
 
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.)
 
reply
    Bookmark Topic Watch Topic
  • New Topic