Jump to content
  • LDAP userSearch with OR-Operator


    Jim W

    Issue Description

    Suppose you have defined the follwing userSearch: OU=ABC (sAMAccountName={0}) true.  But now you would also like to search in the tree "administration", but the OR-Operator | does not work.  For example, you tried to use the following expression: (|(OU=ABC)(OU=administration))

    <bean id="ldapContextSource" class="com.jaspersoft.jasperserver.api.security.externalAuth.ldap.JSLdapContextSource">

    <constructor-arg value="ldap://10.1.1.123:389/DC=ABC,DC=org"/>

    <!-- manager user name and password (may not be needed) -->

    <property name="userDn" value="CN=ldap_user,OU=services,OU=administration,DC=ABC,DC=org"/>

    <property name="password" value="######"/>

    </bean>

    Resolution

    Try adding another user search.  One userSearch for, ou=Administrator.  Another, userSearch2, for ou=ABC . See attached sample.

     

    Ref. Case 00070667

    sample-applicationcontext-externalauth-ldap-mt.xml


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...