<?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 How can I use LDAPSearch to retrieve email based on selected specific CN in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-LDAPSearch-to-retrieve-email-based-on-selected/m-p/104326#M183169</link>
    <description>&lt;P&gt;Hi I have used ldapsearch to narrow down the list of members based on a specific CN:&lt;/P&gt;

&lt;P&gt;e.g.&lt;BR /&gt;
|ldapsearch domain="mydom" search="(&amp;amp;(objectclass=group)(|(CN=#R1231)(CN=#R31412)))" attrs="member"&lt;/P&gt;

&lt;P&gt;The above will yield the list of identidies for each of the identified CN.&lt;/P&gt;

&lt;P&gt;However, I wanted to use the above the pull more information about the individual identidies e.f. telephone, email, department etc.&lt;/P&gt;

&lt;P&gt;I was hoping I can pipe it to another ldapsearch command but don't have any progress thus far.&lt;/P&gt;

&lt;P&gt;Anyone has manage to do nested ldapsearch or have done what I was hoping to before?&lt;/P&gt;

&lt;P&gt;Thanks for any help!&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jan 2013 04:02:46 GMT</pubDate>
    <dc:creator>Joshie</dc:creator>
    <dc:date>2013-01-30T04:02:46Z</dc:date>
    <item>
      <title>How can I use LDAPSearch to retrieve email based on selected specific CN</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-LDAPSearch-to-retrieve-email-based-on-selected/m-p/104326#M183169</link>
      <description>&lt;P&gt;Hi I have used ldapsearch to narrow down the list of members based on a specific CN:&lt;/P&gt;

&lt;P&gt;e.g.&lt;BR /&gt;
|ldapsearch domain="mydom" search="(&amp;amp;(objectclass=group)(|(CN=#R1231)(CN=#R31412)))" attrs="member"&lt;/P&gt;

&lt;P&gt;The above will yield the list of identidies for each of the identified CN.&lt;/P&gt;

&lt;P&gt;However, I wanted to use the above the pull more information about the individual identidies e.f. telephone, email, department etc.&lt;/P&gt;

&lt;P&gt;I was hoping I can pipe it to another ldapsearch command but don't have any progress thus far.&lt;/P&gt;

&lt;P&gt;Anyone has manage to do nested ldapsearch or have done what I was hoping to before?&lt;/P&gt;

&lt;P&gt;Thanks for any help!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 04:02:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-LDAPSearch-to-retrieve-email-based-on-selected/m-p/104326#M183169</guid>
      <dc:creator>Joshie</dc:creator>
      <dc:date>2013-01-30T04:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use LDAPSearch to retrieve email based on selected specific CN</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-LDAPSearch-to-retrieve-email-based-on-selected/m-p/104327#M183170</link>
      <description>&lt;P&gt;You can easily nest things by using the other LDAP commands in the package.  For example, using&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|ldapsearch domain="X" search="(CN=#*)" attrs="distinguishedName"|ldapgroup
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You get an expansion that actually shows the membership in a field called memberDN.  You can expand this with ldapfetch:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|ldapsearch domain="X" search="(CN=#*)" attrs="distinguishedName"|ldapgroup|mvexpand memberdn|table cn,memberdn|ldapfetch dn=memberdn attrs="mail"|table cn,memberdn,mail
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Check out the specific documentation within the SA-ldapsearch app, that has explicit examples for each of the four commands.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 06:32:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-use-LDAPSearch-to-retrieve-email-based-on-selected/m-p/104327#M183170</guid>
      <dc:creator>ahall_splunk</dc:creator>
      <dc:date>2013-01-30T06:32:56Z</dc:date>
    </item>
  </channel>
</rss>

