<?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>question Re: Errors &amp;quot;No DN returned for XXXX&amp;quot; and &amp;quot;No User information found in ldap for XXXX&amp;quot; when user tries to authenticate in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/errors-quot-no-dn-returned-for-xxxx-quot-and-quot-no-user/m-p/1612283#M269209</link>
    <description>&lt;P&gt;I stumbled upon this thread, with the same error.&lt;BR /&gt;Aldo this is a long time ago I still want to give the solution.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1)&amp;nbsp;&lt;/STRONG&gt;The LDAP Server needs to direct to the Server that can query the user. (which is the sys id of the record ldap server)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2) &lt;/STRONG&gt;The source is the DN of the user for instance in my case (ldap:uid=newton,dc=example,dc=com)&lt;BR /&gt;I've used a test ldap from this website (&lt;A href="https://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server/" rel="nofollow"&gt;https://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server/&lt;/A&gt;) which can even used with the UID.&lt;/P&gt;
&lt;P&gt;Here comes the part that fixed is for me:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3) &lt;/STRONG&gt;In the LDAP OU Definitions with the Table sys_user must QUERY the User ID from ServiceNow you want.&lt;/P&gt;
&lt;P&gt;So the "Query field" must be the field for the 'User ID' in ServiceNow&lt;/P&gt;
&lt;P&gt;- &lt;STRONG&gt;sAMAccountName&lt;/STRONG&gt;(Default) or &lt;STRONG&gt;UPN&lt;/STRONG&gt; or &lt;STRONG&gt;mail&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;- For my instance I used '&lt;STRONG&gt;mail&lt;/STRONG&gt;' since our User ID's are equal to the 'email' (transform map)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/194356i6C26974C77698C2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Be sure you define your &lt;STRONG&gt;Transform maps&lt;/STRONG&gt; correctly, like filling the DN and LDAP Server of the user.&lt;/P&gt;
&lt;P&gt;If the&amp;nbsp;sys property (glide.ldap.user.autoprovision) is set to true, it will insert user when not existing this will be filled in automatically aswel with the use of the transform map given. If not correctly the user can login 'once' and then fail, because of the wrong LDAP Server OR Source.&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
    <pubDate>Tue, 30 Apr 2019 09:53:43 GMT</pubDate>
    <dc:creator>Wybren1</dc:creator>
    <dc:date>2019-04-30T09:53:43Z</dc:date>
    <item>
      <title>Errors "No DN returned for XXXX" and "No User information found in ldap for XXXX" when user tries to authenticate</title>
      <link>https://www.servicenow.com/community/developer-forum/errors-quot-no-dn-returned-for-xxxx-quot-and-quot-no-user/m-p/1612279#M269205</link>
      <description>&lt;P&gt;Has anyone ever seen these errors? Both errors are listed in the LDAP log each time he attempt so login to SN. All other internal systems that uses AD for authentication work fine. Refreshing his user record does not cause an error and changing one of the fields populated by our LDAP feed correctly updates on the next scheduled load.&lt;BR /&gt;Our AD admin is stumped and I am not an AD guy, so I have no idea what it could be. Just really looking for clues at this point.&lt;BR /&gt;&lt;BR /&gt;Has anyone ever seen this issue before in their instance?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2012 20:27:33 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/errors-quot-no-dn-returned-for-xxxx-quot-and-quot-no-user/m-p/1612279#M269205</guid>
      <dc:creator>shill</dc:creator>
      <dc:date>2012-03-08T20:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Errors "No DN returned for XXXX" and "No User information found in ldap for XXXX" when user tries to authenticate</title>
      <link>https://www.servicenow.com/community/developer-forum/errors-quot-no-dn-returned-for-xxxx-quot-and-quot-no-user/m-p/1612280#M269206</link>
      <description>&lt;P&gt;Make sure that the user is visible to service-now. It's possible that there is a filter on the ldap connection preventing the connection from seeing the user record on AD. It's also possible that the service-now user doesn't have rights to see this user account any more. Start by trying to browse from within service-now and make sure you can find it from there.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Mar 2012 01:42:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/errors-quot-no-dn-returned-for-xxxx-quot-and-quot-no-user/m-p/1612280#M269206</guid>
      <dc:creator>cwilker10</dc:creator>
      <dc:date>2012-03-09T01:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Errors "No DN returned for XXXX" and "No User information found in ldap for XXXX" when user tries to authenticate</title>
      <link>https://www.servicenow.com/community/developer-forum/errors-quot-no-dn-returned-for-xxxx-quot-and-quot-no-user/m-p/1612281#M269207</link>
      <description>&lt;P&gt;We are experiencing the same issue here. "No DN returned for ..." and "No user information found in ldap for ...". This is on a two-domain setup, with one LDAP server in ServiceNow for each domain.&lt;BR /&gt;&lt;BR /&gt;We can browse AD just fine and pull up the user's details from within ServiceNow's LDAP browser.&lt;BR /&gt;&lt;BR /&gt;It actually looks like we're having issues using the UPN as a username (user@domain.com) instead of sAMAccountName. If I change the user account in ServiceNow to have a username the same as sAMAccountName instead of userPrincipalName, the issue is resolved. Unfortunately, that fix won't work for us, so we're still looking for another solution.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Apr 2012 16:03:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/errors-quot-no-dn-returned-for-xxxx-quot-and-quot-no-user/m-p/1612281#M269207</guid>
      <dc:creator>sshall</dc:creator>
      <dc:date>2012-04-11T16:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Errors "No DN returned for XXXX" and "No User information found in ldap for XXXX" when user tries to authenticate</title>
      <link>https://www.servicenow.com/community/developer-forum/errors-quot-no-dn-returned-for-xxxx-quot-and-quot-no-user/m-p/1612282#M269208</link>
      <description>&lt;P&gt;Our issue is now resolved. We weren't pulling the DN from Active Directory. I added a field on sys_user named u_ldap_dn, added the appropriate transform mapping from "distinguishedname" to "u_ldap_dn" in the LDAP User transform map, and set the "DN Field" on the LDAP Server to the newly created field and everything works as designed.&lt;BR /&gt;&lt;BR /&gt;The wiki hints at this, but doesn't explicitly call out that you'll need to import the DN to a field in order to use the userPrincipalName.&lt;BR /&gt;&lt;BR /&gt;EDIT: The "DN Field" only shows on the advanced view of the LDAP server record. You'll have to click the "Advanced View" ui link to see this field.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Apr 2012 22:12:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/errors-quot-no-dn-returned-for-xxxx-quot-and-quot-no-user/m-p/1612282#M269208</guid>
      <dc:creator>sshall</dc:creator>
      <dc:date>2012-04-11T22:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Errors "No DN returned for XXXX" and "No User information found in ldap for XXXX" when user tries to authenticate</title>
      <link>https://www.servicenow.com/community/developer-forum/errors-quot-no-dn-returned-for-xxxx-quot-and-quot-no-user/m-p/1612283#M269209</link>
      <description>&lt;P&gt;I stumbled upon this thread, with the same error.&lt;BR /&gt;Aldo this is a long time ago I still want to give the solution.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1)&amp;nbsp;&lt;/STRONG&gt;The LDAP Server needs to direct to the Server that can query the user. (which is the sys id of the record ldap server)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2) &lt;/STRONG&gt;The source is the DN of the user for instance in my case (ldap:uid=newton,dc=example,dc=com)&lt;BR /&gt;I've used a test ldap from this website (&lt;A href="https://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server/" rel="nofollow"&gt;https://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server/&lt;/A&gt;) which can even used with the UID.&lt;/P&gt;
