title: SQLNET.AUTHENTICATION_SERVICES= (NTS) and ASP.NET
body: <p>I'm trying to access an oracle database using </p>
  
  <pre><code>using System.Data.OracleClient;
  </code></pre>
  
  <p>from a console application, accessing the database is fine. however from an ASP.NET web site i get the error:</p>
  
  <pre><code>ORA-12640: Authentication adapter initialization failed
  </code></pre>
  
  <p>I've googled around and found that changing sqlnet.ora file would solve the issue</p>
  
  <pre><code>//before
  SQLNET.AUTHENTICATION_SERVICES= (NTS)
  //after
  SQLNET.AUTHENTICATION_SERVICES= (NONE)
  </code></pre>
  
  <p>Later I found another application on the same server, that uses other database of Oracle as well, is requiring the value of SQLNET.AUTHENTICATION_SERVICES to be "NTS". This would cause my web site to fail accessing the database with the error ORA-12640. I have tried "ALL" as value but still it didn't work. </p>
  
  <p>How can I configure my website to access the oracle database while sqlnet.ora is configured as "SQLNET.AUTHENTICATION_SERVICES= (NTS)" ?</p>
  
  <p>P.S. the website uses Windows Authentication and impersonate as follow:</p>
  
  <pre><code>&lt;authentication mode="Windows"/&gt;
  &lt;identity impersonate="true"/&gt;
  </code></pre>