#48238 Add attributetype and objectclass query mechanisms in lib389
Closed: Fixed None Opened 4 years ago by firstyear.

This adds a number of functions to help work with the schema of a 389 instance. It adds wrappers to fetch all objectclasses and attributetypes, as well as query interfaces. The object class query just fetches the single object class you have requested. The attributetype query will not only retrieve the attribute type, but also the set of objectclasses that MAY and MUST contain it. This allows programmatic discovery of what objectclasses access what attributes. This is extremely useful in administration tools I have developed externally, and would like this to become a part of lib389 as it will help to enrich the tools and tests of 389ds.

Looks good, thanks for the contribution!

git merge ticket48238
Updating b988871..d9710f7
lib389/schema.py | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
tests/schema_test.py | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 114 insertions(+)
create mode 100644 tests/schema_test.py

git push origin master
To ssh://git.fedorahosted.org/git/389/lib389.git
b988871..d9710f7 master -> master

commit d9710f7f4ac84dcda13db7ad18e21986f96e9cbc
Date: Tue Aug 4 09:33:07 2015 -0400

Pushed patch to upstream repo, thanks William!

Milestone lib389 1.0 deleted

Login to comment on this ticket.