Splunk Search

LDAP query for users

Rody333
New Member

Hello,

I want to search AD for all users in my organization. But as the list is huge, there is memory error occurring and I'm getting 0 results. Is there any way I can split my search. Below is the query I was trying.

| ldapsearch search="(&(objectclass=user)(CN=*))"
| table objectSid description sAMAccountName

What I want is like if there are 90000 users, I want to split my search for 1st 45000 users and last 45000 users.

Thanks in Advance

@woodcock 

Labels (1)
Tags (2)
0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to July Tech Talks, Office Hours, and Webinars!

What are Community Office Hours?Community Office Hours is an interactive 60-minute Zoom series where ...

Updated Data Type Articles, Anniversary Celebrations, and More on Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

A Prelude to .conf25: Your Guide to Splunk University

Heading to Boston this September for .conf25? Get a jumpstart by arriving a few days early for Splunk ...