[GH-ISSUE #435] extra colon in avatar/jpegphoto return #165

Closed
opened 2026-02-27 08:15:37 +03:00 by kerem · 2 comments
Owner

Originally created by @LiFiCode on GitHub (Feb 7, 2023).
Original GitHub issue: https://github.com/lldap/lldap/issues/435

the command

ldapsearch -H ldap://xxx -D 'uid=xxx,ou=people,dc=xxx,dc=xx' -LLL 'uid=xxx' uid cn sn displayname mail jpegphoto memberOf -o ldif-wrap=no -b 'ou=people,dc=xxx,dc=xx'  -w xxxxxx

returns

dn: uid=xxx,ou=people,dc=xxx,dc=xx
uid: xxx
cn: xxx
sn: xxx
displayname: xxx
mail: xxx
jpegphoto:: /xxx

as you can see - the jpegphoto has two colons "::"

Originally created by @LiFiCode on GitHub (Feb 7, 2023). Original GitHub issue: https://github.com/lldap/lldap/issues/435 the command ``` ldapsearch -H ldap://xxx -D 'uid=xxx,ou=people,dc=xxx,dc=xx' -LLL 'uid=xxx' uid cn sn displayname mail jpegphoto memberOf -o ldif-wrap=no -b 'ou=people,dc=xxx,dc=xx' -w xxxxxx ``` returns ``` dn: uid=xxx,ou=people,dc=xxx,dc=xx uid: xxx cn: xxx sn: xxx displayname: xxx mail: xxx jpegphoto:: /xxx ``` as you can see - the jpegphoto has two colons "::"
kerem closed this issue 2026-02-27 08:15:37 +03:00
Author
Owner

@nitnelave commented on GitHub (Feb 7, 2023):

That is the correct output for a base-64 encoded value, see man ldif: https://man7.org/linux/man-pages/man5/ldif.5.html

Note that this behavior is entirely within ldapsearch: LLDAP returns the value of the raw bytes, it's just ldapsearch that decides to convert it to base 64 for display.

(LLDAP does the same thing for the GraphQL API, but that's unrelated)

<!-- gh-comment-id:1420966402 --> @nitnelave commented on GitHub (Feb 7, 2023): That is the correct output for a base-64 encoded value, see `man ldif`: https://man7.org/linux/man-pages/man5/ldif.5.html Note that this behavior is entirely within `ldapsearch`: LLDAP returns the value of the raw bytes, it's just `ldapsearch` that decides to convert it to base 64 for display. (LLDAP does the same thing for the GraphQL API, but that's unrelated)
Author
Owner

@LiFiCode commented on GitHub (Feb 7, 2023):

thank you very much for your quick answer.
i spent hours finding the source of the missing avatars - oh well...

<!-- gh-comment-id:1420980795 --> @LiFiCode commented on GitHub (Feb 7, 2023): thank you very much for your quick answer. i spent hours finding the source of the missing avatars - oh well...
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/lldap-lldap#165
No description provided.