All Apps and Add-ons

splunk Ldap Query

kiran331
Builder

Hi,

How to get the list of members and details of a OU from Ldapsearch.

Search i'm trying to use:

| ldapsearch domain="abc" basedn=,OU="ad_refresh,OU="Privileged accounts", search="(objectClass=user)"
Tags (1)
0 Karma
1 Solution

mrgibbon
Contributor

Try:

    | ldapsearch domain="abc" search="(&(objectClass=group)(cn=Privileged accounts))" 
    | mvexpand member
    | table cn,member
    | ldapfetch dn=member attrs="displayName, sAMAccountName"

,Try:
| ldapsearch domain="abc" search="(&(objectClass=group)(cn=Privileged accounts))"
| mvexpand member
| table cn,member
| ldapfetch dn=member attrs="displayName, sAMAccountName"

View solution in original post

0 Karma

mrgibbon
Contributor

Try:

    | ldapsearch domain="abc" search="(&(objectClass=group)(cn=Privileged accounts))" 
    | mvexpand member
    | table cn,member
    | ldapfetch dn=member attrs="displayName, sAMAccountName"

,Try:
| ldapsearch domain="abc" search="(&(objectClass=group)(cn=Privileged accounts))"
| mvexpand member
| table cn,member
| ldapfetch dn=member attrs="displayName, sAMAccountName"

0 Karma
Get Updates on the Splunk Community!

Splunk Classroom Chronicles: Training Tales and Testimonials (Episode 4)

Welcome back to Splunk Classroom Chronicles, our ongoing series where we shine a light on what really happens ...

From GPU to Application: Monitoring Cisco AI Infrastructure with Splunk Observability ...

AI workloads are different. They demand specialized infrastructure—powerful GPUs, enterprise-grade networking, ...

Application management with Targeted Application Install for Victoria Experience

  Experience a new era of flexibility in managing your Splunk Cloud Platform apps! With Targeted Application ...