From 1a21bc04830958a8058d7304921c836edd63586e Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Wed, 31 Jul 2013 10:38:22 -0400 Subject: torture: add more string_to_sid torture testcases Signed-off-by: Jeff Layton Reviewed-by: Jeremy Allison --- source3/torture/torture.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'source3/torture') diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 3c6db30399..25561e230d 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -8469,6 +8469,22 @@ static bool run_local_string_to_sid(int dummy) { printf("allowing S-1-5-32-545-abc\n"); return false; } + if (string_to_sid(&sid, "S-300-5-32-545")) { + printf("allowing S-300-5-32-545\n"); + return false; + } + if (string_to_sid(&sid, "S-1-0xfffffffffffffe-32-545")) { + printf("allowing S-1-0xfffffffffffffe-32-545\n"); + return false; + } + if (string_to_sid(&sid, "S-1-0xffffffffffff-5294967297-545")) { + printf("allowing S-1-0xffffffffffff-5294967297-545\n"); + return false; + } + if (!string_to_sid(&sid, "S-1-0xfffffffffffe-32-545")) { + printf("could not parse S-1-0xfffffffffffe-32-545\n"); + return false; + } if (!string_to_sid(&sid, "S-1-5-32-545")) { printf("could not parse S-1-5-32-545\n"); return false; -- cgit