{"id":44,"date":"2021-11-02T21:12:00","date_gmt":"2021-11-03T01:12:00","guid":{"rendered":"https:\/\/www.jumpcloud.com\/engineering-blog\/?p=44"},"modified":"2024-01-29T14:34:50","modified_gmt":"2024-01-29T19:34:50","slug":"using-ldap-authenticate-mysql","status":"publish","type":"post","link":"https:\/\/jumpcloud.com\/blog\/using-ldap-authenticate-mysql","title":{"rendered":"Manage MySQL and Related Database Servers with LDAP"},"content":{"rendered":"\n

This is a refreshed article which initially only focused on integrating the community edition of MySQL with LDAP. That\u2019s no longer possible, so we\u2019ve provided guidance to connect to a variety of popular relational databases that are similar or compatible. You should choose the one that works best for your use case. This article was contributed to by TJ Webb, Cody Pritchard, and Stephen Brown.<\/em><\/p>\n\n\n\n


\n\n\n\n

MySQL<\/a> is a leading relational database system that\u2019s available in commercial and open source offerings that are driven by Oracle. Its ubiquity has spawned several forks, providing several distinct alternatives. Managing users for MySQL is typically a manual chore resulting in extra time, systems, and effort \u2014 and, potentially a security risk when users created in the database are independent of a business’s identity management system and user provisioning process. The commercial distribution of MySQL supports external user authentication including LDAP using its bundled connectors. The community edition has fewer native options, but LDAP management is still possible when very specific prerequisites and security requirements are met. An unsupported GitHub project can be used to configure a free Linux PAM<\/a> plugin. <\/p>\n\n\n\n

There are other choices for your project within the MySQL \u201cfamily\u201d such as MariaDB and Percona, or another open source SQL database such as Postgres. MariaDB is a free and open source software (FOSS) fork of the MySQL database that has a PAM authentication option. It\u2019s evolved in its own direction<\/a> and, while compatible, isn\u2019t a direct substitution of MySQL. Percona is a performance-tuned edition of MySQL that also provides a plugin. We\u2019ve included Postgres as an alternative relational database. Your requirements and budget will determine what solution is the best fit for the job at hand. The common thread is the user management benefits of LDAP, a common user directory that organizations may have, based upon mature and open standards. Connecting SQL databases to LDAP services benefits IT admins in a number of ways:<\/p>\n\n\n\n