mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
libcli/security/test_sddl_conditional_ace: adjust RA octet parse tests
We are going to parse octet strings like Windows (as opposed to like Windows docs), so the tests need changing. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
4ab9cb1907
commit
cda9371b59
@ -613,7 +613,7 @@ static void test_user_attr_any_of_missing_user_attr(void **state)
|
||||
INIT();
|
||||
USER_SIDS("WD", "AA");
|
||||
SD("D:(XD;;FX;;;S-1-1-0;(@User.Project Any_of @Resource.Project))"
|
||||
"S:(RA;;;;;WD;(\"Project\",TX,0,#1234))");
|
||||
"S:(RA;;;;;WD;(\"Project\",TX,0,1234))");
|
||||
DENY_CHECK(0x10);
|
||||
}
|
||||
|
||||
|
@ -484,10 +484,10 @@ static void test_full_sddl_ra_escapes(void **state)
|
||||
"%0016%0016%0016%0016%0016%0016%0016%0016%0016%0016%0016"
|
||||
"%0016%0016%0016%0016%0016%0016r\","
|
||||
"TX,0x0,"
|
||||
"#0077,#00,#0077,#00,#0077,#00,#00,#00,#0077,#00,#0077,"
|
||||
"#00,#0077,#007777,#007777,#0077,#007777,#0077,#007777,"
|
||||
"#007770,#0077,#00,#0077,#00,#00,#00,#0077,#00,#0077,#00,"
|
||||
"#0077,#007777,#007777,#0077,#007777,#0077,#007777,#007777))");
|
||||
"0077,00,0077,00,0077,00,00,00,0077,00,0077,"
|
||||
"00,0077,007777,007777,0077,007777,0077,007777,"
|
||||
"007770,0077,00,0077,00,00,00,0077,00,0077,00,"
|
||||
"0077,007777,007777,0077,007777,0077,007777,007777))");
|
||||
uint8_t win_bytes[] = {
|
||||
0x01, 0x00, 0x14, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0xb0, 0x02, 0x00, 0x00,
|
||||
|
2
selftest/knownfail.d/ra-escapes
Normal file
2
selftest/knownfail.d/ra-escapes
Normal file
@ -0,0 +1,2 @@
|
||||
samba.unittests.sddl_conditional_ace.test_full_sddl_ra_escapes
|
||||
samba.unittests.run_conditional_ace.test_user_attr_any_of_missing_user_attr
|
Loading…
Reference in New Issue
Block a user