- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- System Administration
- >
- getpwnam_r returns null though the user present in...
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP