免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7547 | 回复: 0
打印 上一主题 下一主题

[ldap] slapd.conf: line 30: <database> failed init (sql)! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-05 17:20 |只看该作者 |倒序浏览
小弟想用pgsql作为openldap的存储引擎。
[root@macan ~]# service ldap restart
Stopping slapd:                                            [FAILED]
Checking configuration files for slapd:  Unrecognized database type (sql)
/etc/openldap/slapd.conf: line 30: <database> failed init (sql)!
slaptest: bad configuration file!
                                                           [FAILED]
You have new mail in /var/spool/mail/root
[root@macan ~]#


我已经安装了openldap-servers-sql-2.3.27-8.el5_2.4
[root@macan pgsql]# rpm -qa|grep -i ldap
nss_ldap-253-12.el5
openldap-servers-2.3.27-8.el5_2.4
openldap-2.3.27-8.el5_2.4
openldap-clients-2.3.27-8.el5_2.4
openldap-servers-sql-2.3.27-8.el5_2.4
openldap-devel-2.3.27-8.el5_2.4
[root@macan pgsql]#


我的odbc也没问题:
[root@macan pgsql]# isql pg_ldap
+---------------------------------------+
| Connected!                            |
|                                       |
| sql-statement                         |
| help [tablename]                      |
| quit                                  |
|                                       |
+---------------------------------------+
SQL> select now();
+--------------------+
| now                |
+--------------------+
| 2008-11-05 18:18:49|
+--------------------+
SQLRowCount returns 1
1 rows fetched
SQL>


我也向LD_LIBRARY_PATH请示了:
[root@macan pgsql]# echo $LD_LIBRARY_PATH
/usr/local/lib/:/usr/lib/openldap/
[root@macan pgsql]#


到底我还缺少什么啊?谢谢了先。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP