Summary
This PhenixID Solution Document (PSD) is written for PhenixID Identity Manager (IM) 5.x.
With all Predefined searches you can always specify where a search should start by specifying a BaseDN.
But if there are one or more DNs in that BaseDN that should for example be excluded, this can now be done using a filter called, AllowedOUPDSearchFilter.class.
There are two parameters:
- AllowedDNs (for example 5 OU´s on the same level but you only like to search in two of them)
- ExcludedDNs (for example 5 OU´s on the same level but there is one OU that you like to exclude from the search)
Using AllowedDNs and ExcludedDNs together. Only scenario supported is when you of on OU level have five OU´s allowed but you under one of this OU´s like to disallow one sub OU. (the other way around is not supported)
System Requirements
- PhenixID Identity Manager 5.1.0
Add AllowedOUPDSearchFilter.class
Allowed and Exclude functionality is part of the filter.AllowedOUPDSearchFilter.
- In an Predefined search
- Click Tools – Tab External Filters
- Add filter name filter.AllowedOUPDSearchFilter
- Click OK
1. Configure ExcludedDNs
Let say that you have a BaseDN set to DC=phenixid,DC=local and you have several OU´s underneath that DN. If you like to exclude two of the sub OU´s, lets call them OU=Demo1,DC=phenixid,DC=local and called OU=Demo2,DC=phenixid,DC=local then do the following:
- Open the Predefined search in IM configurator – Tab Designer.
- Verify that your BaseDN is configured to DC=phenixid,DC=local
- Add a static string to the predefined search
- In the Attribute name: field type ExcludedDNs
- In the Default value: section add OU=Demo1,DC=phenixid,DC=local$$OU=Demo2,DC=phenixid,DC=local
$$ is used to separate multiple DNs scenarios
- Click Apply
- Save the search try and see if it works
2. Configure AllowedDNs
Let say that you have a BaseDN set to DC=phenixid,DC=local and you have several OU´s underneath that DN but you only like OU=Demo1 to be included during a search:
- Add a static string to the predefined search
- In the Attribute name: field type AllowedDNs
- In the Default value: section add OU=Demo1,DC=phenixid,DC=local
($$ is used to separate multiple DNs scenarios, not needed in this example)
- Click Apply
- Save the search try and see if it works
3. Configure AllowedDNs with ExcludeDNs
Let say you have an OU structure like below:
- DC=phenixID,DC=local
- OU=demo1,DC=phenixID,DC=local
- OU=demo2,DC=phenixID,DC=local
- OU=hiddenUsers,OU=demo2,DC=phenixID,DC=local
- OU=users,OU=demo2,DC=phenixID,DC=local
- OU=demo3,DC=phenixID,DC=local
- OU=demo4,DC=phenixID,DC=local
Let say you also like a predefined search to search in only demo2 and demo3 but not in hiddenUsers.
To solve this you create one AllowedDNs like in task 2 above. In default value you type:
OU=demo2,DC=phenixid,DC=local$$OU=demo3,DC=phenixid,DC=local
To solve this you create oneExcludeDNs like in task 1 above. In default value you type:
OU=hiddenUsers,OU=demo2,DC=phenixID,DC=local
DISCLAIMER
Information provided in this document is for your information only. PhenixID makes no explicit or implied claims to the validity of this information. Any trademarks referenced in this document are the property of their respective owners.The origin of this information may be internal or external to PhenixID. PhenixID makes all reasonable efforts to verify this information.
PhenixID - support.phenixid.se