<?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: Splunk LDAP search add on: Ldap attrs config in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-LDAP-search-add-on-Ldap-attrs-config/m-p/675070#M18434</link>
    <description>&lt;P&gt;That may be an off by one error in the script block that checks attributes and writes error messages; name isn't a valid attribute. Instead of name, try cn, displayName, sAMAccountName, givenName, sn, etc.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jan 2024 15:43:16 GMT</pubDate>
    <dc:creator>tscroggins</dc:creator>
    <dc:date>2024-01-22T15:43:16Z</dc:date>
    <item>
      <title>Splunk LDAP search add on: Ldap attrs config</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-LDAP-search-add-on-Ldap-attrs-config/m-p/674871#M18417</link>
      <description>&lt;P&gt;Can someone explain to me where the attrs argument pulls its attributes from? Originally I thought it was essentially the "-Properties" flag from Get-ADuser and I would be able to use those properties but whenever I try it says "&lt;SPAN&gt;External search command 'ldapsearch' returned error code 1. Script output = "error_message=Invalid attribute types in attrs list: PasswordExpirationDate "." Where is the attrs list? How can I define more attrs?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 18:52:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-LDAP-search-add-on-Ldap-attrs-config/m-p/674871#M18417</guid>
      <dc:creator>williamcclark</dc:creator>
      <dc:date>2024-01-19T18:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk LDAP search add on: Ldap attrs config</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-LDAP-search-add-on-Ldap-attrs-config/m-p/674931#M18420</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/264184"&gt;@williamcclark&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The ldapsearch command attrs argument is similar to the Get-ADUser cmdlet Properties parameter; however, unlike Get-ADUser, ldapsearch does not return a default set of LDAP attributes. Using ldapsearch without the attrs argument is equivalent to running Get-ADUser -Properties *. (Technically, the default value for attrs is the Python constant ldap3.ALL_ATTRIBUTES, which evaluates to *.)&lt;/P&gt;&lt;P&gt;To limit the attributes returned, provide a comma-delimited list to the attrs argument:&lt;/P&gt;&lt;P&gt;| ldapsearch attrs="sn,givenName,sAMAccountName"&lt;/P&gt;&lt;P&gt;In the add-on code, "Invalid attributes types in attrs list" is returned when a requested attribute is not present in the directory schema.&lt;/P&gt;&lt;P&gt;How are you using the ldapsearch command? Is it being used by another app or add-on? Does the use case expect a schema extension that isn't installed on your target directory? For example, are you searching for Exchange-related attributes in a directory that does not have the Exchange schema extensions installed?&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jan 2024 17:07:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-LDAP-search-add-on-Ldap-attrs-config/m-p/674931#M18420</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2024-01-20T17:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk LDAP search add on: Ldap attrs config</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-LDAP-search-add-on-Ldap-attrs-config/m-p/675054#M18431</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/49493"&gt;@tscroggins&lt;/a&gt;&amp;nbsp;I was using the search app to run&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| ldapsearch search="(&amp;amp;(objectClass=user))" attrs=name, accountExpires&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;accountExpires is the attribute causing the aforementioned error. I know the property exists because I am able to call it via Get-ADUser.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 15:03:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-LDAP-search-add-on-Ldap-attrs-config/m-p/675054#M18431</guid>
      <dc:creator>williamcclark</dc:creator>
      <dc:date>2024-01-22T15:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk LDAP search add on: Ldap attrs config</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-LDAP-search-add-on-Ldap-attrs-config/m-p/675070#M18434</link>
      <description>&lt;P&gt;That may be an off by one error in the script block that checks attributes and writes error messages; name isn't a valid attribute. Instead of name, try cn, displayName, sAMAccountName, givenName, sn, etc.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 15:43:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-LDAP-search-add-on-Ldap-attrs-config/m-p/675070#M18434</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2024-01-22T15:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk LDAP search add on: Ldap attrs config</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-LDAP-search-add-on-Ldap-attrs-config/m-p/675075#M18435</link>
      <description>&lt;P&gt;Name does return a value, as does every other attribute you listed. How is name not valid? Isn't it just pulling from properties in AD?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 15:58:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-LDAP-search-add-on-Ldap-attrs-config/m-p/675075#M18435</guid>
      <dc:creator>williamcclark</dc:creator>
      <dc:date>2024-01-22T15:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk LDAP search add on: Ldap attrs config</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-LDAP-search-add-on-Ldap-attrs-config/m-p/675619#M18508</link>
      <description>&lt;P&gt;Ah, you are correct. "name" is the relative distinguished name (RDN) of the object. If the object's distinguished name is CN=foo,DC=example,DC=com, the name value should be foo.&lt;/P&gt;&lt;P&gt;accountExpires is a valid attribute in my Windows Server 2022 Active Directory environment.&lt;/P&gt;&lt;P&gt;A slightly modified version of the search works for me:&lt;/P&gt;&lt;P&gt;| ldapsearch search="(&amp;amp;(objectClass=user))" attrs="name,accountExpires"&lt;/P&gt;&lt;P&gt;What other information can you provide about your Active Directory environment?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jan 2024 00:35:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-LDAP-search-add-on-Ldap-attrs-config/m-p/675619#M18508</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2024-01-28T00:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk LDAP search add on: Ldap attrs config</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-LDAP-search-add-on-Ldap-attrs-config/m-p/682194#M18990</link>
      <description>&lt;P&gt;Sorry for the late reply... Just started back working on this. For anyone who is curious, the answer was the port we were using had less attributes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 21:42:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-LDAP-search-add-on-Ldap-attrs-config/m-p/682194#M18990</guid>
      <dc:creator>williamcclark</dc:creator>
      <dc:date>2024-03-27T21:42:09Z</dc:date>
    </item>
  </channel>
</rss>

