diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-11-17 11:08:59 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-11-17 11:30:07 +1100 |
commit | 3f9c97dbc55826867d1978e09d69d365cff94643 (patch) | |
tree | 66ed568d0852f48c9775131a4fc4e7868a612221 /source4/scripting | |
parent | 73fae2b007cdb0a6bfe5740a0d119bbde52dd1ce (diff) | |
download | samba-3f9c97dbc55826867d1978e09d69d365cff94643.tar.gz samba-3f9c97dbc55826867d1978e09d69d365cff94643.tar.bz2 samba-3f9c97dbc55826867d1978e09d69d365cff94643.zip |
s4-join: enable NDR printing at debug levels >= 5
this is handy for debugging joins
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/samba/join.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/join.py b/source4/scripting/python/samba/join.py index 45c79549e0..23ec845ea6 100644 --- a/source4/scripting/python/samba/join.py +++ b/source4/scripting/python/samba/join.py @@ -233,7 +233,10 @@ class dc_join: def drsuapi_connect(ctx): '''make a DRSUAPI connection to the server''' - binding_string = "ncacn_ip_tcp:%s[seal]" % ctx.server + binding_options = "seal" + if ctx.lp.get("log level") >= 5: + binding_options += ",print" + binding_string = "ncacn_ip_tcp:%s[%s]" % (ctx.server, binding_options) ctx.drsuapi = drsuapi.drsuapi(binding_string, ctx.lp, ctx.creds) (ctx.drsuapi_handle, ctx.bind_supported_extensions) = drs_utils.drs_DsBind(ctx.drsuapi) @@ -439,7 +442,11 @@ class dc_join: else: repl_creds = ctx.creds - repl = drs_utils.drs_Replicate("ncacn_ip_tcp:%s[seal]" % ctx.server, ctx.lp, repl_creds, ctx.local_samdb) + binding_options = "seal" + if ctx.lp.get("debug level") >= 5: + binding_options += ",print" + repl = drs_utils.drs_Replicate("ncacn_ip_tcp:%s[%s]" % (ctx.server, binding_options), + ctx.lp, repl_creds, ctx.local_samdb) repl.replicate(ctx.schema_dn, source_dsa_invocation_id, destination_dsa_guid, schema=True, rodc=ctx.RODC, |