Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > Spring authentication with LSA account

Reply
Thread Tools

Spring authentication with LSA account

 
 
aramos aramos is offline
Junior Member
Join Date: Jan 2012
Posts: 2
 
      01-31-2012
Hi guys,

I'm setting a bind from spring ldap to ADAM repository, it's works when you use a ADAM account and simple authentication but I need do the bind with a external account (LSA).

Could you please help me?

Many thanks!!
 
Reply With Quote
 
 
 
 
aramos aramos is offline
Junior Member
Join Date: Jan 2012
Posts: 2
 
      01-31-2012
Added the part of the code:

Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.j ndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL,param.getLdapUrl()); //replace with your server URL/IP
env.put(Context.SECURITY_AUTHENTICATION,"DIGEST-MD5");
env.put(Context.SECURITY_PRINCIPAL,userName); // in format domain\username or username@domain
env.put(Context.SECURITY_CREDENTIALS, passWord); //the password

DirContext ctx = new InitialDirContext(env);

This is raising the next error: error code 49 - 80090308 data 57
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Spring Python 0.8.0 has been released/Spring Python goes green Goldfish Python 1 11-06-2008 06:12 PM
differences between Spring WebFlow,Spring MVC,and String Portlet MVC? rmn190 Java 2 01-10-2008 02:27 AM
ASPNET account and NT Authentication with SQL Server -Account Locked Out ryan.d.rembaum@kp.org ASP .Net Security 4 09-15-2005 06:51 PM
Win 2000 Prof and LSA Executable and Server DLL access Dugie Computer Support 1 04-19-2004 02:54 PM
Win 200 Prof and LSA Executable and Server DLL access Dugie Computer Support 1 04-19-2004 02:48 PM



Advertisments