Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Application Server » Other AS  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:openldap for win32的怎么配置、使用? [Re:九佰]
九佰



版主


发贴: 983
积分: 126
于 2004-04-30 14:21 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
假设ldap解压到d:\ldap中

1.在ldap(d:\ldap)目录中创建openldap-ldbm目录
2.修改slapd.conf文件
slapd.conf如下,需要修改的地方有注释
#############################################
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.4 2000/08/26 17:06:18 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
#=====================================
# 修改%SYSCONFDIR%为openldap所在目录
# 即 slapd.conf 所在目录 d:\ldap
#=====================================
include    %SYSCONFDIR%/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

#=============================================
# 修改%LOCALSTATEDIR%为openldap所在目录
# 即 slapd.conf 所在目录 d:\ldap
#=============================================
pidfile    %LOCALSTATEDIR%/slapd.pid
argsfile   %LOCALSTATEDIR%/slapd.args

# Load dynamic backend modules:
# modulepath  %MODULEDIR%
# moduleload  back_ldap.la
# moduleload  back_ldbm.la
# moduleload  back_passwd.la
# moduleload  back_shell.la

#######################################################################
# ldbm database definitions
#######################################################################

database  ldbm

#===========================================
# 修改 suffix中的值和domain.ldif中的第一行一致
# dn:dc=bit82,dc=edu,dc=cn
#===========================================
suffix    "dc=bit82,dc=edu,dc=cn"
#suffix    "o=My Organization Name, c=US"
rootdn    "cn=Manager, dc=my-domain, dc=com"
#rootdn    "cn=Manager, o=My Organization Name, c=US"
# Cleartext passwords, especially for the rootdn, should
# be avoid. See slappasswd(8) 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 accessable by the slapd/tools. Mode 700 recommended.
#=========================================
# 修改%LOCALSTATEDIR%为openldap所在目录
# 即 slapd.conf 所在目录 d:\ldap
#=========================================
directory  %LOCALSTATEDIR%/openldap-ldbm
# Indices to maintain
index  objectClass  eq

3.创建domain.ldif文件,内容 如下
domain.ldif

dn:dc=bit82,dc=edu,dc=cn
objectclass:dcObject
objectclass:organization
o:companyinfo
dc:bit82

4.slapadd -f slapd.conf -l domain.ldif
5.启动ldap服务:运行slapd

感谢linux_china~!

http://www.openldap.org/doc/admin20/slapdconfig.html
配置文件文档




http://www.teamlet.org

海纳百川,有容乃大
壁立千仞,无欲则刚
智者不惑,勇者无惧
止戈为武,仁者无敌

话题树型展开
人气 标题 作者 字数 发贴时间
26145 openldap for win32的怎么配置、使用? 九佰 29 2004-04-30 11:46
21772 Re:openldap for win32的怎么配置、使用? linux_china 39 2004-04-30 12:00
22573 Re:openldap for win32的怎么配置、使用? wes109 104 2004-04-30 12:03
21919 Re:openldap for win32的怎么配置、使用? linux_china 703 2004-04-30 12:10
21543 Re:openldap for win32的怎么配置、使用? 九佰 423 2004-04-30 13:14
21411 Re:openldap for win32的怎么配置、使用? 九佰 4 2004-04-30 13:59
23028 Re:openldap for win32的怎么配置、使用? 九佰 2799 2004-04-30 14:21
21411 Re:openldap for win32的怎么配置、使用? floater 21 2004-04-30 22:50
21224 Re:openldap for win32的怎么配置、使用? hefish 26 2004-05-24 16:15
22375 Re:openldap for win32的怎么配置、使用? floater 60 2004-05-24 21:35

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923