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

0

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>(&amp;(sAMAccountName={0})(objectClass=person)(objectClass=user))</value>
            <!-- (&(sAMAccountName={0})(ObjectClass=organizationalPerson)(ObjectClass=person)) -->
            <!-- (&amp;(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>

suleklarisa's picture
Joined: Jun 9 2020 - 4:59am
Last seen: 1 month 1 day ago

0 Answers:

No answers yet
Feedback
randomness