安全 [英] security

查看:64
本文介绍了安全的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,全部!


如何检查我是否可以访问特定的网络资源?


或者,用户''域名和密码检查他或她是否可以访问

网络资源?


谢谢。

Hello, All!

How can I check if I have access to specific network resource?

Or, having user''s domain name and password check if he or she has access to
network resource?

Thanks.

推荐答案



" ivang" < 4 ** @ ciklum.net>写在消息

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

"ivang" <iv**@ciklum.net> wrote in message
news:OL**************@TK2MSFTNGP10.phx.gbl...
你好,全部!

如何检查我是否可以访问特定的网络资源?

或者,如果用户的域名和密码是否有权访问,请检查用户的域名和密码
到网络资源?

谢谢。
Hello, All!

How can I check if I have access to specific network resource?

Or, having user''s domain name and password check if he or she has access
to
network resource?

Thanks.



不确定你叫什么网络资源?

如果它是远程文件服务器,请尝试使用资源(fi。打开文件)和

捕获访问被拒绝。异常就像你对本地档案一样。


威利。


Not sure what are you calling a network resource?
If it''s a remote file server, try to use the resource (fi. open a file) and
catch the "access denied" exception just like you do for a local file.

Willy.


你好,威利!

感谢您的回复。


是的,它是文件服务器。但我无法使用文件访问功能检查访问权限,

当我使用模拟功能时,这不起作用(模拟令牌

无法访问网络共享)。


WDM> " ivang" < 4 ** @ ciklum.net>在消息中写道

WDM>新闻:OL ************** @ TK2MSFTNGP10.phx.gbl ...

??>>大家好!

??>>

??>>如何检查我是否可以访问特定的网络资源?

??>>

??>>或者,用户的域名和密码检查他或她是否具有

??>>访问网络资源?

??>>

??>>谢谢。

??>>

WDM>不确定你叫什么网络资源?

WDM>如果它是远程文件服务器,请尝试使用该资源(即打开

WDM>文件)并捕获访问被拒绝文件。例外情况就像你做的那样

WDM>本地文件。

最诚挚的问候,ivang。电子邮件: iv ************ @ hotmail.com
Hello, Willy!

Thanks for reply.

Yes, it''s file server. But i can''t check access using file access functions,
this doesn''t work when I use impersonation feature (impersonated tokens
doesn''t have access to network shares at all).

WDM> "ivang" <iv**@ciklum.net> wrote in message
WDM> news:OL**************@TK2MSFTNGP10.phx.gbl...
??>> Hello, All!
??>>
??>> How can I check if I have access to specific network resource?
??>>
??>> Or, having user''s domain name and password check if he or she has
??>> access to network resource?
??>>
??>> Thanks.
??>>
WDM> Not sure what are you calling a network resource?
WDM> If it''s a remote file server, try to use the resource (fi. open a
WDM> file) and catch the "access denied" exception just like you do for a
WDM> local file.
With best regards, ivang. E-mail: iv************@hotmail.com




" ivang" < 4 ************ @ hotmail.com>在消息中写道

news:ea ************** @ TK2MSFTNGP15.phx.gbl ...

"ivang" <iv************@hotmail.com> wrote in message
news:ea**************@TK2MSFTNGP15.phx.gbl...
你好,威利!

感谢您的回复。

是的,它是文件服务器。但我无法使用文件访问功能检查访问权限,
当我使用模拟功能时,这不起作用(模拟令牌
根本无法访问网络共享) )。
Hello, Willy!

Thanks for reply.

Yes, it''s file server. But i can''t check access using file access
functions,
this doesn''t work when I use impersonation feature (impersonated tokens
doesn''t have access to network shares at all).




不,他们不这样做,但如果你在调用

LogonUser(NETWORK_CLEARTEXT)时指定了正确的logontype,你将获得一个直接令牌网络

访问权限!

如果你像我一样并且不喜欢冒充,你只需要建立

a网络登录会话(使用记录)使用净使用命令(来自

命令行的登录脚本),或通过调用Win32 API NetUseAdd通过

PInvoke。


Willy。



No they dont, but if you specify the correct logontype when calling
LogonUser (NETWORK_CLEARTEXT) you will get a direct token with network
access privileges!
If you''re like me and don''t like impersonation, you simply have to establish
a network logon session (use record) using the "net use" command (from the
command line a logon script), or by calling Win32 API NetUseAdd through
PInvoke.

Willy.


这篇关于安全的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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