summaryrefslogtreecommitdiffstats
path: root/python/examples/winreg.py
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-11-05 13:46:15 +0100
committerJeremy Allison <jra@samba.org>2013-11-07 14:01:36 -0800
commit1524dc6006071d99d1a61c53301a25de91cda07d (patch)
tree8201a91ea161383a9cf7eeb85775a47858fc7579 /python/examples/winreg.py
parent066915f29d20676335a88e93d4148713ec37ace7 (diff)
downloadsamba-1524dc6006071d99d1a61c53301a25de91cda07d.tar.gz
samba-1524dc6006071d99d1a61c53301a25de91cda07d.tar.xz
samba-1524dc6006071d99d1a61c53301a25de91cda07d.zip
idmap_autorid: fix status code when trying to load range for an invalid input
The "sid" input needs to be verified (it can currently be a SID or "ALLOC"). When handing in string that is valid for other kinds of records, but not for the SID[#IDX]-->RANGE direction of mappings, like for instance a range number, then we get "NT_STATUS_INTERNAL_DB_CORRUPTION" because parse records finds the record, but it does not have the expected size... This patch fixes this problem by pre-validating the input before fetching the record from the database. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'python/examples/winreg.py')
0 files changed, 0 insertions, 0 deletions