博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
LDAP-常用命令
阅读量:7099 次
发布时间:2019-06-28

本文共 2764 字,大约阅读时间需要 9 分钟。

1.recreating default ads instance ./

[root@dhcppc2 ~]# dsadm delete /usr/local/dsee7/var/dcc/ads    #delete default instance[root@dhcppc2 ~]# dsccsetup ads-create      #create default instance            [root@dhcppc2 ~]# dsadm start /usr/local/dsee7/var/dcc/ads  #start instance[root@dhcppc2 ~]# dsadm list-running-instances

2.start Cacao, deploy Cacao init-script, register the DSCC agent in Common Agent Container  

[root@dhcppc2 ~]# cacaoadm start /stop[root@dhcppc2 ~]# cacaoadm enable[root@dhcppc2 ~]# dsccsetup cacao-reg

3.registering instance to DSCC

# dsccreg add-server -h hostname instance-install-path

4.list registed instance

[root@dhcppc2 ~]# dsccreg list-servers

5.create suffix 

# dsconf create-suffix -h hostname -p port dc=example,dc=com
Check to see if the suffix has been created.$ dsconf list-suffixes -h host -p port -v

6.import data online

[root@dhcppc2 ~]# dsconf import -h [hostname] -p [port] [file.ldif] dc=example,dc=com
[root@dhcppc2 ~]# dsconf import -h hostname IP -p port -e -D cn=DirectoryManager -w [password] -Q dc=example,dc=com [file.ldif]

7.import data offline

[root@dhcppc2 ~]# dsadm import $INSTANCEHOME [file.ldif] dc=example,dc=com
[yn4a@YncmIAM-ESP-b bin]$ ./dsadm import /home/ldap/amsldap /tmp/2014-05-21.ldif dc=test新数据将覆盖后缀 dc=test的现有数据。必须在所有复制的后缀上执行初始化。是否继续 [y/n]? y正在导入数据...[23/May/2014:10:06:56 +0800] - DEBUG - conn=-1 op=-1 msgId=-1 -  Backend Instance: test[23/May/2014:10:06:57 +0800] - Waiting for 6 database threads to stop[23/May/2014:10:06:58 +0800] - All database threads now stopped[23/May/2014:10:06:59 +0800] - import test: Index buffering enabled with bucket size 100 ……

8.export data offline

[root@dhcppc2 ~]# dsadm export INSTANCEPATH dc=example, dc=com PATN/[file.ldif]

9.export data online

[root@dhcppc2 ~]# dsconf export -h IP -p port -e -D cn=DirectoryManager -w password -Q dc=example,dc=com [file.ldif]

10.list indexes  

[root@dhcppc2 ~]# dsconf list-indexes -D cn=DirectoryManager --pwd-file password -e -p port -v dc=example, dc=com 

11. Back Up the Directory Server Data

[root@dhcppc2 ~]# dsconf backup -h host -p port /tmp/backupArchiveDir

12. Index an Attribute

In this example, the preferredLanguage attribute is going to be indexed.Create an index entry for the attribute. By default, the index matching types are equity and presence.$ dsconf create-index -h host -p port dc=example,dc=com preferredLanguageCheck that the index entry has been created$ dsconf get-index-prop -h host -p port dc=example,dc=com preferredLanguageGenerate the index for the attribute.$ dsconf reindex -h host -p port -t preferredLanguage dc=example,dc=com【[root@rusky ~]# dsconf create-index -D cn=DirectorManager--pwd-file password -h hostname -e -p port dc=example,dc=com Attribute】???

  

  

  

 

  

 

  

 

转载地址:http://tyhql.baihongyu.com/

你可能感兴趣的文章
Promise 的then 里发生了什么
查看>>
【跃迁之路】【719天】程序员高效学习方法论探索系列(实验阶段476-2019.2.9)...
查看>>
微信小程序--------语音识别(前端自己也能玩)
查看>>
JS每日一题:什么情况下适合使合vuex?Vuex使用中有几个步骤?
查看>>
Data Lake Analytics: 以SQL方式查询Redis数据
查看>>
Salesforce和SAP Netweaver里数据库表的元数据设计
查看>>
原生js + css3 + 定时器 无缝轮播图(部分)
查看>>
CNCF案例研究:VSCO
查看>>
表单密码自动填充hack
查看>>
217. Contains Duplicate
查看>>
聊聊flink JobManager的High Availability
查看>>
Tensorflow源码解析3 -- TensorFlow核心对象 - Graph
查看>>
Redis哨兵机制
查看>>
【手牵手】搭建前端组件库(二)
查看>>
程序员毒鸡汤:我们都该学会正确的失败
查看>>
手把手教你造一个基于React的markdown编辑器
查看>>
机器学习实验笔记
查看>>
Spring 执行 sql 脚本(文件)
查看>>
canvas绘制多张图其中有空白或绘制不成功的问题
查看>>
quicklink解析
查看>>