I'm using Samba 3.0.7, winbindd and Windows 2000 AD to authenticate users. I also have a software which is using getpwnam-function to get userinfo. For some reason winbind doesn't return correct gecos-information for all users when using getpwnam(username), I'm only getting a null-string. In the other hand getpwent() works correctly and every account has it's gecos-information when printing the whole userbase in a while loop. I also have a old installation with 2.2.12 and NT4 PDC and there getpwnam(username) is working ok.
I forgot to mention that I use domain-security not ads. With ads, getpwent didn't return all the users, so it also has some sort of a bug. =)
Found a similar bug report and it seems that only getpwent was fixed. https://bugzilla.samba.org/show_bug.cgi?id=597 --cut-- I think this is actually a caching issue. Can you remove the netsamlogon_cache.tdb and retry this? I just tried it on a Samba PDC running winbindd and it worked as expected. --cut-- Removing netsamlogon_cache.tdb also "resolves" temporarily this problem until the cache gets "corrupted" again.
This should be fixed in 3.0.9 I think. But please ret3est against 3.0.11.
It's not fixed in 3.0.9 but 3.0.11 did work okey. =) So this one is closed and resolved, thanks.
Upgraded to 3.0.20rc2 because the "Interoperability problems with Win2003-SP1 & Win2000-SP4.SR1"-bug and noticed that this bug is back again and once againg deleting netsamlogon_cache.tdb helps.
We are going yo remove the netsamlogon_cache file for 3.0.21.