Skip to content

DistinguishedName serialization/deserialization #3

@Iizuki

Description

@Iizuki

Summary

Hey, and sorry for bothering you again @taladar.

The serialization and deserialization implementatitons on DistinguishedName weren't quite what I expected.

Expectation

I expected that DistinguishedName would deserialize from the usual string DN representation like "OU=Unit,DC=test,DC=example,DC=org", and also serialize into one.

Actual behavior

Trying to deserialize a string DN will result an error:

invalid type: string "OU=Unit,DC=test,DC=example,DC=org", expected struct DistinguishedName

The derived implementation treats DistinguishedName as a struct with one list type field (which it is).

Solution

Is this behavior intentional? Could we add serde implementations for the familiar string DNs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions