Reported by 2 different people now (against 3.0.1rc1). From Pierre Filippone: "| When I try to list domain users/groups on share permissions or on filesystem permissions on a Win2k member server in a Samba 3 LDAP Domain, I see only the user's/group's SIDs and not their uids. This happens after logging off and on or after rebooting. Installing the share is no problem. All users and groups can be displayed and selected properly with their uids/names. Probably the resolution from SID to uid does not work under special conditions. Everything works fine on Win2003 and WinXP domain members. This error happens only in Samba versions 3.0.1x. A downgrade to 3.0.0 solves the problem immediately."
Just to clarify this only happens on local files on members of a Samba domain. I have reproduced this using a Windows 2000 SP4 client.
Fixed. It was a UNISTR2 length bug in LsaQueryInfo(3).
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.