1

i'm facing a strange LDAP configuration. Some admin, just created users as OU in OpenLDAP. To do it, the admin, changed some attributes in the OU like posixAccount, inetOrgPerson, organizationalPerson and person.. my question is what is the advantage to do it? It works, but i would like to know the drawbacks about it.

3 Answers 3

1

Creating users as container objects (assuming that is really what happened, as opposed to changing the naming attribute from cn= to ou=, which is basically a non-event) does have some interesting advantages.

There was a PBX system (I think Nortel, but I do not recall now) that when it used LDAP for storing users and phone info it created the users as container objects.

This breaks all sorts of things but the gain is that the User object can contain configuration objects. This allows a different logical grouping than is usually handled.

Instead of adding attributes for configuration, or assigning the equivalence of group membership to some configuration object, it lets you store the configuration as objects.

I think Citrix has an approach where it does this as well, to store some personalized settings.

3

For one thing, the OU (organizationalUnit) doesn't have the shadowAccount objectClass, for expiring passwords/accounts, etc.

Where as, with a regular account, you get all the attributes that go with each of these objectClasses: person ,organizationalPerson, inetOrgPerson, posixAccount, shadowAccount

These are defined in: /etc/openldap/schema/

Can you describe your environment a little more?

1
  • so you mean, that maybe create LDAP Users as OU are good to avoid to have the password shadow controls shadow expire, shadowmin, shadownmax and so on?
    – VP.
    May 28, 2010 at 11:54
2

In a generic case, you can modify the schema as you want. It can be ou=john, user=john, unicorn=john, etc; but it is against convention. I'd say that the admin did nobody a favor.

2
  • i know that i can, i just want to know which advantages do i have doing it.. i cannot see any, but maybe i'm missing something.
    – VP.
    May 28, 2010 at 11:54
  • 1
    There realy are no advantages.
    – Konrads
    Jun 2, 2010 at 8:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .