- 论坛徽章:
- 0
|
启动slapd
因为是工作站
没有root权限,不能在389监听
$./slapd -d 256 -h ldap://127.0.0.1:5001
@(#) $OpenLDAP: slapd 2.4.10 (Jul 16 2008 16:00:05) $
bdb_db_open: warning - no DB_CONFIG file found in directory /openldap/var/openldap-data: (2).
Expect poor performance for suffix "dc=my,dc=com".
bdb_monitor_db_open: monitoring disabled; configure monitor database to enable
slapd starting
监听:
$netstat -an|grep 5001
127.0.0.1.5001 *.* 0 0 49152 0 LISTEN
然后用ldapsearch 测试:
$./ldapsearch -x -b '' -s base '(objectclass=*)' -H ldap://127.0.0.1:5001
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
请问这可能是什么原因引起的? |
|