famedly / famedly-sync

GNU Affero General Public License v3.0
4 stars 0 forks source link

Allow binary/base64 attribute type inputs #3

Closed tlater-famedly closed 2 months ago

tlater-famedly commented 3 months ago

LDAP supports encoding attributes as base64 according to this spec: https://www.ibm.com/docs/en/i/7.4?topic=ldif-rfc-2849-input

Such values are marked by having two : instead of just the one in LDAP server output. We must assert that we support this, as clients use this.

We should implement tests to ensure this is handled appropriately.

tlater-famedly commented 3 months ago

@nikzen notes that openldap supports this simply by supplying base64 encoded values. We need to figure out how ldap3 interacts with this and write a test for it, at least.

tlater-famedly commented 3 months ago

Yep, turns out we don't currently support this, but @emgrav notes ldap3 does support these values, it just keeps them in a separate struct field.