#50313 Making an NestedRoleDefinition type in src/lib389/lib389/idm/role.py
Opened 2 months ago by aborah. Modified 2 months ago

Issue Description:

Making an NestedRoleDefinition type in src/lib389/lib389/idm/nsrole.py

class NestedRoleDefinitions(DSLdapObjects):
"""DSLdapObjects that represents all NestedRoleDefinitions entries in suffix.

    This instance is used mainly for search operation  NestedRoleDefinitions role

    :param instance: An instance
    :type instance: lib389.DirSrv
    :param basedn: Suffix DN
    :type basedn: str
    :param rdn: The DN that will be combined wit basedn
    :type rdn: str
    """
def __init__(self, instance, basedn):
    super(NestedRoleDefinitions, self).__init__(instance)
    self._objectclasses = [
        'top',
        'nsRoleDefinition',
        'nsComplexRoleDefinition',
        'nsNestedRoleDefinition'
    ]
    self._filterattrs = ['cn']
    self._basedn = basedn
    self._childobject = NestedRoleDefinition

Metadata Update from @mreynolds:
- Custom field origin adjusted to None
- Custom field reviewstatus adjusted to None
- Issue set to the milestone: 1.4.1

2 months ago

Login to comment on this ticket.

Metadata