netcmd: Change Py3 incompatible long() for tombstone expunge
authorTim Beale <timbeale@catalyst.net.nz>
Thu, 4 Oct 2018 01:37:44 +0000 (14:37 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Fri, 12 Oct 2018 02:16:22 +0000 (04:16 +0200)
commitb2c4b829a75001ec939f9ecbc0db0712758ece80
treed51769a35212b60eea0bdec7b0e2f3502a812206
parent24669e57fcb5eb592e86746c9451977752d37f23
netcmd: Change Py3 incompatible long() for tombstone expunge

The code to expunge tombstones uses long(), which is not Python3
compatible. Python3 uses int() instead, and works out how big it needs
to be.

As long as we don't run the samba-tool command on a 32-bit machine
after the year 2038, then we should avoid any integer overflow on
Python 2.x.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
python/samba/netcmd/domain.py