<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: AD Base Filter syntax in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/AD-Base-Filter-syntax/m-p/63090#M12663</link>
    <description>&lt;P&gt;Thanks, gkanapathy. That works as well. now if I can only get it to distiguish between the same sAMAccountName from different domains. I'll be creating a new question for that one.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Oct 2010 20:31:01 GMT</pubDate>
    <dc:creator>twgtech</dc:creator>
    <dc:date>2010-10-05T20:31:01Z</dc:date>
    <item>
      <title>AD Base Filter syntax</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/AD-Base-Filter-syntax/m-p/63086#M12659</link>
      <description>&lt;P&gt;I am using the "Map users directly" config from here - &lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/4.1.5/Admin/SetupuserauthenticationwithLDAP#Test_your_LDAP_configuration" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.1.5/Admin/SetupuserauthenticationwithLDAP#Test_your_LDAP_configuration&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;in order to get around referrals in an AD forest with multiple child domains.&lt;/P&gt;

&lt;P&gt;Everything is working well, in fact, too well. It is returning all objects, even though my (objectclass=user) is set (I tried people as well. no change).&lt;/P&gt;

&lt;P&gt;My question is how can I filter out the computer objects that get returned? Ideally, I'd like to remove everything with a $ in the name. I've tried piping !objectclass=computer into it with no success.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2010 18:41:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/AD-Base-Filter-syntax/m-p/63086#M12659</guid>
      <dc:creator>twgtech</dc:creator>
      <dc:date>2010-10-04T18:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: AD Base Filter syntax</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/AD-Base-Filter-syntax/m-p/63087#M12660</link>
      <description>&lt;P&gt;One option is to use the userAccountControl flag to query user accounts:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(&amp;amp;(objectclass=user)(userAccountControl:1.2.840.113556.1.4.803:=512))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(the UAC flag 512 means NORMAL_ACCOUNT)&lt;/P&gt;

&lt;P&gt;Your suggestion of filtering accounts with $ in its name would work as well:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(&amp;amp;(!(sAMAccountName=*$*))(objectclass=user))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Oct 2010 19:22:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/AD-Base-Filter-syntax/m-p/63087#M12660</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2010-10-04T19:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: AD Base Filter syntax</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/AD-Base-Filter-syntax/m-p/63088#M12661</link>
      <description>&lt;P&gt;DOH! No wonder my query wasn't working. I didn't correctly paren it. Thanks for the examples. A quick shuffle and it's doing exactly what I need.&lt;/P&gt;

&lt;P&gt;Thanks much, ziegfried.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2010 20:58:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/AD-Base-Filter-syntax/m-p/63088#M12661</guid>
      <dc:creator>twgtech</dc:creator>
      <dc:date>2010-10-04T20:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: AD Base Filter syntax</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/AD-Base-Filter-syntax/m-p/63089#M12662</link>
      <description>&lt;P&gt;Usually in AD, you want (&amp;amp;(ObjectCategory=Person)(objectclass=user)).&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2010 23:10:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/AD-Base-Filter-syntax/m-p/63089#M12662</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-10-04T23:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: AD Base Filter syntax</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/AD-Base-Filter-syntax/m-p/63090#M12663</link>
      <description>&lt;P&gt;Thanks, gkanapathy. That works as well. now if I can only get it to distiguish between the same sAMAccountName from different domains. I'll be creating a new question for that one.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2010 20:31:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/AD-Base-Filter-syntax/m-p/63090#M12663</guid>
      <dc:creator>twgtech</dc:creator>
      <dc:date>2010-10-05T20:31:01Z</dc:date>
    </item>
  </channel>
</rss>

