Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem on connection and authentication #28

Closed
user1020 opened this issue Mar 29, 2014 · 2 comments
Closed

Problem on connection and authentication #28

user1020 opened this issue Mar 29, 2014 · 2 comments

Comments

@user1020
Copy link

When run the following code, keep getting error
"Login failed; one or more errorMessage events should have been emitted"

config = {user: p.username, password: p.password, server: p.host, database: p.other};
        console.log("connecting to mssql");
        CBS[id].conn = new mssql.Connection(config, function(err) {
            if (err) {
                sendMsg(id, {error: err}); return;
            }
            sendMsg(id, {result:"connected"} );
        });

packet sniffer shows it failed too. The question is, what mode of authentication the above code uses. Is it Windows Authentication?

Thanks in advance.

@Dalorzo
Copy link

Dalorzo commented Mar 30, 2014

Windows Authentication does not use username/password.
Please refer to tedious documentation to notice that windows authentication is not yet supported.

http://pekim.github.io/tedious/api-connection.html

"Only SQL Server accounts are supported. Windows domain accounts are not supported."

@user1020
Copy link
Author

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants