Using LDAP (AD) for MySQL authentication

2019-03-22 22:50发布

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?

9条回答
2楼-- · 2019-03-22 23:44

Please looks at https://dev.mysql.com/doc/relnotes/mysql/5.5/en/news-5-5-7.html

This is in the 5.5.7 release candidate

查看更多
Animai°情兽
3楼-- · 2019-03-22 23:44

I personally can't find any information that suggests this is possible. All I see is using MySQL as the data store for the LDAP directory.

查看更多
Animai°情兽
4楼-- · 2019-03-22 23:45

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:

查看更多
登录 后发表回答