One of the custommers of the company I work in, have a active directory windows server and linux machines acting as clients with samba 4.The software uses getpwuid to get the current user executing it, but in that environment, that function is returning a NULL pointer and the errno ends with the value 11 (EAGAIN, which translates to Try again).Can someone help me with which are the possible causes?Also when I run passwd -S user on the machine, it returns the user as L (locked), but we can login as that user with no problems and in local tests in my linux machine, with an already logged in locked user, executing getpwuid doesn't return any error.
getpwuid returning errno EAGAIN
samba;active directory;passwd