免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123
最近访问板块 发新帖
楼主: bunewb
打印 上一主题 下一主题

【求助】iplanet用户导出问题,求助高手解答! [复制链接]

论坛徽章:
0
21 [报告]
发表于 2006-12-26 10:12 |只看该作者
怪不得我在concole里面无法导出ldif格式的,我的console里面没有图00002中的最后两个选项!!哎!版本太低了!!

论坛徽章:
0
22 [报告]
发表于 2006-12-26 10:28 |只看该作者

老大,还是不行啊!

具体操作如下:
# ./configutil -p local.service.pab.ldapbinddn
local.service.pab.ldapbinddn = "uid=msg-admin-1, ou=People, o=123.com, o=isp"
# ./configutil -p service.dcroot
service.dcroot = o=Internet
# ./configutil -p store.serviceadmingroupdn
store.serviceadmingroupdn = "cn=Service Administrators, ou=Groups, o=isp"
# cd ..
# cd slapd-mail
# ./db2ldif -s o=123.com
usage: ns-slapd db2ldif -f configfile [-d debuglevel] [-n] [-a outputfile] [-r] [-C] [{-s includesuffix}*] [{-x excludesuffix}*]
# ./db2ldif -s o=isp
usage: ns-slapd db2ldif -f configfile [-d debuglevel] [-n] [-a outputfile] [-r] [-C] [{-s includesuffix}*] [{-x excludesuffix}*]
# ./db2ldif -s o=123.com o=isp
usage: ns-slapd db2ldif -f configfile [-d debuglevel] [-n] [-a outputfile] [-r] [-C] [{-s includesuffix}*] [{-x excludesuffix}*]

论坛徽章:
0
23 [报告]
发表于 2006-12-26 14:00 |只看该作者
顶啊!

论坛徽章:
0
24 [报告]
发表于 2006-12-26 14:26 |只看该作者
你的版本如果低于5.1 那我也帮不到你了。

试下下面这个看行不行?
#./db2ldif  -n  mail  -s o=isp


注意加上引号:

#./db2ldif  -s  "o=isp"
#./db2ldif  -s  "o=123.com" -s "o=isp"

#./db2ldif -a /tmp/your_ldif_file_name.ldif  -s o=isp
#./db2ldif -a /tmp/your_ldif_file_name.ldif  (输出文件到/tmp目录下)

[ 本帖最后由 xieliangcheng 于 2006-12-26 15:06 编辑 ]

论坛徽章:
0
25 [报告]
发表于 2006-12-26 14:59 |只看该作者
db2ldif是可以导出的,如果低于5.1版本,直接执行db2ldif即可
如果5.1版本之后的,需要加-s 参数指定导出某一个suffix下的

论坛徽章:
0
26 [报告]
发表于 2006-12-26 15:41 |只看该作者
感谢xieliangcheng问题已经解决了,
# pwd
/export/home/netscape/server5/bin/slapd/server
# ./ns-slapd db2ldif -f /export/home/netscape/server5/slapd-
mail/config/slapd.conf -s o=isp


就可以导出来了!

论坛徽章:
0
27 [报告]
发表于 2006-12-26 15:53 |只看该作者
哈哈, 祝贺一下:

用/ns-slapd db2ldif 这选项我是从你的错误提示得出来的.新的版本不用-f 参数选项
usage: ns-slapd db2ldif -f configfile [-d debuglevel] [-n] [-a outputfile] [-r] [-C] [{-s includesuffix}*] [{-x excludesuffix}*]

# ./ns-slapd db2ldif -f configfile -s o=isp


新的版本所带的参数:
# ./db2ldif
Usage: db2ldif {-n backend_instance}* | {-s includesuffix}*
               [{-x excludesuffix}*] [-a outputfile]
               [-N] [-r] [-C] [-u] [-U] [-m] [-M] [-1] [-Y keydb-pwd] [-y keydb-pwd-file]
Note: either "-n backend_instance" or "-s includesuffix" is required.

论坛徽章:
0
28 [报告]
发表于 2006-12-26 16:49 |只看该作者
不过我还有一个疑问,就是我加-a 文件名参数后,总是提示打不开这个文件,不知道是怎么回事!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP