Jump to content
Changes to the Jaspersoft community edition download ×

authentication????


sbenbli

Recommended Posts

thank you to help me

I 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>

///////////////////////////////////

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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...