防止以'NT AUTHORITY \ANONYMOUS LOGON'登录 [英] Preventing login as 'NT AUTHORITY\ANONYMOUS LOGON'

查看:96
本文介绍了防止以'NT AUTHORITY \ANONYMOUS LOGON'登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用连接字符串的asp.net程序,使用集成的

安全性连接到sql数据库。它在一台服务器上运行良好,但

其他服务器给我的错误是

用户登录失败NT AUTHORITY / ANONYMOUS LOGON。为什么会这样?

没有理由它甚至应该尝试登录使用NT

授权/匿名登录。 IIS服务器设置为关闭匿名

登录,并使用集成安全性,我的程序使用带有集成安全性的连接字符串

。有时它确实会运行,几乎就像有一个

之间的比赛,在这个比赛中,该程序将使用这个比赛,并且在大约五个b $ b分钟之间正确连接。但我不知道为什么它会丢失我在web.config中的

连接字符串。正如我所提到的,它可以在另一台服务器上运行
,不同之处在于其他服务器强制

用户首先登录。我有一个或两个表单,有几个用户控件

根据用户选择的内容加载。


感谢你的帮助,你可以发送我的方式。


解决方案

发布ADO连接字符串示例。


et < EA ************* @ yahoo.com>在消息中写道

新闻:ew ************** @ TK2MSFTNGP10.phx.gbl ...

我有一个asp。使用连接字符串的net程序,使用集成的
安全性连接到sql数据库。它在一台服务器上运行良好,但是另一台服务器的
给了我错误,即用户登录失败,NT AUTHORITY / ANONYMOUS LOGON。为什么会这样?
没有理由甚至尝试登录使用NT
Authority / Anonymous登录。 IIS服务器设置为关闭匿名登录,并使用集成安全性,我的程序使用连接
字符串和集成安全性。有时它确实会运行,几乎就像是在
之间进行比赛,在该比赛中,该程序将使用该程序,并且在大约五分钟内它正确连接。但我不知道为什么它会丢失
我在web.config中的连接字符串。正如我所提到的,它在另一台服务器上运行良好,不同之处在于其他服务器强制
用户首先登录。我有一个或两个表单,有几个用户控件
根据用户选择的内容加载。

感谢您提供帮助,我可以发送给您。


它在web.config文件中,然后在我的课程中我把它作为属性:

< appSettings>


< add key =" SQLConnectionString" value =" Data Source = Server6; Initial

Catalog = Server6DB; Integrated Security = SSPI; Persist Security Info = False" />


< / appSettings>


私有mstrSQLConn As String =

