<?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 getpwnam_r returns null though the user present in Active Directory and it returns in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/getpwnam-r-returns-null-though-the-user-present-in-active/m-p/7093685#M55246</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I find getpwnam_r returns null, though the user avaialbe in Active Directory&amp;nbsp; and also I find in wireshark Active Directory has returned user detail as a response to ldap search made by getpwnam_r. It would be really helpful if I get to now what is going wrong there.&lt;/P&gt;&lt;P&gt;I am using nss-ldap and pam-ldap modules for authenticaiton.&lt;/P&gt;&lt;P&gt;When I tried getent passwd ldapuser this also does not return the user.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jul 2020 12:50:10 GMT</pubDate>
    <dc:creator>Babula</dc:creator>
    <dc:date>2020-07-01T12:50:10Z</dc:date>
    <item>
      <title>getpwnam_r returns null though the user present in Active Directory and it returns</title>
      <link>https://community.hpe.com/t5/operating-system-linux/getpwnam-r-returns-null-though-the-user-present-in-active/m-p/7093685#M55246</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I find getpwnam_r returns null, though the user avaialbe in Active Directory&amp;nbsp; and also I find in wireshark Active Directory has returned user detail as a response to ldap search made by getpwnam_r. It would be really helpful if I get to now what is going wrong there.&lt;/P&gt;&lt;P&gt;I am using nss-ldap and pam-ldap modules for authenticaiton.&lt;/P&gt;&lt;P&gt;When I tried getent passwd ldapuser this also does not return the user.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 12:50:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/getpwnam-r-returns-null-though-the-user-present-in-active/m-p/7093685#M55246</guid>
      <dc:creator>Babula</dc:creator>
      <dc:date>2020-07-01T12:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: getpwnam_r returns null though the user present in Active Directory and it returns</title>
      <link>https://community.hpe.com/t5/operating-system-linux/getpwnam-r-returns-null-though-the-user-present-in-active/m-p/7095589#M55249</link>
      <description>&lt;P&gt;Not sure which linux version you are using, might be this article helpful...&lt;/P&gt;&lt;P&gt;&lt;A href="https://bugzilla.redhat.com/show_bug.cgi?id=988068" target="_blank"&gt;https://bugzilla.redhat.com/show_bug.cgi?id=988068&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 08:15:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/getpwnam-r-returns-null-though-the-user-present-in-active/m-p/7095589#M55249</guid>
      <dc:creator>avd437</dc:creator>
      <dc:date>2020-07-20T08:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: getpwnam_r returns null though the user present in Active Directory and it returns</title>
      <link>https://community.hpe.com/t5/operating-system-linux/getpwnam-r-returns-null-though-the-user-present-in-active/m-p/7095857#M55250</link>
      <description>&lt;P&gt;Thanks for&amp;nbsp; your&amp;nbsp; reply. The&amp;nbsp; bugzilla reference you&amp;nbsp; have provided thats related to user does not exist in LDAP Store. But mine is littel&amp;nbsp; bit different.&amp;nbsp; I could find the user is&amp;nbsp; present in Active Directory and&amp;nbsp; also using strace I found&amp;nbsp; getpwnam_r reads the user&amp;nbsp; attributes and also confirmed&amp;nbsp; using wireshark when LDAP server responded back with required attributes for that user to getpwnam_r ldap search request. But getpwnam_r returns NULL and error was set to 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it would be great help if I get to known what all being checked by getpwnam_r after receiving data and when does it return NULL and error 0.&lt;/P&gt;&lt;P&gt;By&amp;nbsp;&amp;nbsp; the way&amp;nbsp; I am using glibc-2.30 .&amp;nbsp; I wrote a small test program using getpwnam_r there also I find the same behaviour.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 05:21:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/getpwnam-r-returns-null-though-the-user-present-in-active/m-p/7095857#M55250</guid>
      <dc:creator>Babula</dc:creator>
      <dc:date>2020-07-22T05:21:03Z</dc:date>
    </item>
  </channel>
</rss>

