You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MySQL: add the option to force sending the password as plain text
* This re-uses the pam authentication method
* pdo_mysql: added option MYSQL_ATTR_SEND_CLEAR_PASSWORD
* mysqlnd: implemented CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA option in order to send auth data longer than 255 bytes
#defineMYSQLND_MAX_ALLOWED_USER_LEN 252 /* 63 char * 4byte . MySQL supports now only 32 char, but let it be forward compatible */
45
+
#defineMYSQLND_MAX_ALLOWED_AUTH_LEN 4096 /* This would be a very large token! */
44
46
#defineMYSQLND_MAX_ALLOWED_DB_LEN 1024 /* 256 char * 4byte. MySQL supports now only 64 char in the tables, but on the FS could be different. Forward compatible. */
45
47
46
48
#defineMYSQLND_NET_CMD_BUFFER_MIN_SIZE 4096
@@ -101,6 +103,10 @@
101
103
#defineCLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA (1UL << 21) /* Enable authentication response packet to be larger than 255 bytes. */
102
104
#defineCLIENT_CAN_HANDLE_EXPIRED_PASSWORDS (1UL << 22) /* Don't close the connection for a connection with expired password. */
103
105
#defineCLIENT_SESSION_TRACK (1UL << 23) /* Extended OK */
106
+
/*
107
+
This is a mysqlnd extension. CLIENT_IGNORE_SIGPIPE is not used anyway. We will reuse it for our case and translate it to forcing the mysql_clear_password protocol
108
+
*/
109
+
#defineCLIENT_SEND_CLEAR_PASSWORD CLIENT_IGNORE_SIGPIPE /* Force plaintext password */
104
110
/*
105
111
This is a mysqlnd extension. CLIENT_ODBC is not used anyway. We will reuse it for our case and translate it to not using SSL peer verification
0 commit comments