Comments (11)
sorry for the noob comment, but is there a way to rely on the tedious connection for this? i can connect to MSSQL using windows authentication with tedious using this connection config
var Connection = require('tedious').Connection var config = { server: 'SERVER', authentication: { type: 'ntlm', options: { domain: 'DOMAIN', userName: 'USER', password: 'PASS' } }, options: { encrypt: true, database: 'DB_NAME' } } var connection = new Connection(config)
const config = {
host: process.env.DB_SERVER,
dialect: 'mssql',
dialectOptions: {
authentication: {
type: 'ntlm',
options: {
domain: process.env.DB_DOMAIN,
userName: process.env.DB_USERNAME,
password: process.env.DB_PASSWORD,
},
},
options: {
instanceName: process.env.DB_INSTANCE,
}
},
};
const sequelize = new Sequelize(
process.env.DB_NAME,
null,
null,
config,
);
As per well-hidden here, https://github.com/vishwasjois/sequelize/blob/988e754c6eef323b1a9dc11f5bee3fb535579da8/docs/upgrade-to-v5.md#dialect-specific
from website.
sorry for the noob comment, but is there a way to rely on the tedious connection for this? i can connect to MSSQL using windows authentication with tedious using this connection config
var Connection = require('tedious').Connection var config = { server: 'SERVER', authentication: { type: 'ntlm', options: { domain: 'DOMAIN', userName: 'USER', password: 'PASS' } }, options: { encrypt: true, database: 'DB_NAME' } } var connection = new Connection(config)
const config = { host: process.env.DB_SERVER, dialect: 'mssql', dialectOptions: { authentication: { type: 'ntlm', options: { domain: process.env.DB_DOMAIN, userName: process.env.DB_USERNAME, password: process.env.DB_PASSWORD, }, }, options: { instanceName: process.env.DB_INSTANCE, } }, }; const sequelize = new Sequelize( process.env.DB_NAME, null, null, config, );
As per well-hidden here, https://github.com/vishwasjois/sequelize/blob/988e754c6eef323b1a9dc11f5bee3fb535579da8/docs/upgrade-to-v5.md#dialect-specific
You are an excellent human. I've been searching for a way to configure this for such a long time. Thank you so much!
from website.
Do you have any idea on how this could be implemented? Pull requests are welcome!
from website.
I honestly don't know how to do it. But can take a look and see how this can be done.
from website.
Anything that you can find helps! Thanks!
from website.
sorry for the noob comment, but is there a way to rely on the tedious connection for this? i can connect to MSSQL using windows authentication with tedious using this connection config
var Connection = require('tedious').Connection
var config = {
server: 'SERVER',
authentication: {
type: 'ntlm',
options: {
domain: 'DOMAIN',
userName: 'USER',
password: 'PASS'
}
},
options: {
encrypt: true,
database: 'DB_NAME'
}
}
var connection = new Connection(config)
from website.
well-hidden indeed. Thank you!
from website.
I hoped it wouldn't be this hard to find...
So, happy to know there is a way, I will leave this open as a docs issue so that we show how to do it somewhere. Thanks everyone!
from website.
I'm pretty new to using ORMs and db drivers with node, but would I still need to use a username and password if I'm doing Windows Authentication?
I've been using msnodesqlv8 to connect with Windows Authentication through trusted_connection but I need to use a Linux environment now.
from website.
@troyfitzwater were you able to find how to use Windows Authentication (or an alternative, I do not think you can use Windows Authentication in linux) through trusted connection (not having to provide the password) in Linux?
from website.
This issue has been automatically marked as stale because it has been open for 7 days without activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment or remove the "stale" label. 🙂
from website.
Related Issues (20)
- Create a redirect for HOT 3
- Handling timestamp fields in Typescript
- Transaction readOnly option is not documented. HOT 1
- M:N Associations - Comment in sample is wrong HOT 1
- footgun/regression: Creating a new model with a JSONB column set to null inserts a JSONB `null` value rather than leaving the column as `null` HOT 4
- Foreign key by default is null
- SubQuery parameter is not documented or is not easy to find HOT 1
- Information about dynamic configuration files and .sequelizerc are badly located on website.
- Broken example code on Raw SQL page HOT 4
- Optimistic locking example is missing from the model configuration docs [v6]
- documentation of codes should include their respective file names
- Sequelize doesn't treat date string as UTC HOT 3
- addProfile is not function on many to many relationship HOT 1
- Documentation for nuxt 3
- Slack link on web site is expired HOT 1
- Optional doesn't exist in Sequelize 7, but mentioned in documentation HOT 3
- Add redshift instructions to your getting started guide HOT 1
- V7-alpha connectionManager.initPools missing HOT 1
- unable to access sequelize.org with ipv4 HOT 1
- this.lib.Client is not a constructor when using pg-native HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from website.