sbenbli Posted May 26, 2007 Share Posted May 26, 2007 thank you to help meI have a problem to the level of connection ldap he/it can connect with name and first name but with the login is not able to he/it indicates to me that untraceable login has the code [file name=Nouveau_Document_texte.xml /////////////////////////////////// <!-- For LDAP authentication This bean is not used by default --> <bean id="userSearch" class="org.acegisecurity.ldap.search.FilterBasedLdapUserSearch"> <constructor-arg index="0"> <value>dc=sartex,dc=com,dc=tn</value> </constructor-arg> <constructor-arg index="1"> <value>sAMAccountName={0}</value> </constructor-arg> <constructor-arg index="2"> <ref local="initialDirContextFactory" /> </constructor-arg> <property name="searchSubtree"> <value>true</value> </property> </bean> <!-- For LDAP authentication --> <bean id="ldapAuthenticationProvider" class="org.acegisecurity.providers.ldap.LdapAuthenticationProvider"> <constructor-arg> <bean class="org.acegisecurity.providers.ldap.authenticator.BindAuthenticator"> <constructor-arg><ref local="initialDirContextFactory"/></constructor-arg> <property name="userSearch"> ref="userSearch"/> <property name="userDnPatterns"><list><value>sAMAccountName={0},ou=*</value></list></property> </bean> </constructor-arg> <constructor-arg> <bean class="org.acegisecurity.providers.ldap.populator.DefaultLdapAuthoritiesPopulator"> <constructor-arg index="0"><ref local="initialDirContextFactory"/></constructor-arg> <constructor-arg index="1"><value></value></constructor-arg> <property name="groupRoleAttribute"><value>ou</value></property> <property name="groupSearchFilter"><value>(&(objectclass=sAMAccountName)(ou=*))</value></property> </bean> </constructor-arg> </bean> ///////////////////////////////////Post edited by: sbenbli, at: 2007/05/26 07:33 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now