The domain name is used to find the directory code that will be used to log in the user connected.
If the domain name is empty, the active directory code with empty domain will be used.
If the domain name is not empty, the active directory code with domain -of the connected user- will be used.
In both cases, if an active record is not found, the connection will be denied.