The OS ESM module uses the Windows LogonUser function to verify a user's credentials (username and password), in the following manner:
If a user is defined in multiple places on that search list, the OS ESM module only tries to authenticate the user in the first one it finds. Normally this will have the expected behavior (much like logging on to Windows conventionally), but in a complex domain configuration situation it could produce confusing results.
Currently there is no provision for forcing a particular domain or changing the search order. Those options may be added in later releases.