mariadb/plugin/auth_gssapi/mysql-test/auth_gssapi
Vladislav Vaintroub 7ebabea5d3 MDEV-23959 GSSAPI plugin - support AD or local group name , and SIDs on Windows
Support membership tests in SSPI with special prefix form

CREATE USER u IDENTIFIED WITH gssapi AS "GROUP:<group_name>"
or
CREATE USER u IDENTIFIED WITH gssapi AS "SID:<sid>"

If user is created as one of the above, after successful SSPI handshake,
this will happen

1) If "GROUP:" prefix is used, then <group_name> is translated to SID
using LookupAccountName() API

2) SSPI user is checked for  SID membership with
ImpersonateSecurityContext() and CheckMembership() APIs

Note, that it <group>/<sid> do not need strictly to refer to an actual
group.
Identity test is also supported, e.g  "GROUP:<users_name>" or
"SID:<user_sid>" will work too.


Well-known SIDs (in SDDL syntax) appear to be supported such as
"SID:WD" will refer to World/Everyone (== "SID:S-1-1-0")
or
"SID:BA" will refer to Administrators (== "SID:S-1-5-32-544")

In UAC environments, for successful checks against Administrators group,
elevation(Run As Administrator) might be necessary, since CheckMembership()
needs groups to be marked as enabled in the token group list.
2021-01-27 14:38:00 +01:00
..
basic.result make auth_gssapi_basic work, also in domain environment. 2018-10-15 22:57:15 +01:00
basic.test Fix regular expression in replace_regex in auth_gssapi test. 2018-10-15 23:07:30 +01:00
groups.result MDEV-23959 GSSAPI plugin - support AD or local group name , and SIDs on Windows 2021-01-27 14:38:00 +01:00
groups.test MDEV-23959 GSSAPI plugin - support AD or local group name , and SIDs on Windows 2021-01-27 14:38:00 +01:00
multiauth.result MDEV-11340 Allow multiple alternative authentication methods for the same user 2019-02-04 16:06:57 +01:00
multiauth.test MDEV-11340 Allow multiple alternative authentication methods for the same user 2019-02-04 16:06:57 +01:00
suite.opt MDEV-4961 SSPI/GSSAPI/Kerberos authentication plugin 2016-01-14 13:31:08 +01:00
suite.pm MDEV-23959 GSSAPI plugin - support AD or local group name , and SIDs on Windows 2021-01-27 14:38:00 +01:00