LDAP6.3在DSCC控制台启动实例完成,但是操作状态显示“意外错误”,查看日志如下:
04/May/2016:21:10:39 +0800] - Sun-Java(tm)-System-Directory/6.3 B2008.0311.0224 (32-bit) starting up
[04/May/2016:21:10:39 +0800] - Listening on all interfaces port 11111 for LDAP requests
[04/May/2016:21:10:39 +0800] - Listening on all interfaces port 11112 for LDAPS requests
[04/May/2016:21:10:39 +0800] - slapd started.
[04/May/2016:21:10:39 +0800] - INFO: 0 entries in the directory database.
[04/May/2016:21:10:39 +0800] - INFO: add:0, modify:0, modrdn:0, search:0, delete:0, compare:0, bind:0 since startup.
[04/May/2016:21:10:40 +0800] - ERROR<53761> - Plugins - conn=-1 op=-1 msgId=-1 - Connection Bind through PTA failed (91). Retrying...
[04/May/2016:21:10:40 +0800] - ERROR<53761> - Plugins - conn=-1 op=-1 msgId=-1 - Connection Bind through PTA failed (91).
[04/May/2016:21:10:40 +0800] - ERROR<53761> - Plugins - conn=-1 op=-1 msgId=-1 - Connection Bind through PTA failed (91). Retrying...
[04/May/2016:21:10:40 +0800] - ERROR<53761> - Plugins - conn=-1 op=-1 msgId=-1 - Connection Bind through PTA failed (91).
检查发现/etc/hosts配置文件有错,127.0.0.1和::1后面的hostname写到其它服务器的主机名了。因为是/etc/hosts配置文件是从其它服务器直接复制粘贴过来的,所以就错了。修改为正确的,删除原来的实例,重新创建后正常。
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 testldap210.com testldap210
::1 testldap210.com testldap210
……
参考资料:https://community.oracle.com/thread/2013701