在网络路径上设置ID和密码 [英] Set id and password on network path

查看:115
本文介绍了在网络路径上设置ID和密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在app.conifg中设置网络路径上的ID和密码这可能吗?

i want to set id and password on network path in app.conifg is this possible?

like this

<add key="abcpath" value="\\122.324.234\Logs\asdslog" />





我尝试过:



这可以设置id和密码吗?



What I have tried:

in this can i set id and password?

推荐答案

嗯......是的,这是可能的。

App.config文件可以包含任何内容,因此id和密码可以存储在那里。



但是... storin g这真的无关紧要,只是存储这些数据并不会自动使用它来访问共享 - 您仍需要在应用程序中读取它们并在访问共享时将其作为身份验证详细信息提交。



您还需要查看安全性:App.config是一个人工可读的文件,因此在其中存储密码存在相当大的安全风险。
Well ... yes, it's possible.
An App.config file can contain anything, so the id and password can be stored in there.

But...storing it is really irrelevant as just storing such data in there doesn't use it automatically to access shares - you will still need to read them out in your app and submit them as Authentication detail when you access the share.

You also need to look at security: App.config is a humanly readable file, so storing passwords in there is a fairly major security risk.


这篇关于在网络路径上设置ID和密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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