免费注册 查看新帖 |

Chinaunix

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

[ldap] 求助:关于在cygwin上运行openldap [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-10-20 16:26 |只看该作者 |倒序浏览
找错找了2天了:

我的slapd.conf文件内容如下:

#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include                /usr/local/etc/openldap/schema/core.schema

# Define global ACLs to disable default read access.

# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral        ldap://root.openldap.org

pidfile                /usr/local/var/run/slapd.pid
argsfile        /usr/local/var/run/slapd.args

# Load dynamic backend modules:
# modulepath        /usr/local/libexec/openldap
# moduleload        back_bdb.la
# moduleload        back_hdb.la
# moduleload        back_ldap.la

# Sample security restrictions
#        Require integrity protection (prevent hijacking)
#        Require 112-bit (3DES or better) encryption for updates
#        Require 63-bit encryption for simple bind
# security ssf=1 update_ssf=112 simple_bind=64

# Sample access control policy:
#        Root DSE: allow anyone to read it
#        Subschema (sub)entry DSE: allow anyone to read it
#        Other DSEs:
#                Allow self write access
#                Allow authenticated users read access
#                Allow anonymous users to authenticate
#        Directives needed to implement policy:
# access to dn.base="" by * read
# access to dn.base="cn=Subschema" by * read
# access to *
#        by self write
#        by users read
#        by anonymous auth
#
# if no access controls are present, the default policy
# allows anyone and everyone to read anything but restricts
# updates to rootdn.  (e.g., "access to * by * read"
#
# rootdn can always read and write EVERYTHING!

#######################################################################
# BDB database definitions
#######################################################################

database        bdb
suffix                "dc=wanghw,dc=com"
rootdn                "cn=Manager,dc=wanghw,dc=com"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd( and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw                secret
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory        /usr/local/var/openldap-data
# Indices to maintain
index        objectClass        eq






运行到这步ldapadd -D cn=Manager,dc=wanghw,dc=com -w secret -f entries.ldif就提示 invalid credentials(49)这个错误

请高手帮忙看看,急啊,我在线等

或者还需要我提供哪些信息请留言,我这几天正在做.谢谢!

论坛徽章:
0
2 [报告]
发表于 2008-10-20 18:38 |只看该作者
加个 -x

论坛徽章:
0
3 [报告]
发表于 2008-10-21 14:27 |只看该作者
谢谢楼上的!
按你说的我改成这样ldapadd -x -D cn=Manager,dc=wanghw,dc=com -w secret -f entries.ldif
就成功了
多谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP