java - Spring security 2.0.5 LDAP authentication setup w/Active Directory -


I am trying to work with LDAP authentication with this application (apache roller) It seems that it will just "fill the right areas and go", but I'm still trying to authenticate against the database (default authentication method).

I do not understand whether spring- the safety of using any authentication manager, so that it is probably the first thing to change. After spending two days reading the document, it is not close to finding it.

& lt; Beans: Bean id = "ldapUser search" category = "org.springframework.security.ldap.search.FilterBasedLdapUser search" & gt; & Lt; Beans: Constructor-Arg Index = "0" value = "CN = Accessories, DC = Domain" /> & Lt; Bean: Constructor-Arg indicator = "1" value = "uid = {0}" /> & lt; Beans: Constructor-Rx Index = "2" Ref = "Initial Dyententax Fatteri" /> & Lt; Beans: Properties name = "searchShoot" value = "true" /> & lt; / Bean: beans & gt; & Lt; Beans: Bean id = "ldapAuthProvider" class = "org.springframework.security.providers.ldap.LdapAuthenticationProvider" & gt; & Lt; Beans: Manufacturer-Arg & gt; & Lt; Beam: Bean class = "org.springframework.security.providers.ldap.authenticator.BindAuthenticator" & gt; & Lt; Beans: Constructor-RR RRR = "Initial Directoratex" /> & Lt; Beans: Property Name = "User Search" ref = "ldapUser Search" /> & Lt; / Bean: beans & gt; & Lt; / Beans: Manufacturer-Arg & gt; & Lt; Beans: Constructor-RRR = "JDBCittacticator" /> & Lt; / Bean: beans & gt; & Lt; Beans: Bean id = "jdbcAuthoritiesPopulator" class = "org.apache.roller.weblogger.ui.core.security.AuthoritiesPopulator" & gt; & Lt; Beans: Property Name = "Default Reel" value = "GroupName UserUsername" /> & Lt; / Bean: beans & gt;

We need more details to assist you. If any, what error message you are seeing, copy the stack trace

One thing I have seen, is in BindAuthenticator, you can specify context source and userDnPatterns instead of ldapUserSearch Bean .

  & lt; Bean id = "ldapAuthProvider" class = "org.springframework.security.providers.ldap.LdapAuthenticationProvider" & gt; & Lt; Manufacturer-Arg & gt; & Lt; Bean class = "org.springframework.security.providers.ldap.authenticator.BindAuthenticator" & gt; & Lt; Constructor-arg referee = "references" & gt; & Lt; / Creator-arg & gt; & Lt; Property Name = "userDnPatterns" & gt; & Lt; List & gt; & Lt; Price & gt; Cn = {0}, OU = user, OU = _Units, DC = corporate, DC = mycompany, dc = com & lt; / Pricing & gt; & Lt; / List & gt; & Lt; / Property & gt; & Lt; Property Name = "User Properties" & gt; & Lt; List & gt; & Lt; Price & gt; ObjectSID & lt; / Pricing & gt; & Lt; Price & gt; UserPrincipalName & lt; / Pricing & gt; & Lt; / List & gt; & Lt; / Property & gt; & Lt; / Bean & gt; & Lt; / Creator-arg & gt; & Lt; Manufacturer-Arg & gt; & Lt; Bean class = "com.security.AuthoritiesPopulator" & gt; & Lt; / Bean & gt; & Lt; / Creator-arg & gt; & Lt; Property Name = "userDetailsContextMapper" & gt; & Lt; Bean class = "com.corp.CustomLdapUserDetailsMapper" /> & Lt; / Property & gt; & Lt; Security: Custom Authentication Provider / & gt; & Lt; / Bean & gt;  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -