<?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: Add-on for LDAP: Why am I only getting a few attributes back from ldapsearch (from SA-ldapsearch 2.2.3 and Splunk 6.3.2)? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-for-LDAP-Why-am-I-only-getting-a-few-attributes-back-from/m-p/270681#M31392</link>
    <description>&lt;P&gt;Not sure what JExplorer is and would it integrate into Splunk and the ldapsearch?&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2016 17:10:55 GMT</pubDate>
    <dc:creator>BlueSocket</dc:creator>
    <dc:date>2016-10-24T17:10:55Z</dc:date>
    <item>
      <title>Add-on for LDAP: Why am I only getting a few attributes back from ldapsearch (from SA-ldapsearch 2.2.3 and Splunk 6.3.2)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-for-LDAP-Why-am-I-only-getting-a-few-attributes-back-from/m-p/270677#M31388</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;P&gt;I am using the ldapsearch command on my Splunk 6.3.2 system and SA-ldapsearch 2.2.3 and not getting all of the fields that I am expecting.&lt;/P&gt;

&lt;P&gt;The command is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| ldapsearch search="(&amp;amp;(objectClass=user)(!(objectClass=computer)))"  attrs="sAMAccountName,displayName,givenName,sn,department,company,whenCreated"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I run this, I get a set of records like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{"sAMAccountName":"Jim.Hargreaves","givenName":"Jim","sn":"Hargreaves","whenCreated":"20150807092238.0Z","displayName":"Jim Hargreaves"}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And I have absolutely NO data in the department and company attributes, as expected.&lt;/P&gt;

&lt;P&gt;Does anyone know why this might happen and how to fix it?&lt;/P&gt;

&lt;P&gt;Kindest regards,&lt;/P&gt;

&lt;P&gt;BlueSocket&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 15:58:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-for-LDAP-Why-am-I-only-getting-a-few-attributes-back-from/m-p/270677#M31388</guid>
      <dc:creator>BlueSocket</dc:creator>
      <dc:date>2016-10-24T15:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add-on for LDAP: Why am I only getting a few attributes back from ldapsearch (from SA-ldapsearch 2.2.3 and Splunk 6.3.2)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-for-LDAP-Why-am-I-only-getting-a-few-attributes-back-from/m-p/270678#M31389</link>
      <description>&lt;P&gt;If you delete attrs="..." And leave &lt;BR /&gt;
| ldapsearch search="(&amp;amp;(objectClass=user)(!(objectClass=computer)))" &lt;BR /&gt;
You'll see all the attributes.&lt;BR /&gt;
Bye. &lt;BR /&gt;
Giuseppe &lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 16:05:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-for-LDAP-Why-am-I-only-getting-a-few-attributes-back-from/m-p/270678#M31389</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-10-24T16:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Add-on for LDAP: Why am I only getting a few attributes back from ldapsearch (from SA-ldapsearch 2.2.3 and Splunk 6.3.2)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-for-LDAP-Why-am-I-only-getting-a-few-attributes-back-from/m-p/270679#M31390</link>
      <description>&lt;P&gt;I had already tried that one, sadly. If I use this string:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | ldapsearch search="(&amp;amp;(objectClass=user)(!(objectClass=computer)))"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; {"userAccountControl":["DONT_EXPIRE_PASSWD","NORMAL_ACCOUNT"],"memberOf":["CN=Special,OU=Security Groups,DC=my,DC=tld","CN=Domain Users,CN=Users,DC=my,DC=tld"],"givenName":"Jim","primaryGroupID":"513","whenCreated":"20150807092238.0Z","objectCategory":"CN=Person,CN=Schema,CN=Configuration,DC=my,DC=tld","name":"Jim Hargreaves","sAMAccountType":"NORMAL_USER_ACCOUNT","instanceType":["WRITE"],"objectSid":"S-1-5-21-3245572396-1783235147-58263765-1119","sAMAccountName":"Jim.Hargreaves","objectGUID":"a68b6b65-160c-4dc7-904d-ac394b475413","displayName":"Jim Hargreaves","whenChanged":"20161024145615.0Z","dSCorePropagationData":["20150917143232.0Z","20150807092238.0Z","16010101000000.0Z"],"cn":"Jim Hargreaves","userPrincipalName":"Jim.Hargreaves@my.tld","lastLogonTimestamp":"2016-10-24T14:33:34.178838Z","uSNCreated":"35254","objectClass":["top","person","organizationalPerson","user"],"distinguishedName":"CN=Jim Hargreaves,OU=Special Users,DC=my,DC=tld","sn":"Hargreaves","uSNChanged":"317679"}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It was because I was not getting enough that I tried using the attrs option.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 16:27:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-for-LDAP-Why-am-I-only-getting-a-few-attributes-back-from/m-p/270679#M31390</guid>
      <dc:creator>BlueSocket</dc:creator>
      <dc:date>2016-10-24T16:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Add-on for LDAP: Why am I only getting a few attributes back from ldapsearch (from SA-ldapsearch 2.2.3 and Splunk 6.3.2)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-for-LDAP-Why-am-I-only-getting-a-few-attributes-back-from/m-p/270680#M31391</link>
      <description>&lt;P&gt;I used this search and runs displaying all fields!&lt;BR /&gt;
Did you tried with another ldap client like jexplorer?&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe &lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 16:50:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-for-LDAP-Why-am-I-only-getting-a-few-attributes-back-from/m-p/270680#M31391</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-10-24T16:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Add-on for LDAP: Why am I only getting a few attributes back from ldapsearch (from SA-ldapsearch 2.2.3 and Splunk 6.3.2)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-for-LDAP-Why-am-I-only-getting-a-few-attributes-back-from/m-p/270681#M31392</link>
      <description>&lt;P&gt;Not sure what JExplorer is and would it integrate into Splunk and the ldapsearch?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 17:10:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-for-LDAP-Why-am-I-only-getting-a-few-attributes-back-from/m-p/270681#M31392</guid>
      <dc:creator>BlueSocket</dc:creator>
      <dc:date>2016-10-24T17:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Add-on for LDAP: Why am I only getting a few attributes back from ldapsearch (from SA-ldapsearch 2.2.3 and Splunk 6.3.2)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-for-LDAP-Why-am-I-only-getting-a-few-attributes-back-from/m-p/270682#M31393</link>
      <description>&lt;P&gt;No jexplorer is a tool (an LDAP client) that is useful to see what your LDAP share, maybe department and company aren't accessible.&lt;/P&gt;

&lt;P&gt;Every way The correct way to access LDAP data from Splunk is the one you used.&lt;BR /&gt;
You can also insert a token in you search: this is a search I inserted in one dashboard to have all the LDAP fields of a chosen Account Name&lt;BR /&gt;
| ldapsearch search="(&amp;amp;(objectClass=user)(sAMAccountName=$Login$)(!(objectClass=computer)))&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 07:06:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-for-LDAP-Why-am-I-only-getting-a-few-attributes-back-from/m-p/270682#M31393</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-10-25T07:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Add-on for LDAP: Why am I only getting a few attributes back from ldapsearch (from SA-ldapsearch 2.2.3 and Splunk 6.3.2)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-for-LDAP-Why-am-I-only-getting-a-few-attributes-back-from/m-p/270683#M31394</link>
      <description>&lt;P&gt;Giuseppe,&lt;/P&gt;

&lt;P&gt;Yeah, I got that down last night before I finished and queried Active Directory. With JXplorer, it showed the data,&lt;/P&gt;

&lt;P&gt;Hmmm.&lt;/P&gt;

&lt;P&gt;Just thought, I am querying Active Directory 2012, not just LDAP. that might be the difference?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 09:25:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-for-LDAP-Why-am-I-only-getting-a-few-attributes-back-from/m-p/270683#M31394</guid>
      <dc:creator>BlueSocket</dc:creator>
      <dc:date>2016-10-25T09:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Add-on for LDAP: Why am I only getting a few attributes back from ldapsearch (from SA-ldapsearch 2.2.3 and Splunk 6.3.2)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-for-LDAP-Why-am-I-only-getting-a-few-attributes-back-from/m-p/270684#M31395</link>
      <description>&lt;P&gt;Maybe, I'm not an expert of LDAP!&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 09:28:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-for-LDAP-Why-am-I-only-getting-a-few-attributes-back-from/m-p/270684#M31395</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-10-25T09:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Add-on for LDAP: Why am I only getting a few attributes back from ldapsearch (from SA-ldapsearch 2.2.3 and Splunk 6.3.2)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-for-LDAP-Why-am-I-only-getting-a-few-attributes-back-from/m-p/270685#M31396</link>
      <description>&lt;P&gt;I have found the fix and fixed it.&lt;/P&gt;

&lt;P&gt;1) I found that the AD Server is a Global Catalog server within AD Sites and Services.&lt;BR /&gt;
2) Then I found that there are two different ports that you can query AD on - 3268 and 389:&lt;BR /&gt;
      a) If you query AD on 3268, then you are querying the Global Catalog, but&lt;BR /&gt;
      b) If you query AD on 389, you are querying the Domain.&lt;/P&gt;

&lt;P&gt;The document that I found that told me this was:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://technet.microsoft.com/en-us/library/cc978012.aspx"&gt;https://technet.microsoft.com/en-us/library/cc978012.aspx&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I found that the LDAP App was querying on port 3268. When I changed it to query 389, the queries worked!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 17:40:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Add-on-for-LDAP-Why-am-I-only-getting-a-few-attributes-back-from/m-p/270685#M31396</guid>
      <dc:creator>BlueSocket</dc:creator>
      <dc:date>2016-11-03T17:40:33Z</dc:date>
    </item>
  </channel>
</rss>