&lt;P&gt;Here comes the part that fixed is for me:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3) &lt;/STRONG&gt;In the LDAP OU Definitions with the Table sys_user must QUERY the User ID from ServiceNow you want.&lt;/P&gt;
&lt;P&gt;So the "Query field" must be the field for the 'User ID' in ServiceNow&lt;/P&gt;
&lt;P&gt;- &lt;STRONG&gt;sAMAccountName&lt;/STRONG&gt;(Default) or &lt;STRONG&gt;UPN&lt;/STRONG&gt; or &lt;STRONG&gt;mail&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;- For my instance I used '&lt;STRONG&gt;mail&lt;/STRONG&gt;' since our User ID's are equal to the 'email' (transform map)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/194356i6C26974C77698C2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Be sure you define your &lt;STRONG&gt;Transform maps&lt;/STRONG&gt; correctly, like filling the DN and LDAP Server of the user.&lt;/P&gt;
&lt;P&gt;If the&amp;nbsp;sys property (glide.ldap.user.autoprovision) is set to true, it will insert user when not existing this will be filled in automatically aswel with the use of the transform map given. If not correctly the user can login 'once' and then fail, because of the wrong LDAP Server OR Source.&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 09:53:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/errors-quot-no-dn-returned-for-xxxx-quot-and-quot-no-user/m-p/1612283#M269209</guid>
      <dc:creator>Wybren1</dc:creator>
      <dc:date>2019-04-30T09:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Errors "No DN returned for XXXX" and "No User information found in ldap for XXXX" when user tries to authenticate</title>
      <link>https://www.servicenow.com/community/developer-forum/errors-quot-no-dn-returned-for-xxxx-quot-and-quot-no-user/m-p/1612284#M269210</link>
      <description>&lt;P&gt;There is a field in LDAP called source. During the transform, Source is mapped to the field in ServiceNow called Source. Then on the LDAP server record, DN Field is set to Source. Hope this helps!&lt;/P&gt;
