Esempio n. 1
0
def deletesubtree(dn):
    """Delete a subtree in the IMM.
    Prerequisites: An admin owner and CCB must have been initiated.
    WARNING: This can be a very destructive command!
    """
    immombin.saImmOmAdminOwnerSet('SA_IMM_SUBTREE', [dn])
    immombin.saImmOmCcbObjectDelete(dn)
Esempio n. 2
0
def deleteobjects(dn_list):
    """Delete IMM objects.
    Prerequisites: An admin owner and CCB must have been initiated.
    """
    immombin.saImmOmAdminOwnerSet('SA_IMM_ONE', dn_list)
    for dn in dn_list:
        immombin.saImmOmCcbObjectDelete(dn)
Esempio n. 3
0
def deletesubtree(dn):
    """Delete a subtree in the IMM.
    Prerequisites: An admin owner and CCB must have been initiated.
    WARNING: This can be a very destructive command!
    """
    immombin.saImmOmAdminOwnerSet('SA_IMM_SUBTREE', [dn])
    immombin.saImmOmCcbObjectDelete(dn)
Esempio n. 4
0
def deleteobjects(dn_list):
    """Delete IMM objects.
    Prerequisites: An admin owner and CCB must have been initiated.
    """
    immombin.saImmOmAdminOwnerSet('SA_IMM_ONE', dn_list)
    for dn in dn_list:
        immombin.saImmOmCcbObjectDelete(dn)
Esempio n. 5
0
def createobject(dn, class_name, attr_list):
    """Create an IMM object.
    The passed dn is the object to be created, NOT the parent. The rdn
    attribute will be created automatically and shall not be included
    in the attr_list. Any "SaImm*" and RDN attributes will be ignored.
    """
    (rdn, parent) = split_dn(dn)
    (rdn_attr, rdn_type) = _get_rdn_attr(class_name)
    attr_list = filter(lambda (n, t, v):
                       not n.startswith('SaImm') and n != rdn_attr, attr_list)
    attr_list.append( (rdn_attr, rdn_type, [ rdn ]) )
    if parent:
        immombin.saImmOmAdminOwnerSet('SA_IMM_ONE', [parent])
    immombin.saImmOmCcbObjectCreate(parent, class_name, attr_list)
Esempio n. 6
0
def createobject(dn, class_name, attr_list):
    """Create an IMM object.
    The passed dn is the object to be created, NOT the parent. The rdn
    attribute will be created automatically and shall not be included
    in the attr_list. Any "SaImm*" and RDN attributes will be ignored.
    """
    (rdn,parent) = split_dn(dn)
    (rdn_attr,rdn_type) = _get_rdn_attr(class_name)
    attr_list = filter(lambda (n,t,v):
                       not n.startswith('SaImm') and n != rdn_attr, attr_list)
    attr_list.append( (rdn_attr, rdn_type, [ rdn ]) )
    if parent:
        immombin.saImmOmAdminOwnerSet('SA_IMM_ONE', [parent])
    immombin.saImmOmCcbObjectCreate(parent, class_name, attr_list)
Esempio n. 7
0
def adminoperation(dn, op, attr_list):
    """Invoke an Administrative Operation.
    """
    immombin.saImmOmAdminOwnerSet('SA_IMM_ONE', [dn])
    immombin.saImmOmAdminOperationInvoke(dn, op + 0L, attr_list)
Esempio n. 8
0
def adminoperation(dn, op, attr_list):
    """Invoke an Administrative Operation.
    """
    immombin.saImmOmAdminOwnerSet('SA_IMM_ONE', [dn])
    immombin.saImmOmAdminOperationInvoke(dn, op + 0L, attr_list)