0 votes

I'm trying to create a new command that can apply to User objects across multiple domains that are in OUs with the same 'Name' i.e. an OU called Directors that occurs in five different domains managed by Adaxes

So far i've found the attribute 'adm-ParentName' but i'm not sure it's possible to run LDAP queries on an Adaxes attribute?

I've also tried messing around with the 'DistinguishedName' attribute but I can't seem to make it work with just contains 'OU Name' i.e. (distinguishedname=OU Name)

by (260 points)

1 Answer

0 votes
by (289k points)

Hello Richard,

Unfortunately, there is no possibility to create such an LDAP filter. You will need to use a PowerShell script that will grab the distinguished name of the target user OU (e.g. using the %adm-ParentDN% value reference) and then search for OUs with the same path in other domains managed by Adaxes to perform the required actions. For an example, have a look at the following script from our repository: https://www.adaxes.com/script-repository/reset-user-password-in-resource-domain-s333.htm.

Should you have issues writing the script, please, specify what actions it should perform and how you need it to be executed and we will help you.

Related questions

0 votes
1 answer

Hello, I have an LDAP filter on a home page action : (& (objectClass = organizationalUnit) (name = * Users)) But nothing appears When I do the search from the console with my filter, it works: the OU Users * did not directly at the domain root

asked Dec 14, 2011 by mmichard (360 points)
0 votes
1 answer

Is it possible to for security groups that are nested under an OU to inherit that OU's 'Managed By' value? I'd like to grant the OU Owner rights to the security groups ... option is to manually edit each group one by one. Is there a script that automates this?

asked Mar 26, 2020 by sirslimjim (480 points)
0 votes
1 answer

What I'm trying to accomplish: user should have access to modify certain accounts where customTextAttribute2="test" (example). When I modify the criteria under "object selection" ... to query custom attributes or do you have to use AD attributes for this?

asked Mar 19 by tromanko (330 points)
0 votes
1 answer

Hi, I recently upgraded Adaxes from 2021.1 to 2023.2, and after the upgrade, an LDAP filter for retrieving the groups a user is owner of, stopped working. The reason ... attribute instead, like this: It works, but sadly it is quite slow. Best regards Martin

asked Aug 21, 2023 by Martin (150 points)
0 votes
0 answers

I am trying to find a way to create Groups based off an OU and a list of options (check boxes) within the portal For example: Select the Target OU to add groups ... 3 - Remote Administrators Option 3 - Remote Developers Option 4 - Readers Option 4 - Writers

asked Sep 11, 2020 by dknapp (100 points)
3,547 questions
3,238 answers
8,232 comments
547,810 users