diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2015-04-28 11:10:46 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2015-05-30 21:05:25 +0200 |
commit | ed3035a68009cc5e6477f7c9156cea418ff18d1f (patch) | |
tree | 53d33d31752e4acb4103f8ed9a532e4464a13590 /source4/scripting | |
parent | a2ac039d37ffe51c5d689e28e7f67a9d5064dfd8 (diff) | |
download | samba-ed3035a68009cc5e6477f7c9156cea418ff18d1f.tar.gz |
KCC: improve docstring for KCC.modify_repsFrom()
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/scripting')
-rwxr-xr-x | source4/scripting/bin/samba_kcc | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/source4/scripting/bin/samba_kcc b/source4/scripting/bin/samba_kcc index 5d670c040ce..11ed6dabcc7 100755 --- a/source4/scripting/bin/samba_kcc +++ b/source4/scripting/bin/samba_kcc @@ -563,7 +563,9 @@ class KCC(object): mydsa.commit_connections(self.samdb) def modify_repsFrom(self, n_rep, t_repsFrom, s_rep, s_dsa, cn_conn): - """Part of MS-ADTS 6.2.2.5. + """Update an repsFrom object if required. + + Part of MS-ADTS 6.2.2.5. Update t_repsFrom if necessary to satisfy requirements. Such updates are typically required when the IDL_DRSGetNCChanges @@ -571,19 +573,18 @@ class KCC(object): enable compression when the server is moved from the client's site to another site. + The repsFrom.update_flags bit field may be modified + auto-magically if any changes are made here. See + kcc_utils.RepsFromTo for gory details. + + :param n_rep: NC replica we need :param t_repsFrom: repsFrom tuple to modify :param s_rep: NC replica at source DSA :param s_dsa: source DSA :param cn_conn: Local DSA NTDSConnection child - ::returns: (update) bit field containing which portion of the - repsFrom was modified. This bit field is suitable as input - to IDL_DRSReplicaModify ulModifyFields element, as it consists - of these bits: - drsuapi.DRSUAPI_DRS_UPDATE_SCHEDULE - drsuapi.DRSUAPI_DRS_UPDATE_FLAGS - drsuapi.DRSUAPI_DRS_UPDATE_ADDRESS + :return: None """ s_dnstr = s_dsa.dsa_dnstr update = 0x0 |