Jump to content
We've recently updated our Privacy Statement, available here ×

popkorn

Members
  • Posts

    6
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by popkorn

  1. Hi all,

          I'm configuring jasper report server with exsisting active derectory ldap.When I'm running jasper server there is a error in log related to userSearch bean.

    Error :cvc-complex-type.2.4.d: Invalid content was found starting with element 'span'. No child element is expected at this point.

    Error is occured red hilighted two lines.

    My configurations are here:

    <bean id="ldapAuthenticationProvider"
          class="org.springframework.security.providers.ldap.LdapAuthenticationProvider">
      <constructor-arg>
        <bean
          class="org.springframework.security.providers.ldap.authenticator.BindAuthenticator">
          <constructor-arg><ref local="ldapContextSource"/></constructor-arg>
          <property name="userDnPatterns">
            <list>
              <value>CN={0},OU=IT Service Accounts</value>
     <value>uid={0},OU=LOITS</value>
            </list>
          </property>
      <property name="userSearch" ref="userSearch"/>   
        </bean>
      </constructor-arg>
      
    </bean>
    <bean id="ldapContextSource"
        class="com.jaspersoft.jasperserver.api.security.externalAuth.ldap.JSLdapContextSource">
      <constructor-arg value="ldap://192.100.151.204:389/DC=LOLC,DC=com?sAMAccountName?sub?(objectClass=*)" />
      <property name="userDn"><value>CN=FusionUsr,DC=LOLC,DC=com</value></property>
      <property name="password"><value>Fu$@1234</value></property>
      </bean>
      
     <bean id="userSearch"
          class="org.springframework.security.ldap.search.FilterBasedLdapUserSearch">
      <constructor-arg index="0"><value><span class="Forceful">OU=LOITS</span></value></constructor-arg>
      <constructor-arg index="1"><value><span class="Forceful">(sAMAccountName={0})</span></value></constructor-arg>
      <constructor-arg index="2"><ref local="ldapContextSource"/></constructor-arg>
      <property name="searchSubtree"><value>true</value></property>
    </bean> 
     

     

  2. Hi all,

            I'm authenticating Jasper Server to Microsoft Active Directory. We have lot of OU in our windows active directory.So we can't put each and every active directories in userDnPatterns.Is there any way to config ldapAuthenticationProvider bean.Current ldapAuthenticationProvider bean config are here.

    <bean id="ldapAuthenticationProvider"
          class="org.springframework.security.providers.ldap.LdapAuthenticationProvider">
      <constructor-arg>
        <bean
          class="org.springframework.security.providers.ldap.authenticator.BindAuthenticator">
          <constructor-arg><ref local="ldapContextSource"/></constructor-arg>
          <property name="userDnPatterns">
            <list>
              <value>CN={0},OU=IT Service Accounts</value>
     <value>uid={0},OU=LOITS,OU=IT TRAINEE</value>
            </list>
          </property>
      <property name="userSearch" ref="userSearch"/>   
        </bean>
      </constructor-arg>
      
    </bean>
    Is there any way to do that ?
     
  3. Hi all,

             I authenticate jasper server with microsoft active directory as mention in this doc.https://community.jaspersoft.com/documentation/jasperreports-server-authentication-cookbook/v550/authentication-microsoft-active

             but only the AD admin can log into system.users in the AD can't login.configurations are here.

    <bean id="ldapAuthenticationProvider"
          class="org.springframework.security.providers.ldap.LdapAuthenticationProvider">
      <constructor-arg>
        <bean
          class="org.springframework.security.providers.ldap.authenticator.BindAuthenticator">
          <constructor-arg><ref local="ldapContextSource"/></constructor-arg>
          <property name="userDnPatterns">
            <list>
              <value>CN={0},OU=IT Service Accounts</value>
     <value>uid={0},OU=LOITS</value>
            </list>
          </property>
     <!-- <property name="userSearch" ref="userSearch"/>   -->
        </bean>
      </constructor-arg>
      
    </bean>
    <bean id="ldapContextSource"
        class="com.jaspersoft.jasperserver.api.security.externalAuth.ldap.JSLdapContextSource">
      <constructor-arg value="ldap://192.100.151.204:389/DC=LOLC,DC=com?sAMAccountName?sub?(objectClass=*)" />
      <property name="userDn"><value>CN=FusionUsr,DC=LOLC,DC=com</value></property>
      <property name="password"><value>Fu$@1234</value></property>
      </bean>
     
    What's the wrong here ?

     

×
×
  • Create New...