Using LDAP (AD) for MySQL authentication

snicker picture snicker · Aug 25, 2009 · Viewed 48.8k times · Source

I'm trying to come up with a plan to allow users to auth with a MySQL database (many, actually) using LDAP. More specifically, ActiveDirectory. Database will likely be accessed through applications, not web. What are my options?

EDIT:

Okay. It seems that there is no "official" way to allow authentication on MySQL using LDAP. What other options exist? Can we synchronize LDAP users and passwords to the MySQL user table?

Answer

longneck picture longneck · Aug 25, 2009

this is possible with mysql proxy. there's a few things you need to know to make this work:

  • mysql proxy can execute shell commands
  • mysql proxy can intercept and rewrite authentication

these two pages will help you get started: