1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-16 20:59:12 +03:00

s4 upgradeprovision: add more attrbutes the ignore list

Also format in a pretty way the int64 ranges
This commit is contained in:
Matthieu Patou
2010-08-12 17:28:28 +04:00
parent e378d7fd89
commit a5653bcf83
2 changed files with 20 additions and 5 deletions

View File

@ -886,3 +886,14 @@ def search_constructed_attrs_stored(samdb, rootdn, attrs):
hashAtt[att][str(ent.dn).lower()] = str(ent[att])
return hashAtt
def int64range2str(value):
"""Display the int64 range stored in value as xxx-yyy
:param value: The int64 range
:return: A string of the representation of the range
"""
lvalue = long(value)
str = "%d-%d" % (lvalue&0xFFFFFFFF, lvalue>>32)
return str