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

  • Home
  • SEARCH
  • 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 424575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:17:37+00:00 2026-05-12T19:17:37+00:00

I am currently programming a tool (in ANSI C) for my company which reads

  • 0

I am currently programming a tool (in ANSI C) for my company which reads from an LDAP Directory and outputs all the data in a specific format (that is: the name format of our old proprietary directory db).
This is then handled by another tool which reads the output and so on … don’t ask.

Anyways, for my “ldaplist …” command I need to print out all attributes belonging to that entry, even those which have no value set.

Unfortunately ldap_first_attribute / ldap_next_attribute does not return them, only those which have a value set, and I can’t find an ldap_search_ext_s parameter or an ldap_set_option switch that would help me here.
Hope one of you knows how to do that.

Thanks for your time and help in advance!

  • 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-12T19:17:37+00:00Added an answer on May 12, 2026 at 7:17 pm

    I have not used ldap_search_ext_s so I don’t know its options and I can’t tell you a solution based on using this function. However I would like to suggest one idea.

    1. You need to retrieve a schema from an LDAP server. DN of the schema entry is in the root node. After that you have to retrieve the schema entry and its “objectClasses” attribute. It contains specifications of each class and its allowed attribute types (the schema).

    2. When you run LDAP search you normally get zero, one or more entries. Each entry has an objectClass attribute. Read its values which are names of object classes. And then find each object classs in the schema and retrieve its attribute types. If in the returned entry there is no one or a few attributes it means that either an attribute doesn’t have any values or you are not allowed to read the attribute in this entry.

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

Sidebar

Related Questions

I am currently programming a scheduling application which loosely based on iCalendar standard. Does
I'm currently reading a great book called 'Programming Collective Intelligence' by Toby Segaran (which
Sometimes procedural programming is absolutely unavoidable when processing data. I am currently working on
I am currently programming an app which has a client database in it. I
I am currently programming a python-based datagram-Server using threads and all of that. I
I'm currently programming a UDP application which allows clients to login. After that, their
This is my first question on stackoverflow! I'm currently programming a steamcommunity crawler, which
i'm currently programming a board game (8x8) in which I need to develop an
I'm currently programming an application in Silverlight which need to have a control to
I'm currently programming a client application and I'm wondering whether I should use the

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.