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!

Splunkers, Pack Your Bags: Why Cisco Live EMEA is Your Next Big Destination

The Power of Two: Splunk + Cisco at "Ludicrous Scale"   You know Splunk. You know Cisco. But have you seen ...

Data Management Digest – January 2026

Welcome to the January 2026 edition of Data Management Digest! Welcome to the January 2026 edition of Data ...

Splunk SOAR Now Available on Google Cloud Platform

We’re excited to announce that Splunk SOAR is now natively available as a SaaS solution on Google Cloud ...