title: Express connect to Oracle DB using kerberos
body: <p>I am working migrating a legacy dotnet service to an express app. This app connects to the Oracle DB hosted on linux server and requires Kerberos authentication. Kerberos requirement was added recently when DB team moved everything over to Linux servers. I am using the node-oracledb npm package to connect in my Express App. As per documentation, looks like I need to use externalAuth: true to enable Kerberos authentication. My connection code looks like this -</p>
  <pre><code>let tns_string = `(DESCRIPTION = .... ) `
         
  let connection = await oracledb.getConnection({                
                      connectString: tns_string ,
                      externalAuth: true
                   });
  </code></pre>
  <p>My problem - There is a generic system account - sysgen, that has access to the DB. With windows services I could specify the 'Identity (user)' under which the service needs to be run. How do I do that on Express(node js)?</p>
  <p>Sorry, I just started learning about Kerberos. The way I understand Kerberos, is that it uses the credentials of the account under which the process is running (current logged in account during development). But, during development and deployment of my express app, I don't want to use generic system account to install &amp; run the Express app.</p>