ConfigurationSettings.AppSettings(" ; SQLConnectionSt ring


Public ReadOnly属性ConnectionString()As String


获取


返回mstrSQLConn


结束获取


结束财产

" bradley" <所以***** @ microsoft.com>在消息中写道

新闻:O0 ************* @ TK2MSFTNGP15.phx.gbl ...

发布你的ADO样本连接字符串。

et < EA ************* @ yahoo.com>在消息中写道
新闻:ew ************** @ TK2MSFTNGP10.phx.gbl ...

我有一个使用的asp.net程序连接字符串,使用集成的安全性连接到SQL数据库。它在一台服务器上运行良好,但


其他服务器给我的错误是用户登录失败NT AUTHORITY / ANONYMOUS LOGON&qu​​ot; 。为什么会这样?
没有理由甚至尝试登录使用NT
Authority / Anonymous登录。 IIS服务器设置为关闭匿名登录,并使用集成安全性,我的程序使用连接


字符串

具有集成安全性。有时它会运行,几乎就像有一个

之间的比赛,在这个比赛之间登录该程序将在大约五分钟内连接正常。但我不知道为什么它会丢失


我在web.config中的

连接字符串。正如我所提到的,它在另一台服务器上运行良好,不同之处在于其他服务器强制
用户首先登录。我有一个或两个表单,有几个用户控件
根据用户选择的内容加载。

感谢您提供帮助,我可以发送给您。



我在想一个控件可能正在关闭连接而另一个

控件正在尝试用它?这是否意味着我必须在每个表单和每个用户控件上重复

连接过程,以便每个

控件使用它自己的连接??



" et" < EA ************* @ yahoo.com>在消息中写道

新闻:ew ************** @ TK2MSFTNGP10.phx.gbl ...

我有一个asp。使用连接字符串的net程序,使用集成的
安全性连接到sql数据库。它在一台服务器上运行正常,但
其他服务器给我的错误是用户登录失败NT AUTHORITY / ANONYMOUS LOGON。为什么会这样?
没有理由甚至尝试登录使用NT
Authority / Anonymous登录。 IIS服务器设置为关闭匿名登录,并使用集成安全性,我的程序使用具有集成安全性的连接字符串。有时它确实会运行,几乎就像
之间的比赛一样,登录程序将要使用,并且在大约五分钟内正确连接。但我不知道为什么它会丢失我在web.config中的连接字符串。正如我提到的,它在另一台服务器上工作正常,不同之处在于其他服务器强制用户首先登录。我有一个或两个表单,根据用户选择的内容加载了几个用户控件。

感谢您提供的任何帮助。


I have an asp.net program that uses a connection string, using integrated
security to connect to a sql database. It runs fine on one server, but the
other server gives me the error that
"Login failed for user "NT AUTHORITY/ANONYMOUS LOGON". Why would this be?
There is no reason it should even be trying to login to using NT
Authority/Anonymous login. The IIS Server is set to turn off anonymous
logins, and use integrated security, and my program uses a connection string
with integrated security. And sometimes it does run, almost like there''s a
contest between which logon the program is going to use and in about five
minutes it connects properly. But I have no idea why it would be losing the
connection string I have in the web.config. And as I mentioned, it works
fine on another server, the difference being the other server forces the
user to login first. I have one or two forms, with several user controls
that are loaded depending on what the user selects.

Thanks for any assistance you can send my way.


解决方案

Post a sample of your ADO connection string.

"et" <ea*************@yahoo.com> wrote in message
news:ew**************@TK2MSFTNGP10.phx.gbl...

I have an asp.net program that uses a connection string, using integrated
security to connect to a sql database. It runs fine on one server, but the other server gives me the error that
"Login failed for user "NT AUTHORITY/ANONYMOUS LOGON". Why would this be?
There is no reason it should even be trying to login to using NT
Authority/Anonymous login. The IIS Server is set to turn off anonymous
logins, and use integrated security, and my program uses a connection string with integrated security. And sometimes it does run, almost like there''s a contest between which logon the program is going to use and in about five
minutes it connects properly. But I have no idea why it would be losing the connection string I have in the web.config. And as I mentioned, it works
fine on another server, the difference being the other server forces the
user to login first. I have one or two forms, with several user controls
that are loaded depending on what the user selects.

Thanks for any assistance you can send my way.



It''s in the web.config file, then in my class I have it as a property:
<appSettings>

<add key="SQLConnectionString" value="Data Source=Server6;Initial
Catalog=Server6DB;Integrated Security=SSPI;Persist Security Info=False" />

</appSettings>

Private mstrSQLConn As String =
ConfigurationSettings.AppSettings("SQLConnectionSt ring")

Public ReadOnly Property ConnectionString() As String

Get

Return mstrSQLConn

End Get

End Property
"bradley" <so*****@microsoft.com> wrote in message
news:O0*************@TK2MSFTNGP15.phx.gbl...

Post a sample of your ADO connection string.

"et" <ea*************@yahoo.com> wrote in message
news:ew**************@TK2MSFTNGP10.phx.gbl...

I have an asp.net program that uses a connection string, using integrated
security to connect to a sql database. It runs fine on one server, but


the

other server gives me the error that
"Login failed for user "NT AUTHORITY/ANONYMOUS LOGON". Why would this
be?
There is no reason it should even be trying to login to using NT
Authority/Anonymous login. The IIS Server is set to turn off anonymous
logins, and use integrated security, and my program uses a connection


string

with integrated security. And sometimes it does run, almost like there''s


a

contest between which logon the program is going to use and in about five
minutes it connects properly. But I have no idea why it would be losing


the

connection string I have in the web.config. And as I mentioned, it works
fine on another server, the difference being the other server forces the
user to login first. I have one or two forms, with several user controls
that are loaded depending on what the user selects.

Thanks for any assistance you can send my way.




I''m thinking that one control may be closing the connection while another
control is attempting to use it?? Does that mean I have to repeat the
connection process on every form and every user control, so that each
control uses it''s own connection??


"et" <ea*************@yahoo.com> wrote in message
news:ew**************@TK2MSFTNGP10.phx.gbl...

I have an asp.net program that uses a connection string, using integrated
security to connect to a sql database. It runs fine on one server, but the
other server gives me the error that
"Login failed for user "NT AUTHORITY/ANONYMOUS LOGON". Why would this be?
There is no reason it should even be trying to login to using NT
Authority/Anonymous login. The IIS Server is set to turn off anonymous
logins, and use integrated security, and my program uses a connection
string with integrated security. And sometimes it does run, almost like
there''s a contest between which logon the program is going to use and in
about five minutes it connects properly. But I have no idea why it would
be losing the connection string I have in the web.config. And as I
mentioned, it works fine on another server, the difference being the other
server forces the user to login first. I have one or two forms, with
several user controls that are loaded depending on what the user selects.

Thanks for any assistance you can send my way.



这篇关于防止以'NT AUTHORITY \ANONYMOUS LOGON'登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