Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to get AD objects #44

Open
00willo opened this issue May 20, 2022 · 1 comment
Open

Add ability to get AD objects #44

00willo opened this issue May 20, 2022 · 1 comment

Comments

@00willo
Copy link

00willo commented May 20, 2022

The ability to retrieve a list of objects such as all users or groups or computers would be useful. In addition, adding a filter for the only grabbing a select portion of the LDAP directory.

Perhaps something like this.

session.get_users()
session.get_computers()

user_ou_filter = "OU=HR, OU=Users"
session.get_users(user_ou_filter)

computer_ou_filter = "OU=Developers, OU=Workstations"
session.get_computers(computer_ou_filter)

The optional filter could be added to the Base DN, if required, there could be a bool flag added to specify that this is a full search path if needed.

@00willo
Copy link
Author

00willo commented Feb 7, 2024

@zorn96 Any thoughts on this? I'm not too particular of the interface looking the way I have above, just the functionality of something similar to the discovery functionality that you have in terms of CA certs, domain time, etc.

I have several use cases, where I want to query AD to tell me all the things, as I'm using it as a source of truth, so I need to discover the objects in terms of tell me all the hosts registered in the domain or all the users that exist in the domain.

Appreciate your effort into what you've already created, I've gotten some good use out of it, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant