国内对于ldap的资料太少,力所能及的提供一些操作教程。
创建一个新的数据库,我的数据库名字是:oss
下载的源码包,在servers/slapd/back-sql/rdbms_depend/mysql目录依次执行下面的sql:
testdb_create.sql
testdb_data.sql
backsql_create.sql
testdb_metadata.sql
(1)修改slapd.conf 文件,多余的删掉,留下有用的(odbc看另一篇教程)
include /etc/ldap/schema/core.schema
include /etc/ldap/schema/cosine.schema
include /etc/ldap/schema/nis.schema
include /etc/ldap/schema/inetorgperson.schema
pidfile /var/run/slapd/slapd.pid
pidfile /var/run/slapd/slapd.args
modulepath /usr/lib/ldap
moduleload back_sql
backend sql
database sql
suffix "dc=example,dc=com"
rootdn "cn=root,dc=example,dc=com"
rootpw 123456
dbname oss