]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pytest: token_factory note that a flag is not set
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Mon, 13 Nov 2023 23:46:21 +0000 (12:46 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 27 Nov 2023 22:37:32 +0000 (22:37 +0000)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/token_factory.py

index 74a0f6baa57287e688bbd3e2d6d042487fef7fb0..22f87f0f489e355ac0b2b06c0dd57e800aa45bbe 100644 (file)
@@ -59,6 +59,11 @@ def list_to_claim(k, v, case_sensitive=False):
     if case_sensitive:
         c.flags |= security.CLAIM_SECURITY_ATTRIBUTE_VALUE_CASE_SENSITIVE
 
+    # The claims made here will not have the
+    # CLAIM_SECURITY_ATTRIBUTE_UNIQUE_AND_SORTED flag set, which makes
+    # them like resource attribute claims rather than real wire
+    # claims. It shouldn't matter much, as they will just be sorted
+    # and checked as if they were resource attribute claims.
     return c