mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Replace entry.setValue/setValues by item assignment
Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
This commit is contained in:
committed by
Martin Kosek
parent
c613caab67
commit
66c7fd1323
@@ -489,13 +489,13 @@ class ReplicationManager(object):
|
||||
ds_subtree = DN(IPA_USER_CONTAINER, self.suffix)
|
||||
windomain = ipautil.suffix_to_realm(self.suffix)
|
||||
|
||||
entry.setValues("objectclass", "nsDSWindowsReplicationAgreement")
|
||||
entry.setValues("nsds7WindowsReplicaSubtree", win_subtree)
|
||||
entry.setValues("nsds7DirectoryReplicaSubtree", ds_subtree)
|
||||
entry["objectclass"] = ["nsDSWindowsReplicationAgreement"]
|
||||
entry["nsds7WindowsReplicaSubtree"] = [win_subtree]
|
||||
entry["nsds7DirectoryReplicaSubtree"] = [ds_subtree]
|
||||
# for now, just sync users and ignore groups
|
||||
entry.setValues("nsds7NewWinUserSyncEnabled", 'true')
|
||||
entry.setValues("nsds7NewWinGroupSyncEnabled", 'false')
|
||||
entry.setValues("nsds7WindowsDomain", windomain)
|
||||
entry["nsds7NewWinUserSyncEnabled"] = ['true']
|
||||
entry["nsds7NewWinGroupSyncEnabled"] = ['false']
|
||||
entry["nsds7WindowsDomain"] = [windomain]
|
||||
|
||||
def agreement_dn(self, hostname, master=None):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user