免费注册 查看新帖 |

Chinaunix

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

[ldap] 求救:启动LDAP出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-06-30 16:27 |只看该作者 |倒序浏览
运行 /usr/local/libexec/slapd -d 256后的出错信息如下:

@(#) $OpenLDAP: slapd 2.3.4 (Jun 30 2005 14:48:47) $
root@globus4403:/usr/hhz/openldap-2.3.4/servers/slapd
daemon: IPv6 socket() failed errno=97 (Address family not supported by protocol)
could not open config file "/usr/local/openldap/etc/openldap/schema/core.schema": No such file

or directory (2)
slapd stopped.
connections_destroy: nothing to destroy.

论坛徽章:
0
2 [报告]
发表于 2005-06-30 18:08 |只看该作者

求救:启动LDAP出错

@(#) $OpenLDAP: slapd 2.3.4 (Jun 30 2005 14:48:47) $
        root@globus4403:/usr/hhz/openldap-2.3.4/servers/slapd
daemon: IPv6 socket() failed errno=97 (Address family not supported by protocol)
/usr/local/etc/openldap/slapd.conf: line 80: expecting <what>; got "dc"
<access clause>; ::= access to <what>; [ by <who>; <access>; [ <control>; ] ]+
<what>; ::= * | [dn[.<dnstyle>;]=<DN>;] [filter=<filter>;] [attrs=<attrlist>;]
<attrlist>; ::= <attr>; [val[.<attrstyle>;]=<value>;] | <attr>; , <attrlist>;
<attr>; ::= <attrname>; | entry | children
<who>; ::= [ * | anonymous | users | self | dn[.<dnstyle>;]=<DN>; ]
        [ realanonymous | realusers | realself | realdn[.<dnstyle>;]=<DN>; ]
        [dnattr=<attrname>;]
        [realdnattr=<attrname>;]
        [group[/<objectclass>;[/<attrname>;]][.<style>;]=<group>;]
        [peername[.<peernamestyle>;]=<peer>;] [sockname[.<style>;]=<name>;]
        [domain[.<domainstyle>;]=<domain>;] [sockurl[.<style>;]=<url>;]
        [ssf=<n>;] [transport_ssf=<n>;] [tls_ssf=<n>;] [sasl_ssf=<n>;]
<style>; ::= exact | regex | base(Object)
<dnstyle>; ::= base(Object) | one(level) | sub(tree) | children | exact | regex
<attrstyle>; ::= exact | regex | base(Object) | one(level) | sub(tree) | children
<peernamestyle>; ::= exact | regex | ip | path
<domainstyle>; ::= exact | regex | base(Object) | sub(tree)
<access>; ::= [[real]self]{<level>;|<priv>;}
<level>; ::= none|disclose|auth|compare|search|read|{write|add|delete}|manage
<priv>; ::= {=|+|-}{0|d|x|c|s|r|{w|a|z}|m}+
<control>; ::= [ stop | continue | break ]

slapd.conf 内容如下:
76  #ACL configure 以下内容定义访问控制
77  access to dn=“.*, dc=uestc, dc=edu.cn” attr=userPassword

78           by dn=“cn=root, dc=uestc, dc=edu.cn” write

79           by self  write

80           by  * read


81
82  access to dn=“.*, dc=uestc, dc=edu.cn”  

83           by  * read

论坛徽章:
0
3 [报告]
发表于 2005-07-13 10:41 |只看该作者

求救:启动LDAP出错

兄弟解决了吗,我也碰到这样的问题了。
谁知道怎么解决啊

论坛徽章:
0
4 [报告]
发表于 2005-07-13 16:49 |只看该作者

求救:启动LDAP出错

could not open config file "/usr/local/openldap/etc/openldap/schema/core.schema": No such file or directory (2)


这个应该是最主要的信息了吧。看看你的slapd.conf里面配置的这个core.schema的路径吧。和实际要一致。

论坛徽章:
0
5 [报告]
发表于 2005-07-13 22:42 |只看该作者

求救:启动LDAP出错

check your configuration file: slapd.conf
you can put the schema file what ever you want! but you must
write the include path and file  in your slapd.conf:
f.g.:

include /etc/openldap/schema/core.schema

论坛徽章:
0
6 [报告]
发表于 2005-07-14 01:13 |只看该作者

求救:启动LDAP出错

Assuming you are using RedHat, and there is a "ldap" user,  if there isn't create it as uidNumfer=55, gidNumber=55, as follows in /etc/passwd.

ldap:55:55:LDAP User:/var/lib/ldap:/bin/false

Assuming this is a new install of OpenLDAP 2.3.4.

To start from fresh, pls remove all files (except DB_CONFIG*) under /var/lib/ldap, and make sure that all *.conf (including slapd.conf) and *.schema files under /etc/openldap are owned and readable by "ldap" user.

VERY IMPORTANT start slapd with "-u ldap", may be adding "-d -1" for maximum debugging messages.

# /path/to/slapd -d -1 -u ldap

Gary

论坛徽章:
0
7 [报告]
发表于 2005-07-14 14:11 |只看该作者

求救:启动LDAP出错

原帖由 "huhz1979" 发表:
运行 /usr/local/libexec/slapd -d 256后的出错信息如下:

@(#) $OpenLDAP: slapd 2.3.4 (Jun 30 2005 14:48:47) $
root@globus4403:/usr/hhz/openldap-2.3.4/servers/slapd
daemon: IPv6 socket() failed err..........


我出现的是这个错误,怎么会和IPv6扯上关系了呢

论坛徽章:
0
8 [报告]
发表于 2005-07-14 16:26 |只看该作者

求救:启动LDAP出错

默认IPv6,但是听别人说这个错误无所谓的。

论坛徽章:
0
9 [报告]
发表于 2005-07-14 16:35 |只看该作者

求救:启动LDAP出错

默认IPv6,但是听别人说这个错误无所谓的。

论坛徽章:
0
10 [报告]
发表于 2005-07-15 13:49 |只看该作者

求救:启动LDAP出错

[quote]原帖由 "ouwind"]默认IPv6,但是听别人说这个错误无所谓的。[/quote 发表:


但是我用ps在察看,发现进程中没有与ldap相关的进程,是否意味着ldap server没起来?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP