码迷,mamicode.com
首页 > 其他好文 > 详细

LDAP缓存命令

时间:2014-05-19 23:41:33      阅读:411      评论:0      收藏:0      [点我收藏+]

标签:style   blog   class   c   code   java   

启动cacao及实例:

bubuko.com,布布扣
[root@rusky bin]# cd /home/ldap/iamldap/dsee6/cacao_2/cacao/bin
[root@rusky bin]# ./cacaoadm start
[root@rusky bin]# cd /home/ldap/iamldap/ds6/bin/
[root@rusky bin]# ./dsadm start /home/ldap/iamldap/var/dscc6/dcc/ads
Waiting for Directory Server instance /home/ldap/iamldap/var/dscc6/dcc/ads to start...
Directory Server instance /home/ldap/iamldap/var/dscc6/dcc/ads started: pid=6232
[root@rusky bin]# ./dsadm start /home/ldap/amsldap
Waiting for Directory Server instance /home/ldap/amsldap to start...
Waiting for Directory Server instance /home/ldap/amsldap to start...
Directory Server instance /home/ldap/amsldap started: pid=6330
bubuko.com,布布扣

相关参数说明:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
set-server-prop        Sets server property values<br>get-server-prop        Displays server property values <br>-D USER_DN, --user-dn USER_DN
                Binds as USER_DN (Default: $LDAP_ADMIN_USER or cn=Directory Manager)
-P PORT, --secure-port PORT
                Connects to Directory Server on secure port PORT
-e,--unsecured
                Connects over LDAP with no secure connection (Enabled if $DIRSERV_UNSECURED is set)
-i,--no-inter
                Does not ask for confirmation
-p PORT, --port PORT
                Connects to Directory Server on PORT (Default: $DIRSERV_PORT or 389)
-w FILE, --pwd-file FILE
                Binds with pwd read from FILE (Default:$LDAP_ADMIN_PWF or prompt for pwd)
-j,--reject-cert
                Does not ask for confirmation before rejecting non-trusted server certificates (for this session only)

查看缓存:

1
2
[root@rusky bin]# ./dsconf get-server-prop -D cn=DirectoryManager --pwd-file password -h rusky.com -e -p 12345 db-cache-size
db-cache-size  :  32M

设置数据库缓存:

1
2
[root@rusky bin]# ./dsconf set-server-prop -D cn=DirectoryManager --pwd-file password -h rusky.com -e -p 12345 db-cache-size:128M
Directory Server must be restarted for changes to take effect.

查看条目缓存:  

1
2
[root@rusky bin]# ./dsconf get-suffix-prop -D cn=DirectoryManager --pwd-file password -h rusky.com -e -p 12345 dc=test entry-cache-size
entry-cache-size  :  10M 

设置条目缓存:  

1
[root@rusky bin]# ./dsconf set-suffix-prop -D cn=DirectoryManager --pwd-file password -h rusky.com -e -p 12345 dc=test entry-cache-size:20M

  

  

 

 

 

 

LDAP缓存命令,布布扣,bubuko.com

LDAP缓存命令

标签:style   blog   class   c   code   java   

原文地址:http://www.cnblogs.com/rusking/p/3731261.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!