EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB441428: How to restrict LDAP users from multiple Organization Units(OU) based on the same Root Distinguished Name(RDN) in MicroStrategy 10.x and above


Ruiyu Han

Senior Support Engineer • MicroStrategy


This article describes how to restrict LDAP users from multiple Organization Units(OU) based on the same Root Distinguished Name(RDN).

SUMMARY


The field “User search filter” in LDAP Filters can be leveraged to achieve this target.
Please refer below steps for detailed implementation:
1. After setting up the corresponding LDAP information such as LDAP Server, LDAP platform and etc, go to LDAP Filters setting and fill in “Search root distinguished name(DN):
  e.g. dc=test,dc=testdomain,dc=com
Leave the “User search filter” and “Group search filter” as default

ka04W000001IsjCQAS_0EM44000000WdxU.png

2. Edit “User search filter” expression to add a restriction on specified OUs.
For example, you have below LDAP users in respective OUs:
User1: cn=test1,ou=testeLabUsers,ou=testUsers,dc=test,dc=testdomain,dc=com
User2: cn=test2,ou=testUsers,dc=test,dc=testdomain,dc=com
User3: cn=test3,ou=aaaTest,dc=test,dc=testdomain,dc=com
You just want users from OUs including User1 or User2 can access to Strategy, you should edit the expression like below:
(&(objectclass=person)(cn=#LDAP_LOGIN#)(|(distinguishedName=cn=#LDAP_LOGIN#,ou=testeLabUsers,ou=testUsers,dc=test,dc=testdomain,dc=com)(distinguishedName=cn=#LDAP_LOGIN#,ou=testUsers,dc=test,dc=testdomain,dc=com)))
Note that:

  • Wildcard characters such as “*” should not be used. 
    For example, below expression will not work properly: “distinguishedName=*ou=testeLabUsers,ou=testUsers,dc=test,dc=testdomain,dc=com” or “distinguishedName=cn=#LDAP_LOGIN#*ou=testUsers,dc=test,dc=testdomain,dc=com”
  • The full path(Distinguished Name) of a LDAP user’s OU should not be used.
    For example, below expression will not work properly:
    “distinguishedName=cn=#LDAP_LOGIN#,ou=testUsers,dc=test,dc=testdomain,dc=com” to filter User1’s OU, although User1’s OU is also under the “ou=testUsers”


 
3. Test the result of the filter by clicking "Test connection" with username/password:
When it succeeds

ka04W000001IsjCQAS_0EM44000000Wdxj.png

 
When it fails

ka04W000001IsjCQAS_0EM44000000Wdxe.png

 
  KB441428


Comment

0 comments

Details

Knowledge Article

Published:

July 31, 2018

Last Updated:

November 9, 2018