小编THE*_*ike的帖子

使用IIS,Firefox和SQL Server进行集成Windows身份验证

我在我的localhost上有一个在IIS上运行的网站.此网站的目录安全性设置为仅允许集成Windows身份验证.它是Intranet的一部分,需要通过我们的域帐户进行身份验证.

然后,我在连接字符串中使用Integrated Security = SSPI连接到SQL Server.

这适用于Microsoft Internet Explorer,当我登录到域时它会自动验证我,我可以看到logon_user是我的域帐户,SQL Server连接字符串工作得很好.

但是,当我使用Firefox登录时,情况就不同了.

首先,我被提示进行身份验证,这很好并且正确,因为Firefox未配置为足以信任localhost足以自动发送凭据(事实上,我知道如何引入此信任,这不是问题).我然后登录,再次没问题,只要我输入域名帐户详细信息一切正常.实际上,一个或两个调试语句显示logon_user仍然是我的域帐户,一切都很好.

但是,当我连接到SQL Server(在远程服务器上运行,我的域帐户具有完全sysadmin权限)时,我收到以下错误:

Microsoft OLE DB Provider for SQL Server (0x80040E4D)
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
Run Code Online (Sandbox Code Playgroud)

这向我表明身份验证堆栈中存在问题,出于某种原因,当我使用来自firefox的Windows身份验证进行身份验证时,IIS未作为经过身份验证的帐户运行.

使用谷歌浏览器时也可以正常使用.

有什么建议?

windows sql-server authentication iis firefox

15
推荐指数
3
解决办法
2万
查看次数

Yarn Build - Storybook 的 Babel-loader 问题

我有一个新的 create react app 项目,使用 typescript 模板:

yarn create react-app my-app --template typescript
Run Code Online (Sandbox Code Playgroud)

为此,我添加了 Storybook:

npx sb init
Run Code Online (Sandbox Code Playgroud)

这给了我一个有效的故事书实例,但是,yarn build现在是错误的。

$ react-scripts build

There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix locally.

The react-scripts package provided by Create React App requires a dependency:

  "babel-loader": "8.1.0"

Don't try to install it manually: your package manager does it automatically.
However, a different …
Run Code Online (Sandbox Code Playgroud)

reactjs babeljs create-react-app storybook react-typescript

15
推荐指数
1
解决办法
4014
查看次数