@@ -2304,8 +2304,14 @@ class WL14110(tests.MySQLConnectorTests):
23042304
23052305 async def asyncSetUp (self ):
23062306 self .server = tests .MYSQL_SERVERS [0 ]
2307- if "com" not in self .server .license :
2308- self .skipTest ("Plugin not available in this version" )
2307+ if not "com" in self .server .license :
2308+ self .skipTest ("Plugin not available in GPL distributions" )
2309+ if os .name == "nt" and tests .MYSQL_VERSION < (8 , 1 ):
2310+ # see https://dev.mysql.com/doc/refman/8.4/en/ldap-pluggable-authentication.html#ldap-pluggable-authentication-installation
2311+ self .skipTest (
2312+ "On Microsoft Windows, the server plugin for SASL-based LDAP "
2313+ "authentication is not supported for MySQL Server 8.0.X"
2314+ )
23092315 if not tests .is_host_reachable ("10.172.166.126" ):
23102316 # Skip if remote ldap server is not reachable.
23112317 self .skipTest ("Remote ldap server is not reachable" )
@@ -2636,8 +2642,14 @@ class WL14263(tests.MySQLConnectorTests):
26362642
26372643 async def asyncSetUp (self ):
26382644 self .server = tests .MYSQL_SERVERS [0 ]
2639- if "com" in self .server .license :
2640- self .skipTest ("Plugin not available in this version" )
2645+ if not "com" in self .server .license :
2646+ self .skipTest ("Plugin not available in GPL distributions" )
2647+ if os .name == "nt" and tests .MYSQL_VERSION < (8 , 1 ):
2648+ # see https://dev.mysql.com/doc/refman/8.4/en/ldap-pluggable-authentication.html#ldap-pluggable-authentication-installation
2649+ self .skipTest (
2650+ "On Microsoft Windows, the server plugin for SASL-based LDAP "
2651+ "authentication is not supported for MySQL Server 8.0.X"
2652+ )
26412653 if not tests .is_host_reachable ("100.103.19.5" ):
26422654 # Skip if remote ldap server is not reachable.
26432655 self .skipTest ("Remote ldap server is not reachable" )
@@ -2781,8 +2793,14 @@ class WL14213(tests.MySQLConnectorTests):
27812793
27822794 async def asyncSetUp (self ):
27832795 self .server = tests .MYSQL_SERVERS [0 ]
2784- if "com" not in self .server .license :
2785- self .skipTest ("Plugin not available in this version" )
2796+ if not "com" in self .server .license :
2797+ self .skipTest ("Plugin not available in GPL distributions" )
2798+ if os .name == "nt" and tests .MYSQL_VERSION < (8 , 1 ):
2799+ # see https://dev.mysql.com/doc/refman/8.4/en/ldap-pluggable-authentication.html#ldap-pluggable-authentication-installation
2800+ self .skipTest (
2801+ "On Microsoft Windows, the server plugin for SASL-based LDAP "
2802+ "authentication is not supported for MySQL Server 8.0.X"
2803+ )
27862804 if not tests .is_host_reachable ("100.103.18.98" ):
27872805 # Skip if remote ldap server is not reachable.
27882806 self .skipTest ("Remote ldap server is not reachable" )
0 commit comments