Can't connect with UDL file to SQL Server 2016 but with SSMS it works without problems
I found what caused it - UDL connections doesn't allow using a different Windows NT authentication other than the current user.
The "Custom user" is only for SQL authentication.