However, when we try to do in from the CFC it gives the error, “The login is from an untrusted domain and cannot be used with Integrated authentication”.
You may want to confirm that your security certificates for both server hosting Lucee as well as those in the Java security store used by Lucee are up to date and allowed by the database server. In addition, confirm the user under which Lucee is running has permissions to connect to the server hosting the database server.
Are you saying you have successfully been able to connect, but you are not authorized? Then may be a setting issue of the DB. Any logs availabel at the DB server side?
That post on Stack Overflow seems to be referring to the Microsoft JDBC driver. That’s why they refer to the “Integrated Security=true”. The equivalent for the jtds driver is “ntlmV2”, which we are using.
Some things in that post are out of my control. I have to assume the Windows domain and DNS is set up properly. I can connect with ODBC, so that hopefully confirms the domain and DNS.