Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

[LDAP] Query for user groups or group members #803

Closed
wants to merge 5 commits into from

Conversation

RomanRII
Copy link
Contributor

@RomanRII RomanRII commented Sep 9, 2023

Description

  • Added ability to query all groups an individual belongs to
  • Added ability to query all users belonging to an individual group

Examples

image

image

In Reference To

Feature Request: #793

@RomanRII
Copy link
Contributor Author

RomanRII commented Sep 9, 2023

if this would be better placed in a module, let me know and i can port that over

@Cyb3rC3lt
Copy link
Contributor

I think this is catered for in certain modules. Try these:

cme ldap 10.110.228.50 -u test -p 'pass' -d test.info -M groupmembership -o USER=testuser

cme ldap 10.136.81.20 -u testuser -p 'testpass!' -M GROUP-MEM -o GROUP='Domain Admins'

@RomanRII
Copy link
Contributor Author

giphy

Just tried it, yep that's exactly what i was looking for. Thank you!

@Cyb3rC3lt
Copy link
Contributor

Cyb3rC3lt commented Sep 10, 2023

I realise that's very annoying after your hard work so apologies for being a spoil sport. There are a lot of features not documented unfortunately so it's hard to know what cme does sometimes. I only found the groupmembership module by reading the code. Thanks again for your effort and hopefully you have other ideas.

@RomanRII
Copy link
Contributor Author

Ain't no worries at all. I'm glad I ended up on the same path as someone else who had an idea here. Hopefully the next one is an original :D

Cheers

@RomanRII RomanRII closed this Sep 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants