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 preferredLanguage
Check that the index entry has been created
$ dsconf get-index-prop -h host -p port dc=example,dc=com preferredLanguage
Generate 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】???

  

  

  

 


  

 

  

 

LDAP-常用命令的更多相关文章

  1. LDAP常用命令解析

    OpenLDAP常用命令讲解: ldapadd      -x   进行简单认证      -D   用来绑定服务器的DN      -h   目录服务的地址      -w   绑定DN的密码    ...

  2. 【LDAP】LDAP常用命令解析

    ldapadd -x   进行简单认证-D   用来绑定服务器的DN-h   目录服务的地址-w   绑定DN的密码-f   使用ldif文件进行条目添加的文件例子 ldapadd -x -D &qu ...

  3. ldap常用命令

    单独查询用户信息 ldapsearch -D "cn=admin,dc=hrbeu,dc=edu,dc=cn" -b "ou=hbr,dc=hrbeu,dc=edu,dc ...

  4. 版本控制-svn服务器搭建和常用命令(centos 6.3)

    Svn是比较优秀的版本控制工具,虽然功能和性能上无法和Git媲美,但由于其容易搭建和使用的特性,所以在各个小公司还是很受欢迎的.使用Git可参考<版本控制-Git服务器搭建和常用命令使用> ...

  5. FortiGate常用命令

    1.命令结构 config      Configure object.    对策略,对象等进行配置 get   Get dynamic and system information. 查看相关关对 ...

  6. RedHat Linux下MQ安装步骤及MQ常用命令

    1.检查操作系统及内存情况:lsb_release -a; 2   检查java 环境:java -version 3   新建用户空间.用户和组: //创建用户目录 mkdir /home/mqm ...

  7. 版本控制-https svn服务器搭建和常用命令(centos 6.3)

    Svn是比较优秀的版本控制工具,虽然功能和性能上无法和Git媲美,但由于其容易搭建和使用的特性,所以在各个小公司还是很受欢迎的.使用Git可参考<版本控制-Git服务器搭建和常用命令使用> ...

  8. OpenLDAP 常用命令

    OpenLDAP 常用命令 本文原始地址:https://sitoi.cn/posts/5308.html ldapsearch ldapsearch - ldap 搜索工具 ldapsearch 实 ...

  9. AD常用命令以及概念

    活动目录服务器常用命令合集如下: net accounts  查看第一台域控的计算机角色net accounts   查看计算机角色net share      查看共享netdom query fs ...

  10. Linux 常用命令(持续补充)

    常用命令: command &:将进程放在后台执行 ctrl + z:暂停当前进程 并放入后台 jobs:查看当前后台任务 bg( %id):将任务转为后台执行 fg( %id):将任务调回前 ...

随机推荐

  1. HashMap的扩容机制, ConcurrentHashMap和Hashtable主要区别

    源代码查看,有三个常量, static final int DEFAULT_INITIAL_CAPACITY = 16; static final int MAXIMUM_CAPACITY = 1 & ...

  2. 关于cocopads 不能正确安装的问题

    通过几个网页 我搜到 看着几个网页就够了 绝对可以实现的 http://code4app.com/article/cocoapods-install-usage http://www.cnblogs. ...

  3. Java学习笔记——实现一个简易记事本Notepad的编写

    记事本功能介绍 1.   新建:记事本清空. 2.   打开:可打开笔记本上任意文本文件. 3.   保存:将文件保存至当前文件夹. 4.   另存为:将文件保存至任意位置. 5.   退出:退出时确 ...

  4. 汇编test和cmp区别

    来自http://tunps.com/assembly-test-and-cmp 看过破解教程,都知道test,cmp是比较关键,可是我一直不清楚它们究竟是怎么比较的,最后下决心找了很多资料,和大家一 ...

  5. Jquery中$.get(),$.post(),$.ajax(),$.getJSON()的用法总结【转载】

    详细解读Jquery各Ajax函数:$.get(),$.post(),$.ajax(),$.getJSON() 一,$.get(url,[data],[callback]) 说明:url为请求地址,d ...

  6. winform中相对路径和绝对路径的获取

    例如: Path.GetFullPath(Path.Combin(@"C:\a\b\c","..\b.text")); ..代表上级目录 .代表当前目录 结果: ...

  7. 猜数字-js

    var n = Math.round(Math.random()*10); //随机数 // alert(n); while(true){ var Onum = prompt('请输入1-10之间的数 ...

  8. Js自动截取字符串长度,添加省略号“……”

    JavaScript字符串处理函数,根据定义的长度截取字符串,超出部分裁掉追加……,很多时候网页上显示的内容需要缩成“...”该方法用于处理字符串显示固定长度,超长部分用“...”代替: /**参数说 ...

  9. mysql时间int日期转换

    select from_unixtime(1350437720);select unix_timestamp(now());插入用 unix_timestamp(date)查询用from_unixti ...

  10. 网址测速JS

    /*.route_nav li a:hover{background: #3c7f84 url(title.png) no-repeat;border-color:#84a3a5;}*/ .route ...