Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Web Services
Search Coderanch
Advance search
Google search
Register / Login
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
Forum:
Web Services
problem in LDAP Authentication
sreenivas vemula
Ranch Hand
Posts: 44
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi ,
I am facing problem in LDAP Authentication. I am getting the NumberFormatException at the following statement highlighted .
Hashtable authEnv = new Hashtable(); authEnv.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); authEnv.put(Context.PROVIDER_URL, url); authEnv.put(Context.SECURITY_AUTHENTICATION, "simple"); authEnv.put(Context.SECURITY_PRINCIPAL, ldapUserDN); if (clearTextPassword != null) authEnv.put(Context.SECURITY_CREDENTIALS, clearTextPassword); else authEnv.put(Context.SECURITY_CREDENTIALS, ldapUserPassword); DirContext authContext = new InitialDirContext(authEnv);
Not able to trace out the issue. Please assist me.
Thansk in advance.
Regards,
sreeni.
sreenivas vemula
Ranch Hand
Posts: 44
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Any suggestions please.......
Joanne Neal
Rancher
Posts: 3742
16
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
sreenivas vemula wrote:
Any suggestions please.......
Yes.
Read this
Joanne
Do not meddle in the affairs of dragons - for you are crunchy and good with ketchup. Crunchy tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Tranasaction Rollback in JAVA LDAP API
Directory swaping
Changing LDAP "Search Attribute"
NoInitialContextException
LDAP Authentication
More...