Steps to Reproduce
1) Create samba share
2) Log on windows XP Professional 64 bit edition as domain admin
3) Create folder on share
3) Right click on folder, click properties, and select security tab
4) Click Add button
5) Popup displayed with irrelevant error message
"The program cannot open the required dialog box because it cannoot determine whether the computer named "XXX" is joined to a domain. Close this message and try again"
This does not happen on 32 bit Windows System.
So far can reproduce this on XP Pro 64 bit and 2003 64 bit.
This has got to be related to the LsaQueryInfoPolicy() call but
I can't see what the problem is. 100% reproducible.
I have found a fix. We have to correctly implement and fill in the
DsRoleGetPrimaryDomainInformation() basic level call. Will be done