Skip to content

Commit

Permalink
Issue 50390 - Add Managed Entries Plug-in Config Entry schema
Browse files Browse the repository at this point in the history
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!)
  • Loading branch information
droideck committed May 17, 2019
1 parent 26b9e1b commit 31c89d3
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 3 deletions.
37 changes: 37 additions & 0 deletions ldap/schema/10mep-plugin.ldif
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions src/lib389/lib389/plugins.py
Expand Up @@ -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


Expand All @@ -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
Expand Down

0 comments on commit 31c89d3

Please sign in to comment.