inejge / ldap3

A pure-Rust LDAP library using the Tokio stack
Apache License 2.0
220 stars 38 forks source link

Integration for Binary Attributes #124

Closed celidur closed 5 months ago

celidur commented 5 months ago

We can't create user with a binary attribute like picture, we also can't modify it

inejge commented 5 months ago

You can, by supplying add() or modify() with attribute names and values converted to &[u8]. See #35.

celidur commented 5 months ago

ok thank you I'll try

celidur commented 5 months ago

I've make this: Mod::Replace(UserAttribute::Picture.as_bytes(), HashSet::from([picture.as_slice()]))

It's defined correctly, but in the attribute, not in the binary attribute in the LDAP.