dsbenghe / Novell.Directory.Ldap.NETStandard

.NET LDAP client library for .NET Standard >= 2.0, .NET Core >=1.0, NET5/NET6/NET7/NET8 - works with any LDAP protocol compatible directory server (including Microsoft Active Directory).
MIT License
558 stars 153 forks source link

change password? #220

Closed zsu closed 1 year ago

zsu commented 1 year ago

Hi, I was using the following codes to change password in the old version, but the LdapAttribute doesn't have the sbyte overload anymore. What is the correct way to set/change password now? var encodedBytes = SupportClass.ToSByteArray(Encoding.Unicode.GetBytes($"{password}")); var attributePassword = new LdapAttribute("unicodePwd", encodedBytes);