• 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

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We are using remote weblogic server 8.1 and we are using JNDI InitialContext for doing the LDAP authentication. We are passing user id, password, provider url and context factory for creating IntialContext as mentioned below.

This is inside the servlet code:
env.put(Context.INITIAL_CONTEXT_FACTORY,ctxFactory);
env.put(Context.PROVIDER_URL,url);
env.put(Context.SECURITY_PRINCIPAL, uid);
env.put(Context.SECURITY_CREDENTIALS, pwd);
InitialContext ic = new InitialContext(env);

The LDAP is configured properly and we are passing cn,ou,dc as part of security_principal.

Our question is: what will be provider_url, we tried with t3:\\hostname:7001 and when accessing the servlet it is giving ConnectException for this url.

Any help is greatly appreciated!

Let me know for any questions.

Thanks,
Nathan Mathi.
 
I've read about this kind of thing at the checkout counter. That's where I met this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic