diff options
author | Matthieu Patou <mat@matws.net> | 2010-01-12 19:53:38 +0300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-01-21 07:11:20 +1300 |
commit | 4c28e7ff0cbd9a1e8c981c9ee6f5c48a8c7a0002 (patch) | |
tree | 1353b4fe8592db74e2d967406a5fc96bc9d105a2 | |
parent | bd9fbdab4c6ebe703800baccc274206fc1bd4ada (diff) | |
download | samba-4c28e7ff0cbd9a1e8c981c9ee6f5c48a8c7a0002.tar.gz samba-4c28e7ff0cbd9a1e8c981c9ee6f5c48a8c7a0002.tar.bz2 samba-4c28e7ff0cbd9a1e8c981c9ee6f5c48a8c7a0002.zip |
upgradeprovision: improve info messages
-rwxr-xr-x | source4/scripting/bin/upgradeprovision | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/source4/scripting/bin/upgradeprovision b/source4/scripting/bin/upgradeprovision index f63605b2af..9af8b2d189 100755 --- a/source4/scripting/bin/upgradeprovision +++ b/source4/scripting/bin/upgradeprovision @@ -46,6 +46,7 @@ import samba.getopt as options from samba.samdb import SamDB from samba import param from samba import glue +from samba.misc import messageEltFlagToString from samba.provision import ProvisionNames,provision_paths_from_lp,find_setup_dir,FILL_FULL,provision, get_domain_descriptor, get_config_descriptor, secretsdb_self_join from samba.provisionexceptions import ProvisioningError from samba.schema import get_dnsyntax_attributes, get_linked_attributes, Schema, get_schema_descriptor @@ -604,13 +605,10 @@ def check_diff_name(newpaths,paths,creds,session,basedn,names,ischema): if handle_special_case(att,delta,reference,current,ischema)==0 and msgElt.flags()!=ldb.FLAG_MOD_ADD: i = 0 if opts.debugchange: - message(CHANGE, "dn= "+str(dn)+ " "+att + " with flag "+str(msgElt.flags())+ " is not allowed to be changed/removed, I discard this change ...") - for e in range(0,len(current[0][att])): - message(CHANGE,"old %d : %s"%(i,str(current[0][att][e]))) - if msgElt.flags() == 2: - i = 0 - for e in range(0,len(reference[0][att])): - message(CHANGE,"new %d : %s"%(i,str(reference[0][att][e]))) + try: + dump_denied_change(dn,att,messageEltFlagToString(msgElt.flags()),current[0][att],reference[0][att]) + except: + dump_denied_change(dn,att,messageEltFlagToString(msgElt.flags()),current[0][att],None) delta.remove(att) delta.dn = dn if len(delta.items()) >1: |