Jump to content

how to filter users in multiple Active Directory OUs? For external authentication on Jasperserver


suleklarisa

Recommended Posts

I am trying to log in with AD users who are spread across multiple OUs. How can I do it?

Is it possible to perform this search using the Global Catalog?

B elow is the filter for the Jasperserver external authentication configuration file.

Some of my attempts are commented. i'm newbie, thanks for the help.

<bean id="userSearch" 
          class="com.jaspersoft.jasperserver.api.security.externalAuth.wrappers.spring.ldap.JSFilterBasedLdapUserSearch">
        <constructor-arg index="0">
            <value></value> <!-- SE NÃO ESPECIFICADO A PESQUISA INCLUIRÁ TODO O DIRETORIO LDAP A PARTIR DA DN BASE DA URL LDAP: dc=pgemt  -->
        </constructor-arg>
        <constructor-arg index="1">
            <value>(&(sAMAccountName={0})(objectClass=person)(objectClass=user))</value>
            <!-- (&(sAMAccountName={0})(ObjectClass=organizationalPerson)(ObjectClass=person)) -->
            <!-- (&(sAMAccountName={0})(objectClass=user)) -->
            <!-- <value>(uid={0})</value> -->
        </constructor-arg>
        <constructor-arg index="2">
            <ref bean="ldapContextSource" />
        </constructor-arg>
        <property name="searchSubtree">
            <value>true</value>
        </property>

AND...

<constructor-arg>
            <bean class="com.jaspersoft.jasperserver.api.security.externalAuth.wrappers.spring.ldap.JSBindAuthenticator">
                <constructor-arg><ref bean="ldapContextSource"/></constructor-arg>
                <property name="userSearch" ref="userSearch"/>
                <!-- <property name="userDnPatterns">
                    <list>
                       
                    </list>
                </property> -->
            </bean>

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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