在AD LDS

时间:2017-09-08 05:30:03

标签: ldap adlds

在AD LDS中实现用户密码更新时遇到问题:调用connection.Modify()时会抛出以下错误。 有没有人有ADLDS及其错误的经验?

Operations Error:00002077: SvcErr: DSID-03380736, problem 5012 (DIR_ERROR), data 8237

代码如下:

        var entry = GetUserEntry(userName, AttributeList(AttributeTypes.Basic));
        //create the ldap modifications
        var modifications = new LdapModification[2];
        var deletePassword = new LdapAttribute(application.UserPasswordAttribute, oldPassword);
        modifications[0] = new LdapModification(LdapModification.DELETE, deletePassword);            

        var addPassword = new LdapAttribute(application.UserPasswordAttribute, newPassword);
        modifications[1] = new LdapModification(LdapModification.ADD, addPassword);

        //perform the modification
        connection.Modify(entry.DN, modifications);

entry.DN包括:" CN = user1,CN = Users,CN = sampleInstance,DC = local,DC = com"。 顺便说一句,我使用的是SSL连接。

0 个答案:

没有答案