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 847267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:45:19+00:00 2026-05-15T06:45:19+00:00

I have a OpenLDAP Database and it holds some project objects that look like

  • 0

I have a OpenLDAP Database and it holds some project objects that look like

dn: cn=Proj1,ou=Project,ou=ua,dc=org
cn: Proj1
objectClass: top
objectClass: posixGroup
member: 001ag
member: 002ag
System: ABEL
System: PCx
Budget: ABEL:1000000:0.3
Budget: PCx:300000:0.3

One can see that the Budget attribute is a “:”-separated string, where the first part holds the name of the system the budget is for, the second part holds some budget (which may change every month) and the last entry is a conversion factor for the budget of that system.

Seeing this, I thought this is bad database design, since attribute values should always be atomic. But how can I improve that in LDAP, so that I can do a direct ldapsearch or a direct ldapmodify of the budget of System “ABEL” instead of writing a script, that will have to parse and split the “:”-separated string?

  • 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-15T06:45:20+00:00Added an answer on May 15, 2026 at 6:45 am

    It’s a good idea to break things up into groups as much as you can until you get down to individually distinguishable elements, which in your case would be Systems. As you’ve realized, having the smallest element in the database be Project is a problem when you have more than one System.

    I would put a sub-group for each project inside the main Project group, aka:

    - ou=Project
       + ou=proj1
       + ou=proj2
       + ou=proj3
    

    Inside each of these you can have an object for “member” or “System”, whichever is the more distinguishable attribute. For the sake of an example I’ll assume “member” is the better choice. Following this idea, inside each sub-group you would have objects like this:

     - ou=Project
        - ou=proj1
           - dn: cn=sys1,ou=proj1,ou=Project,ou=ua,dc=org
             cn: sys1
             objectClass: top
             objectClass: posixGroup
             member: 001ag
             System: ABEL
             Budget: 1000000:0.3
    
           - dn: cn=sys2,ou=proj1,ou=Project,ou=ua,dc=org
             cn: sys2
             objectClass: top
             objectClass: posixGroup
             member: 002ag
             System: PCx
             Budget: 300000:0.3
       + proj2
       + proj3
    

    Now each system is its own entity, but the project is still grouped together as a whole.

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

Sidebar

Ask A Question

Stats

  • Questions 425k
  • Answers 425k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The Big Picture There are two issues at play here:… May 15, 2026 at 12:09 pm
  • Editorial Team
    Editorial Team added an answer If you're using jquery.validate.js when you configure validate and add… May 15, 2026 at 12:09 pm
  • Editorial Team
    Editorial Team added an answer In your code you had Point point = e.GetPosition(_canvas); This… May 15, 2026 at 12:09 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.