1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source4/scripting/devel
Douglas Bagnall 2ad69f4bd0 getncchanges script: use library code, not copied functions.
These functions were duplicates. To be exact, the diff -ub between what
getncchanges had, and what drs_uitls now has is this:

|@@ -1,4 +1,5 @@
|-def do_DsBind(drs):
|+def drs_DsBind(drs):
|     '''make a DsBind call, returning the binding handle'''
|     bind_info = drsuapi.DsBindInfoCtr()
|     bind_info.length = 28
|@@ -32,7 +33,8 @@
|     bind_info.info.supported_extensions	|= drsuapi.DRSUAPI_SUPPORTED_EXTENSION_GETCHGREPLY_V7
|     bind_info.info.supported_extensions	|= drsuapi.DRSUAPI_SUPPORTED_EXTENSION_VERIFY_OBJECT
|     (info, handle) = drs.DsBind(misc.GUID(drsuapi.DRSUAPI_DS_BIND_GUID), bind_info)
|-    return handle
|+
|+    return (handle, info.info.supported_extensions)
|
|
| def drs_get_rodc_partial_attribute_set(samdb):
|@@ -43,7 +45,7 @@
|     attids = []
|
|     # the exact list of attids we send is quite critical. Note that
|-    # we do ask for the secret attributes, but set set SPECIAL_SECRET_PROCESSING
|+    # we do ask for the secret attributes, but set SPECIAL_SECRET_PROCESSING
|     # to zero them out
|     schema_dn = samdb.get_schema_basedn()
|     res = samdb.search(base=schema_dn, scope=ldb.SCOPE_SUBTREE,
|@@ -71,3 +73,4 @@
|     partial_attribute_set.attids         = attids
|     partial_attribute_set.num_attids = len(attids)
|     return partial_attribute_set

while the drs_utils code has changed in moving
drs_get_rodc_partial_attribute_set() out of the class.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2017-02-10 05:09:08 +01:00
..
drs
addlotscontacts
chgkrbtgtpass s4/scripting/devel: Add tool to roll over the krbtgt password 2015-02-25 01:08:12 +01:00
chgtdcpass
config_base param: Remove winbindd privileged socket directory option 2017-01-22 18:30:12 +01:00
crackname
createtrust s4:scripting/devel: make use of the generic arcfour_encrypt() and string_to_byte_array() functions 2016-02-03 08:33:11 +01:00
demodirsync.py
enumprivs
getncchanges getncchanges script: use library code, not copied functions. 2017-02-10 05:09:08 +01:00
nmfind
pfm_verify.py
rebuild_zone.sh
repl_cleartext_pwd.py
rodcdns
selftest-vars.sh selftest: rename env dc to ad_dc_ntvfs 2015-03-16 23:04:46 +01:00
speedtest.py speedtest: Use samba.tests.subunitrun. 2014-11-22 02:23:10 +01:00
tmpfs.sh
watch_servers.sh