This is an automated email from the git hooks/post-receive script.
spichugi pushed a commit to branch 389-ds-base-1.4.0
in repository 389-ds-base.
The following commit(s) were added to refs/heads/389-ds-base-1.4.0 by this push:
new 7c71e76 Issue 50390 - Add Managed Entries Plug-in Config Entry schema
7c71e76 is described below
commit 7c71e76286db98cdc44e266ee27d824023cca806
Author: Simon Pichugin <spichugi(a)redhat.com>
AuthorDate: Fri May 17 19:20:03 2019 +0200
Issue 50390 - Add Managed Entries Plug-in Config Entry schema
Description: Add AttributeTypes and an ObjectClass to Managed Entries
Plug-in Configuration entry schema.
Fix MEPConfigs(DSLdapObjects) accordingly.
https://pagure.io/389-ds-base/issue/50390
Reviewed by: mreynolds (Thanks!)
(cherry picked from commit 31c89d3bbd0bcfea71b4e6be912ad4bb9f43e171)
---
ldap/schema/10mep-plugin.ldif | 37 +++++++++++++++++++++++++++++++++++++
src/lib389/lib389/plugins.py | 7 ++++---
2 files changed, 41 insertions(+), 3 deletions(-)
diff --git a/ldap/schema/10mep-plugin.ldif b/ldap/schema/10mep-plugin.ldif
index d765049..a1488c5 100644
--- a/ldap/schema/10mep-plugin.ldif
+++ b/ldap/schema/10mep-plugin.ldif
@@ -49,6 +49,43 @@ attributeTypes: ( 2.16.840.1.113730.3.1.2090 NAME 'mepRDNAttr'
#
################################################################################
#
+attributeTypes: ( 2.16.840.1.113730.3.1.2360 NAME 'originScope'
+ DESC 'Managed Entries search scope'
+ SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
+ X-ORIGIN '389 Directory Server' )
+#
+################################################################################
+#
+attributeTypes: ( 2.16.840.1.113730.3.1.2361 NAME 'originFilter'
+ DESC 'Managed Entries search filter'
+ SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
+ X-ORIGIN '389 Directory Server' )
+#
+################################################################################
+#
+attributeTypes: ( 2.16.840.1.113730.3.1.2362 NAME 'managedBase'
+ DESC 'Managed Entries subtree for the managed entries'
+ SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
+ X-ORIGIN '389 Directory Server' )
+#
+################################################################################
+#
+attributeTypes: ( 2.16.840.1.113730.3.1.2363 NAME 'managedTemplate'
+ DESC 'Managed Entries Template Entry DN'
+ SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
+ X-ORIGIN '389 Directory Server' )
+#
+################################################################################
+#
+objectClasses: ( 2.16.840.1.113730.3.2.336 NAME 'mepConfigEntry'
+ DESC 'Managed Entries Configurational Entry'
+ SUP top
+ AUXILIARY
+ MUST ( cn $ originScope $ originFilter $ managedBase $ managedTemplate )
+ X-ORIGIN '389 Directory Server' )
+#
+################################################################################
+#
objectClasses: ( 2.16.840.1.113730.3.2.319 NAME 'mepManagedEntry'
DESC 'Managed Entries Managed Entry'
SUP top
diff --git a/src/lib389/lib389/plugins.py b/src/lib389/lib389/plugins.py
index 0b78c21..53e3448 100644
--- a/src/lib389/lib389/plugins.py
+++ b/src/lib389/lib389/plugins.py
@@ -294,8 +294,9 @@ class MEPConfig(DSLdapObject):
def __init__(self, instance, dn):
super(MEPConfig, self).__init__(instance, dn)
self._rdn_attribute = 'cn'
- self._must_attributes = ['cn']
- self._create_objectclasses = ['top', 'extensibleObject']
+ self._must_attributes = ['cn', 'originScope',
'originFilter',
+ 'managedBase', 'managedTemplate']
+ self._create_objectclasses = ['top', 'mepConfigEntry']
self._protected = False
@@ -310,7 +311,7 @@ class MEPConfigs(DSLdapObjects):
def __init__(self, instance, basedn=None):
super(MEPConfigs, self).__init__(instance)
- self._objectclasses = ['top', 'extensibleObject']
+ self._objectclasses = ['top', 'mepConfigEntry']
self._filterattrs = ['cn']
self._childobject = MEPConfig
# So we can set the configArea easily
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.