首页 > 代码库 > LDAP-常用命令
LDAP-常用命令
1.recreating default ads instance ./
?
1 2 3 4 | [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
?
1 2 3 | [root@dhcppc2 ~]# cacaoadm start /stop [root@dhcppc2 ~]# cacaoadm enable [root@dhcppc2 ~]# dsccsetup cacao-reg |
3.registering instance to DSCC
?
1 | # dsccreg add-server -h hostname instance-install-path |
4.list registed instance
?
1 | [root@dhcppc2 ~]# dsccreg list-servers |
5.create suffix
?
1 | # dsconf create-suffix -h hostname -p port dc=example,dc=com |
?
1 2 | Check to see if the suffix has been created. $ dsconf list-suffixes -h host -p port -v |
6.import data online
?
1 | [root@dhcppc2 ~]# dsconf import -h [hostname] -p [port] [file.ldif] dc=example,dc=com |
?
1 | [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
?
1 | [root@dhcppc2 ~]# dsadm import $INSTANCEHOME [file.ldif] dc=example,dc=com |
8.export data offline
?
1 | [root@dhcppc2 ~]# dsadm export INSTANCEPATH dc=example, dc=com PATN/[file.ldif] |
9.export data online
?
1 | [root@dhcppc2 ~]# dsconf export -h IP -p port -e -D cn=DirectoryManager -w password -Q dc=example,dc=com [file.ldif] |
10.list indexes
?
1 | [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
?
1 | [root@dhcppc2 ~]# dsconf backup -h host -p port /tmp/backupArchiveDir |
12. Index an Attribute
?
1 2 3 4 5 6 7 8 | 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】??? |
<!--[if !supportLineBreakNewLine]-->
< !--[endif]-->
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。