Jump to content

ldap in 5.0


baileyao

Recommended Posts

Hi,

I am able to get LDAP working in Community version 4.0 however when I use the same settings in 5.0 it does not work. Below are the areas configured in the version 5 applicationContext-security.xml file.Is there somethng that I am missing?

 


    
    
    
     cn=user,ou=User Accounts,ou=Countries,ou=Depts,ou=abc,dc=wabc,dc=com
     password
   
  
  
    
  
 
  
               class="org.springframework.security.ldap.search.FilterBasedLdapUserSearch">
    
      
    
    
       sAMAccountName={0}
    
    
      
                
    
       true
                
              
  
  
  
  
    
      
         
          sAMAccountName={0},ou=User Accounts,ou=Countries,ou=Depts,ou=abc
         
      
    
    
      
         
          ou=User Accounts,ou=Countries,ou=Depts,ou=abc
          sAMAccountName
          (&(uniqueMember={0})(objectclass=groupofuniquenames))
          true           
      
    
  
  .

  .

  .

 

Link to comment
Share on other sites

  • 1 month later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Here's what fixed my problem:  Replace '{' with less then sign and replace '}' with '/' and greater sign - this editor does not work with greater and less then signs
{property name="userDn" value="ldapuser@ldapserver.com" }
 
{bean id="ldapContextSource"
        class="org.springframework.security.ldap.DefaultSpringSecurityContextSource">
        {constructor-arg
            value="ldap://ldapserver:389/CN=Users,DC=mycompany,DC=com" }
        {property name="userDn" value="ldapuser@ldapserver.com" }
        {property name="password" value="ldappassword" }
         {property name="referral" value="follow">{/property>
    {/bean>   
 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...