- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
对于任何可以提供帮助的人 - 我的代码在 Asp/Net Core 2.0
中运行良好,可以使用 Novell.Directory.Ldap.NETStandard (2.3.8) 添加条目到 LDAP
库。我还更新了属性,一切都没有错误。但是,当我更新密码时,它不需要。我无法使用刚刚通过代码设置的相同密码登录。我想知道是否有人遇到过这个问题,我是否需要以特殊方式对其进行编码和/或执行任何其他步骤?
这是我的代码的样子 - 非常简单,而且不会导致错误:
modList.Add(new LdapModification(LdapModification.REPLACE, new LdapAttribute("pwdLastSet", "-1")));
modList.Add(new LdapModification(LdapModification.REPLACE, new LdapAttribute("userPassword", newPassword)));
LdapModification[] mods = new LdapModification[modList.Count];
mods = (LdapModification[])modList.ToArray(typeof(LdapModification));
string dn = String.Format("CN={0},CN={1},DC=WPD,DC=Local", displayName, "Users");
_conn.Modify(dn, mods);
谢谢!克雷格
最佳答案
我没有使用“userPassword”属性,而是使用了“unicodePwd”属性并更改了编码,并且成功了。最重要的事情是用双引号将密码括起来。
string password = "\"myNewStrongPassword\"";
var encodedBytes = SupportClass.ToSByteArray(Encoding.Unicode.GetBytes(password));
var attributePassword = new LdapAttribute("unicodePwd", encodedBytes);
ldapConnection.Modify(YOUR_DISTINGUISHED_NAME, new LdapModification(LdapModification.REPLACE, attributePassword));
关于c# - 更改密码对 Asp.Net Core 2 的 Novell LDAP 修改不生效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48285865/
我在一家 .NET/MSSQL 商店工作,该商店无法支持运行 Novell 的客户,部分原因是我们没有 Novell(或没有资金),部分原因是我们没有具有 Novell 经验的人。这个问题可以很容易地
While loading : File "game/script.rpy", line 7, in script "Welcome." File "renpy/common/000w
我正在尝试使用 Novell 发布的库 (Novell.Directory.Ldap)。版本 2.1.10。 到目前为止我做了什么: 我测试了与应用程序 (LdapBrowser) 的连接,它正在运行
当我从 visual studio 2010 创建新的 android 项目时,它会显示以下消息。 未找到 C:\Program Files\MSBuid\Novell\Novell.MOnoDroi
我的公司正在考虑在即将推出的产品中使用 Mono,因此我们正在考虑 12,995 美元 Mono Kickstart来自 Novell 的支持。 有人用过吗,值得吗? 最佳答案 如果我是你,我可能会开
我想使用 java 的预定义方法java.util.UUID:randomUUID() 用于046b6c7f-0b8a-43b9-b35d-6489e6daee91 代替 CN,但是当我在我的政策中使
我有一个 Java 应用程序,它有自己的用户名和密码表。我们正在尝试升级系统,以便用户可以简单地使用他们的 groupwise/novell 帐户登录,本质上是同步他们的帐户。 验证他们的用户名和密码
这可能吗,或者有 API 吗? Novell 的网站上有一个 GroupWise API,但我没有看到任何发送即时消息的方法,只有电子邮件。 我只想创建一个 Java 程序,该程序将向使用 Novel
我刚刚在我的应用程序中实现了 Novell eDirectory。由于我们的应用程序支持 Microsoft ActiveDirectory,因此我想阻止一个额外的配置参数,如“Novell yes/
如何在 J2SE 中使用 Novell eDirectory 服务? JNDI 能与 eDirectory 一起工作吗?我可以使用哪些资源来了解您建议的任何图书馆? 我现在只想尝试通过 LDAP 检索
我需要让用户在 Active Directory 中查询 .Net Core 中的名称。 所以我正在构建一个 Active Directory 搜索 Web API 服务。 我能够连接到 bind 语
我不确定我问的问题是否正确,但有人告诉我 SQL Server 不能在 Novell 服务器上运行。这是真的?如果是,为什么不呢? 最佳答案 您的问题是您的目录服务,无论是 Microsoft 的 A
有问题的问题可以在 http://projecteuler.net/problem=14 找到 我正在尝试我认为新颖的解决方案。至少不是蛮力。我的解决方案基于两个假设: 1) 迭代序列的次数越少,得到
我目前正在尝试使用 C# 在 SSL 中连接到我的 Novell LDAP。起初,我用 authentication = None 尝试了完全相同的操作,并且效果很好。 我的域名是这种形式:LDAP:
我是 LDAP 开发的新手,所以请原谅我对这个主题的无知。我在一个项目中,我需要使用 .NET 在 Novell eDirectory 中管理组和组成员身份。我发现了几个在 Active Direct
我想从 LDAP 的控件 oid 中获取值:例如,当我使用 Linux ldapsearch 时: ldapsearch -H ldap://host:port -x -wsecret -D "cn=
对于任何可以提供帮助的人 - 我的代码在 Asp/Net Core 2.0 中运行良好,可以使用 Novell.Directory.Ldap.NETStandard (2.3.8) 添加条目到 LDA
这是我第一次使用 LDAP 和 Active Directory。我必须使用 .NetCore 创建一个 Web api,该 API 必须使用 ActiveDirectory (WindowsServ
这样导入的证书: certmgr /add /v /c /ctl "selfsignedroot.cer" /s /r localMachine root certmgr /add /v /c /ct
我按照所有说明进行操作,并成功完成安装。在 MonoDevelop 中,我去:New Solution -> C# -> Mono for Android -> Mono for Android Ap
我是一名优秀的程序员,十分优秀!