Closed sindreij closed 6 years ago
Right, Modify (and Add) don't allow binary values. Try 7545f79385f415e1847088cf6a2588b8ffda78b6; it just uses AsRef<[u8]>
instead of AsRef<str>
, which shouldn't break anything else. If that works, I'll change the Add operation in the same way.
Thanks, I think that will work. I am in the process now of changing my code from using libldap to this library, and when I get it to work, I will try that branch.
I said modify
, but actually it was add()
I used binary values for. I tested my code with your changes to support [u8]
and it works great!
Hello. Great to see a pure rust LDAP library.
I have an issue. I want to set a password in Active Directory, and for that I need to send the password encoded using utf-16 [1]. As far as I can tell, that is not possible using this library, since
modify()
takes aAsRef<str>
, and astr
only can have utf-8. So I need some way of inputing aVec<u8>
. Is it maybe possible to encode theVec<u8>
as aString
?If indeed this needs a code change, do you want me to create a PR?