생성 - 등록 - LDAP 인스턴스 삭제

3196 단어 LDAP
1.새 디렉터리 서버 실례를 만들고 실례 경로를 설정합니다: $dsadm create instance-path -h [hostname] -p [port] -P [SECURE PORT]
[root@rusky bin]# ./dsadm create /home/ldap/testldap

Choose the Directory Manager password:

Confirm the Directory Manager password:

Use 'dsadm start '/home/ldap/testldap'' to start the instance

[root@rusky bin]# ./dsadm start /home/ldap/testldap

Waiting for Directory Server instance '/home/ldap/testldap' to start...

Directory Server instance '/home/ldap/testldap' started: pid=8058 

2. 인스턴스가 제대로 생성되었는지 확인: $dsadm info instance-path
[root@rusky bin]# ./dsadm info/home/ldap/testldapInstance Path:/home/ldap/testldap Owner: root(root) Non-secure port: 389 Secure port: 636 Bit format: 32-bit State: Running Server PID: 8058 DSCC url: - Instance version: D-A00
3. 서버 등록 실례: $dsccreg add-server-h hostname instance-path
[root@rusky bin]# ./dsccreg add-server -h rusky.com /home/ldap/testldap

Enter DSCC administrator's password: 

Enter DSCC administrator's password:Ldap/home/ldap/testldap is an instance of DS

Enter password of "cn=Directory Manager" for /home/ldap/testldap: 

This operation will restart /home/ldap/testldap.

Do you want to continue ? (y/n) y

Connecting to /home/ldap/testldap

Failed to connect to /home/ldap/testldap

Server replied : [LDAP: error code 49 - Invalid Credentials]

/home/ldap/testldap has not been registered in DSCC on rusky.com.


3. 디렉터리 서버 정지: $dsadm stop instance-path
[root@rusky bin]# ./dsadm stop /home/ldap/testldap

Directory Server instance '/home/ldap/testldap' stopped

4. 이 서버 등록 취소: $dsccreg remove-server [-h] [hostname] instance-path
[root@rusky bin]# ./dsccreg remove-server /home/ldap/testldap

Enter DSCC administrator's password: 

Enter DSCC administrator's password:

/home/ldap/testldap is an instance of DS

This operation will restart /home/ldap/testldap.

Do you want to continue ? (y/n) y

Unregistering /home/ldap/testldap from DSCC on localhost.

/home/ldap/testldap is not registered in DSCC on localhost.

Starting /home/ldap/testldap

Connecting to /home/ldap/testldap

Disabling DSCC access to /home/ldap/testldap

No need to restart /home/ldap/testldap


5. 인스턴스 삭제:./dsadm delete instance-path
[root@rusky bin]# ./dsadm delete /home/ldap/testldap

Stopping instance '/home/ldap/testldap' ...

Directory Server instance '/home/ldap/testldap' stopped

Removing '/home/ldap/testldap' directory ...

Directory Server instance '/home/ldap/testldap' deleted


6. 서버 재부팅: $dsadm restart instance-path
[root@rusky bin]# ./dsadm restart /home/ldap/iamldap/var/dscc6/dcc/ads

Directory Server instance '/home/ldap/iamldap/var/dscc6/dcc/ads' stopped

Directory Server instance '/home/ldap/iamldap/var/dscc6/dcc/ads' started: pid=10612


  
  
  

좋은 웹페이지 즐겨찾기