<?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 to format distinguishedName to domain in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-distinguishedName-to-domain/m-p/586045#M204144</link>
    <description>&lt;P&gt;I am looking to format ldap extracted&amp;nbsp;distinguishedName to a domain.&lt;/P&gt;
&lt;P&gt;Example&lt;/P&gt;
&lt;P&gt;CN=Username,OU=Folder,OU=Folder,DC=domain,DC=com&lt;/P&gt;
&lt;P&gt;Output&lt;/P&gt;
&lt;P&gt;domain.com&lt;/P&gt;</description>
    <pubDate>Tue, 22 Feb 2022 16:57:58 GMT</pubDate>
    <dc:creator>Meloow</dc:creator>
    <dc:date>2022-02-22T16:57:58Z</dc:date>
    <item>
      <title>How to format distinguishedName to domain</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-distinguishedName-to-domain/m-p/586045#M204144</link>
      <description>&lt;P&gt;I am looking to format ldap extracted&amp;nbsp;distinguishedName to a domain.&lt;/P&gt;
&lt;P&gt;Example&lt;/P&gt;
&lt;P&gt;CN=Username,OU=Folder,OU=Folder,DC=domain,DC=com&lt;/P&gt;
&lt;P&gt;Output&lt;/P&gt;
&lt;P&gt;domain.com&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 16:57:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-format-distinguishedName-to-domain/m-p/586045#M204144</guid>
      <dc:creator>Meloow</dc:creator>
      <dc:date>2022-02-22T16:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Format distinguishedName to domain</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-distinguishedName-to-domain/m-p/586054#M204148</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;one way to do it&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval dn="CN=Username,OU=Folder,OU=Folder,DC=domain,DC=com"
| rex field=dn max_match=0 "(?ms)DC=(?&amp;lt;d1&amp;gt;[\w]+),DC=(?&amp;lt;d2&amp;gt;[\w]+)$"
| eval dn2=d1 .".". d2&lt;/LI-CODE&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 15:07:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-format-distinguishedName-to-domain/m-p/586054#M204148</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-02-22T15:07:58Z</dc:date>
    </item>
  </channel>
</rss>

