Project

General

Profile

Actions

Enhancement #164

open

Support named paths

Added by Marc Dequènes over 13 years ago. Updated over 13 years ago.

Status:
New
Priority:
Normal
Category:
LDAP :: Abstraction
Target version:
Start date:
2010-10-24
Due date:
% Done:

0%

Estimated time:
Patch Available:
No
Found in Versions:
Confirmed:
No
Branch:
Help Needed:

Description

It would be useful to have names for paths, possibly with parameters, in order to avoid using DNs, and hide this complexity to the user. It would also help naming objects with the same characteristics but not the same place in the tree (like many organisationalUnit objects).

It would be nice to have absolute and relative paths. For example :
  • users -> ou=People,dc=milkypond,dc=org
  • own_domains => ou=Domains,...
  • spc_accounts -> ou=SpecialAccounts,...
    So we could create a new user in 'users', a new domain in 'individual/<user>:own_domains', a new special account in 'entity/<entity>:spc_accounts', ...

Nevertheless, 'users' is also 'unit/people', which is somewhat redondant, event if using an object name is not enough to get a unique path (as it is equivalent to a deep search which can give several results). So, we need to find a common solution.

Actions #1

Updated by Marc Dequènes over 13 years ago

Let's say the first component is a search, and all other are just on step in the tree (so one could use 'root' as the search to do all the steps if needed). This way any path can be described, as long as all needed objects are declared. It would give examples like :
  • root:unit/People
  • individual/duck
  • individual/duck:unit/Domains:domain/toto.net
  • entity/hurdfr:unit/Domains:domain/hurdfr.org:system_account/hf-wiki
It is quite lenghty, so perhaps having ":" for one step and "::" for sub-search could help reduce. It would not ensure unicity in all cases, but may be sufficient. It would give:
  • individual/duck::domain/toto.net
  • entity/hurdfr::domain/hurdfr.org:system_account/hf-wiki
    (with maximum reduction depending on what is enforced-uniq at the database level, so 'domain/hurdfr.org' and probably 'system_account/hf-wiki' may already be uniq in this case)
Actions #2

Updated by Marc Dequènes over 13 years ago

With this method we can create new objects in a simpler way, without specifying the parent as an extra argument.

We also need to think about search results: what object name/path would be given back ?

Finding an object could be quite costly, but one-steps could allow calulating part of the final DN and simplify a bit. Handle customization, like proposed in #146, would probably cause problems.

Actions

Also available in: Atom PDF