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¶
ldap3.extend.novell.getBindDn module¶
ldap3.extend.novell.listReplicas module¶
ldap3.extend.novell.nmasGetUniversalPassword module¶
ldap3.extend.novell.nmasSetUniversalPassword module¶
ldap3.extend.novell.partition_entry_count module¶
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.