ldap3.extend.novell package

Submodules

ldap3.extend.novell.addMembersToGroups module

ldap3.extend.novell.addMembersToGroups.edir_add_members_to_groups(connection, members_dn, groups_dn, fix, transaction)[source]
Parameters:
  • connection – a bound Connection object
  • members_dn – the list of members to add to groups
  • groups_dn – the list of groups where members are to be added
  • fix – checks for inconsistences in the users-groups relation and fixes them
  • transaction – activates an LDAP transaction
Returns:

a boolean where True means that the operation was successful and False means an error has happened

Establishes users-groups relations following the eDirectory rules: groups are added to securityEquals and groupMembership attributes in the member object while members are added to member and equivalentToMe attributes in the group object. Raises LDAPInvalidDnError if members or groups are not found in the DIT.

ldap3.extend.novell.checkGroupsMemberships module

ldap3.extend.novell.checkGroupsMemberships.edir_check_groups_memberships(connection, members_dn, groups_dn, fix, transaction)[source]
Parameters:
  • connection – a bound Connection object
  • members_dn – the list of members to check
  • groups_dn – the list of groups to check
  • fix – checks for inconsistences in the users-groups relation and fixes them
  • transaction – activates an LDAP transaction when fixing
Returns:

a boolean where True means that the operation was successful and False means an error has happened

Checks and fixes users-groups relations following the eDirectory rules: groups are checked against ‘groupMembership’ attribute in the member object while members are checked against ‘member’ attribute in the group object. Raises LDAPInvalidDnError if members or groups are not found in the DIT.

ldap3.extend.novell.endTransaction module

class ldap3.extend.novell.endTransaction.EndTransaction(connection, commit=True, controls=None)[source]

Bases: ldap3.extend.operation.ExtendedOperation

config()[source]
populate_result()[source]
set_response()[source]

ldap3.extend.novell.getBindDn module

class ldap3.extend.novell.getBindDn.GetBindDn(connection, controls=None)[source]

Bases: ldap3.extend.operation.ExtendedOperation

config()[source]
populate_result()[source]

ldap3.extend.novell.listReplicas module

class ldap3.extend.novell.listReplicas.ListReplicas(connection, server_dn, controls=None)[source]

Bases: ldap3.extend.operation.ExtendedOperation

config()[source]
populate_result()[source]

ldap3.extend.novell.nmasGetUniversalPassword module

class ldap3.extend.novell.nmasGetUniversalPassword.NmasGetUniversalPassword(connection, user, controls=None)[source]

Bases: ldap3.extend.operation.ExtendedOperation

config()[source]
populate_result()[source]

ldap3.extend.novell.nmasSetUniversalPassword module

class ldap3.extend.novell.nmasSetUniversalPassword.NmasSetUniversalPassword(connection, user, new_password, controls=None)[source]

Bases: ldap3.extend.operation.ExtendedOperation

config()[source]
populate_result()[source]

ldap3.extend.novell.partition_entry_count module

class ldap3.extend.novell.partition_entry_count.PartitionEntryCount(connection, partition_dn, controls=None)[source]

Bases: ldap3.extend.operation.ExtendedOperation

config()[source]
populate_result()[source]

ldap3.extend.novell.removeMembersFromGroups module

ldap3.extend.novell.removeMembersFromGroups.edir_remove_members_from_groups(connection, members_dn, groups_dn, fix, transaction)[source]
Parameters:
  • connection – a bound Connection object
  • members_dn – the list of members to remove from groups
  • groups_dn – the list of groups where members are to be removed
  • fix – checks for inconsistences in the users-groups relation and fixes them
  • transaction – activates an LDAP transaction
Returns:

a boolean where True means that the operation was successful and False means an error has happened

Removes users-groups relations following the eDirectory rules: groups are removed from securityEquals and groupMembership attributes in the member object while members are removed from member and equivalentToMe attributes in the group object. Raises LDAPInvalidDnError if members or groups are not found in the DIT.

ldap3.extend.novell.replicaInfo module

class ldap3.extend.novell.replicaInfo.ReplicaInfo(connection, server_dn, partition_dn, controls=None)[source]

Bases: ldap3.extend.operation.ExtendedOperation

config()[source]
populate_result()[source]

ldap3.extend.novell.startTransaction module

class ldap3.extend.novell.startTransaction.StartTransaction(connection, controls=None)[source]

Bases: ldap3.extend.operation.ExtendedOperation

config()[source]
populate_result()[source]
set_response()[source]

Module contents