summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorJeff Layton <jlayton@samba.org>2013-07-31 10:38:22 -0400
committerJeremy Allison <jra@samba.org>2013-07-31 15:16:15 -0700
commit1a21bc04830958a8058d7304921c836edd63586e (patch)
tree4f66ba4cacbf9a095f1c64d5f6f76499047ea187 /source3/torture
parentedd3302ad46fd70a8e5472f32f41aa4d8305f4e5 (diff)
downloadsamba-1a21bc04830958a8058d7304921c836edd63586e.tar.gz
samba-1a21bc04830958a8058d7304921c836edd63586e.tar.bz2
samba-1a21bc04830958a8058d7304921c836edd63586e.zip
torture: add more string_to_sid torture testcases
Signed-off-by: Jeff Layton <jlayton@redhat.com> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c16
1 files changed, 16 insertions, 0 deletions
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;