Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4554228
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:03:39+00:00 2026-05-21T17:03:39+00:00

I develop an LDAP interface program which can modify person attributes, but when I

  • 0

I develop an LDAP interface program which can modify person attributes, but when I try to modify the value of the photo attribute with an url string, I have this exception :

org.springframework.ldap.InvalidAttributeValueException: [LDAP: error code 21 – photo: no validator for syntax 1.3.6.1.4.1.1466.115.121.1.23];

I think I must send a JPG photo file to ldap but I don’t know how to do it…

Anyone has an idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T17:03:40+00:00Added an answer on May 21, 2026 at 5:03 pm

    First, when you encounter such an error with a syntax OID, you can submit it to the OID repository. Here it will give you the following information “Values in this syntax are encoded as if they were octet strings”.
    This means that you have to encode your JPG or PNG file in Base64 and set the attribute with this value (in fact an array).

    Second, in my understanding, there are 3 attributes to store photo-Data jpegPhoto, Photo and thumbnailPhoto. But for me it’s better to store photos on a file system or a database and put in the Directory ans URL or something like that.

    You’ll find here a tutorial to handle them with java.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying develop an application (C#) to query an LDAP server. I don't
LDAP authentication in different J2EE servers is different, unfortunately. Eg. If I develop a
Develop a C program for file-copy where two processes work together to complete the
I develop an application which has several tasks like report generator, show history etc,
I'm learning to develop apps for Iphone. I follow a book by Apress which
i'm trying to develop an application but then these warnings popped out. I have
I want to develop ASP.NET MVC site but I am confused about the use
I want to develop a few products for a defined Plone install/version, which I
I develop exclusively on VMs. I currently run Boot Camp on a MacBook Pro
I develop an extension module for Guile, written in C. This extension module embeds

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.