&lt;P&gt;-Robin&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 14:33:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/errors-quot-no-dn-returned-for-xxxx-quot-and-quot-no-user/m-p/1612284#M269210</guid>
      <dc:creator>Robin L</dc:creator>
      <dc:date>2021-06-24T14:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Errors "No DN returned for XXXX" and "No User information found in ldap for XXXX" when user tries to authenticate</title>
      <link>https://www.servicenow.com/community/developer-forum/errors-quot-no-dn-returned-for-xxxx-quot-and-quot-no-user/m-p/1612285#M269211</link>
      <description>&lt;P&gt;Hi Wybren, can you give me the sample transform map, please?&lt;/P&gt;
&lt;P&gt;I also faced about issue when all users sync into Servicenow, but when i try to log in to Servicenow instance, and the result has failed to sign in.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 09:12:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/errors-quot-no-dn-returned-for-xxxx-quot-and-quot-no-user/m-p/1612285#M269211</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2022-06-08T09:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Errors "No DN returned for XXXX" and "No User information found in ldap for XXXX" when user tries to authenticate</title>
      <link>https://www.servicenow.com/community/developer-forum/errors-quot-no-dn-returned-for-xxxx-quot-and-quot-no-user/m-p/1612286#M269212</link>
      <description>&lt;P&gt;My solutions is:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Verifying in LDAP OU Definitions with table=sys_user&lt;/P&gt;
&lt;P&gt;&amp;nbsp; The value of field [query_field] is the field in LDAP server side and This value must be same the field is mapped with user_name in sys_user at TRANSFORM MAP.&lt;/P&gt;
&lt;P&gt;Example:&amp;nbsp; when I select query_field=mail at LDAP OU Definition record (table=sys_user) and save. Then, I have to map in Transform map: mail (LDAP Server side/Source field) = user_name (sys_user table/target field).&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 10:38:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/errors-quot-no-dn-returned-for-xxxx-quot-and-quot-no-user/m-p/1612286#M269212</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2022-06-08T10:38:25Z</dc:date>
    </item>
  </channel>
</rss>

