- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: getpwnam_r returns null though the user presen...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2020 05:50 AM
тАО07-01-2020 05:50 AM
getpwnam_r returns null though the user present in Active Directory and it returns
Hi All,
I find getpwnam_r returns null, though the user avaialbe in Active Directory 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.
I am using nss-ldap and pam-ldap modules for authenticaiton.
When I tried getent passwd ldapuser this also does not return the user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2020 01:15 AM
тАО07-20-2020 01:15 AM
Re: getpwnam_r returns null though the user present in Active Directory and it returns
Not sure which linux version you are using, might be this article helpful...
https://bugzilla.redhat.com/show_bug.cgi?id=988068
I work for HPE.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2020 10:21 PM
тАО07-21-2020 10:21 PM
Re: getpwnam_r returns null though the user present in Active Directory and it returns
Thanks for your reply. The bugzilla reference you have provided thats related to user does not exist in LDAP Store. But mine is littel bit different. I could find the user is present in Active Directory and also using strace I found getpwnam_r reads the user attributes and also confirmed 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.
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.
By the way I am using glibc-2.30 . I wrote a small test program using getpwnam_r there also I find the same behaviour.