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
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
b988871..d9710f7 master -> master
Date: Tue Aug 4 09:33:07 2015 -0400
Pushed patch to upstream repo, thanks William!
Milestone lib389 1.0 deleted
to comment on this ticket.