In my case I find getpwnam_r was able to read user detail from Active Directory. This I could find using both wireshark and strace. In both the tools I can see, Acrtive Directory has returned the values but getpwnam_r returns NULL in my program. I find username , uid, gid and other stuff was received by getpwnam_r. Any clue what could be the problem.
↧