草庐IT

Security-Active

全部标签

c# - 无法加载文件或程序集 'System.Security.Principal.Windows'

解决方案已经编译成功,但是我在项目中添加一个已经存在的类文件后,出现了这个错误:Thespecifiedtaskexecutable"csc.exe"couldnotberun.Couldnotloadfileorassembly'System.Security.Principal.Windows,Version=4.0.1.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a'oroneofitsdependencies.Thesystemcannotfindthefilespecified.MvcApplicationRegister我

c# - 在 .NET 的 Active Directory 组中添加和删除用户

我正在编写以下方法以在C#中的事件目录中添加和删除用户。voidAddUserToGroup(stringuserId,stringgroupName);voidRemoveUserFromGroup(stringuserId,stringgroupName);如何最好地实现这些方法?这是来自CodeProject的一些代码。不过,我看不到在这些示例中指定AD服务器的位置?(它是否在使用LDAP协议(protocol)时由.NET框架隐式提供?)。这些例子值得效仿吗?publicvoidAddToGroup(stringuserDn,stringgroupDn){try{Directo

c# - 通过 LDAP 连接到 Active Directory

我想使用C#连接到我们的本地ActiveDirectory。我找到了thisgooddocumentation.但我真的不知道如何通过LDAP连接。有人可以解释一下如何使用所询问的参数吗?示例代码:staticDirectoryEntrycreateDirectoryEntry(){//createandreturnnewLDAPconnectionwithdesiredsettingsDirectoryEntryldapConnection=newDirectoryEntry("rizzo.leeds-art.ac.uk");ldapConnection.Path="LDAP://O

c# - System.Security.SecurityException : The source was not found, 但无法搜索部分或所有事件日志。无法访问的日志:安全

我正在尝试创建一个Windows服务,但是当我尝试安装它时,它回滚给我这个错误:System.Security.SecurityException:Thesourcewasnotfound,butsomeoralleventlogscouldnotbesearched.Inaccessiblelogs:Security.我不知道这意味着什么-我的应用程序只有最低限度,因为我只是先测试一下。我的安装程序代码:namespaceWindowsService1{[RunInstaller(true)]publicpartialclassProjectInstaller:System.Conf

c# - 为什么完全使用 C# 类 System.Random 而不是 System.Security.Cryptography.RandomNumberGenerator?

为什么有人会使用来自System.Random的“标准”随机数生成器?完全不用总是使用System.Security.Cryptography.RandomNumberGenerator中的加密安全随机数生成器(或其子类,因为RandomNumberGenerator是抽象的)?NateLawson在13点11分的GoogleTechTalk演讲“CryptoStrikesBack”中告诉我们不要使用来自Python、Java和C#的“标准”随机数生成器,而是使用加密安全版本。我知道随机数生成器的两个版本之间的区别(参见question101337)。但是有什么理由不总是使用安全随机数

linux - Docker 未启动 "could not delete the default bridge network: network bridge has active endpoints""

有什么解决办法吗?Errorstartingdaemon:Errorinitializingnetworkcontroller:couldnotdeletethedefaultbridgenetwork:networkbridgehasactiveendpoints操作系统:Debian8Docker版本:1.9.0,构建76d6bc9ifconfig输出:eth0Linkencap:EthernetHWaddre0:3f:49:a0:9d:b4inetaddr:192.168.0.104Bcast:192.168.0.255Mask:255.255.255.0inet6addr:fe

linux - Docker 未启动 "could not delete the default bridge network: network bridge has active endpoints""

有什么解决办法吗?Errorstartingdaemon:Errorinitializingnetworkcontroller:couldnotdeletethedefaultbridgenetwork:networkbridgehasactiveendpoints操作系统:Debian8Docker版本:1.9.0,构建76d6bc9ifconfig输出:eth0Linkencap:EthernetHWaddre0:3f:49:a0:9d:b4inetaddr:192.168.0.104Bcast:192.168.0.255Mask:255.255.255.0inet6addr:fe

go - 来自 LDAP 的强制性 Active Directory 属性

无法从LDAP创建AD条目,因为我缺少必需的属性。2019/02/0815:50:29LDAPResultCode65"ObjectClassViolation":00002077:UpdErr:DSID-03051277,problem6002(OBJ_CLASS_VIOLATION),data0当您丢失或尝试添加不正确的属性值时会出现此错误。我在golang中使用gopkg.in/ldap.v3库。我可以删除条目以便连接正常,但我无法添加它们。这是我要添加的属性列表:ar.Attribute("cn",[]string{"test"})ar.Attribute("instanceT

security - 通过 Internet 将加密文件从客户端安全地发送到服务器的行业标准是什么?

关闭。这个问题不符合StackOverflowguidelines.它目前不接受答案。这个问题似乎与helpcenter中定义的范围内的编程无关。.关闭8年前。Improvethisquestion我目前正在构建一个用Go编写的文件系统,它以加密格式将文件从客户端发送到服务器。我对信息传输协议(protocol)很陌生。我想将有关用户的信息(用户名、使用bcrypt散列的密码)发送到服务器,然后服务器将打开与客户端的某种类型的安全session,服务器和客户端可以在其中发送和接收文件数据和元数据。这应该在服务器上保留客户端文件的备份,并使用该用户唯一的对称key(使用AES256或类似

security - net/smtp 是否以纯文本形式发送凭据?

我正在看这个例子。http://golang.org/pkg/net/smtp/#example_PlainAuthpackagemainimport("log""net/smtp")funcmain(){//Setupauthenticationinformation.auth:=smtp.PlainAuth("","user@example.com","password","mail.example.com")to:=[]string{"recipient@example.net"}mesg:=[]byte("Thisistheemailbody.")err:=smtp.SendM