随笔-10  评论-23  文章-32  trackbacks-0

在linux上安装ldap

1.上传文件DSEE.6.3.Linux-X86-full.tar.gz
2.解压缩      tar -zxf DSEE.6.3.Linux-X86-full.tar.gz
                 cd /DSEE_ZIP_Distribution
3.用./idsktune命令查看系统兼容性(这里出现error提示没有关系)
4.安装         ./dsee_deploy install -i /opt/sun/
                 cd /opt/sun/ds6/bin
                 mkdir /var/opt/sun
5.创建实例   ./dsadm create /var/opt/sun/dsins1
                 cd /opt/sun/dscc6/bin
                 ./dsccsetup initialize(需要输入dscc的密码)
6.打开防火墙端口号389,3389
                vi /etc/sysconfig/iptables
                service iptables restart


//下面过程可选
cp /opt/sun/var/dscc6/dscc.war 至tomcat的 webapps目录
#运行Tomcat
#访问 http://host:port/dscc/


7.注册现有服务器实例
              cd /opt/sun/dscc6/bin
              ./dsccreg add-server /var/opt/sun/dsins1
8.初始化后缀
              cd /opt/sun/ds6/bin
              ./dsconf create-suffix -h localhost -p 389 ou=people,ou=test,dc=a,dc=b,dc=c
9.自定义schema
              将自定义内容拷贝到/var/opt/sun/dsins1/config/schema/99user.ldif

10.重启服务器实例
              ./dsadm reatart /var/opt/sun/dsins1

//------------------------------------------
导出用户数据
              ./dsconf export -h localhost -p 389 ou=people,ou=test,dc=a,dc=b,dc=c/root/ldap.ldif
导入用户数据
              ./dsconf import /root/ldap.ldif ou=people,ou=test,dc=a,dc=b,dc=c


还原备份数据
cat /root/amconf.key
./dsadm create -p 50389 -P 50636 /var/opt/sun/dsins2
./dsconf create-suffix  dc=hangtu,dc=com
cd /opt/sun/ds6/bin
./dsadm stop /var/opt/sun/dsins2
./dsadm backup /var/opt/sun/dsins2 /var/opt/sun/dsins2/bak/2008_12_19
./dsadm restore /var/opt/sun/dsins2/ /root/sun/2008_12_19
./ds./dsadm start /var/opt/sun/dsins2adm stop /var/opt/sun/dsins2

 

此笔记只作大致步骤参考。自己试过在vmware上centos5上安装成功(没有全部执行上面步骤)

posted on 2009-08-04 14:50 liuyimx 阅读(892) 评论(0)  编辑  收藏 所属分类: ldap

只有注册用户登录后才能发表评论。


网站导航: