On Mon, 5 Sep 2022 at 20:49, Sagan <[email protected]> wrote:

> Greetings,
>
>
> I'm having a bit of a tool gap because I can't quite figure out where to
> go here... here's what I want to do.
>
>
> I have a list with the OU names, very straightforward. And what I need to
> do is, use that list to find all the users that are in those UOs. Now
> here's the issue, the AD is very big and I have pinned down where all the
> users I need are but there are still a lot of branches and I can't tell
> where they are.
>
>
> Is there a way that ansible can locate these UOs?
>


No. You need to tune the exact ldap query that will get the desired results
(for instance with ldapquery) and then you can use
https://docs.ansible.com/ansible/latest/collections/community/general/ldap_search_module.html
to use that in ansible.


-- 
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/87f16d26-09ba-4207-9e95-363c870207e1n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/87f16d26-09ba-4207-9e95-363c870207e1n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
-- 
Sent from Gmail Mobile

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAF8BbLZvdb%3DAACmhjXru3-mKziH0uxLqXOayvOp5h254381%2Bqg%40mail.gmail.com.

Reply via email to