3.10. 복제 환경의 모든 서버에서 계정 잠금 속성 동기화
Directory Server는 계정 잠금 특성을 로컬로 저장합니다. 여러 서버가 있는 환경에서는 이러한 속성에 대한 복제를 구성하여 계정 잠금 수에 도달한 다음 다른 서버에서 계속될 때까지 공격자가 하나의 서버에 로그인하지 못하도록 합니다.
3.10.1. 복제 환경에서 Directory Server에서 암호 및 계정 잠금 정책을 처리하는 방법 링크 복사링크가 클립보드에 복사되었습니다!
Directory Server는 다음과 같이 암호 및 계정 잠금 정책을 적용합니다.
- 암호 정책은 데이터 공급자에 적용됩니다.
- 복제 토폴로지의 모든 서버에 계정 잠금 정책이 적용됨
Directory Server는 다음과 같은 암호 정책 속성을 복제합니다.
-
passwordMinAge
-
passwordMaxAge
-
passwordExp
-
passwordWarning
그러나 기본적으로 Directory Server는 일반 계정 잠금 특성을 복제하지 않습니다.
-
passwordRetryCount
-
retryCountResetTime
-
accountUnlockTime
공격자가 계정 잠금 수에 도달하고 다른 서버에서 계속할 때까지 한 서버에 로그인하지 못하도록 이러한 계정 잠금 특성을 복제합니다.
3.10.2. 계정 잠금 속성을 복제하도록 Directory Server 구성 링크 복사링크가 클립보드에 복사되었습니다!
passwordRetryCount
,retryCountResetTime
또는 accountUnlockTime
속성을 업데이트하는 계정 잠금 정책 또는 암호 정책을 사용하는 경우 이러한 속성을 복제하여 해당 값이 모든 서버에서 동일하게 Directory Server를 구성합니다.
복제 토폴로지의 모든 공급자에 대해 이 절차를 수행합니다.
사전 요구 사항
- 언급된 속성을 하나 이상 업데이트하는 계정 잠금 정책 또는 암호 정책을 구성했습니다.
- 복제 환경에서 Directory Server를 사용합니다.
절차
암호 정책 속성 복제를 활성화합니다.
dsconf <instance_name> pwpolicy set --pwdisglobal="on"
# dsconf <instance_name> pwpolicy set --pwdisglobal="on"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 소수 복제를 사용하는 경우 복제에서 제외된 속성 목록을 표시합니다.
dsconf <instance_name> repl-agmt get --suffix "dc=example,dc=com" example-agreement | grep "nsDS5ReplicatedAttributeList"
# dsconf <instance_name> repl-agmt get --suffix "dc=example,dc=com" example-agreement | grep "nsDS5ReplicatedAttributeList"dsconf <instance_name> repl-agmt get --suffix "dc=example,dc=com" example-agreement | grep "nsDS5ReplicatedAttributeList"dsconf <instance_name> repl-agmt get --suffix "dc=example,dc=com" example-agreement | grep "nsDS5ReplicatedAttributeList"dsconf <instance_name> repl-agmt get --suffix "dc=example,dc=com" example-agreement | grep "nsDS5ReplicatedAttributeList"dsconf <instance_name> repl-agmt get --suffix "dc=example,dc=com" example-agreement | grep "nsDS5ReplicatedAttributeList"dsconf <instance_name> repl-agmt get --suffix "dc=example,dc=com" example-agreement | grep "nsDS5ReplicatedAttributeList"dsconf <instance_name> repl-agmt get --suffix "dc=example,dc=com" example-agreement | grep "nsDS5ReplicatedAttributeList"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 기본 설정을 사용하여 출력이 표시되지 않으며 Directory Server는 계정 잠금 특성을 복제합니다. 그러나 명령에서 다음 예와 같이 제외된 속성 목록을 반환하는 경우 속성 목록을 확인합니다.
nsDS5ReplicatedAttributeList: (objectclass=*) $ EXCLUDE accountUnlockTime passwordRetryCount retryCountResetTime example1 example2
nsDS5ReplicatedAttributeList: (objectclass=*) $ EXCLUDE accountUnlockTime passwordRetryCount retryCountResetTime example1 example2
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 이 예에서는
accountUnlockTime
,passwordRetryCount
,retryCountResetTime
잠금 정책 속성은 복제에서 제외되며 다른 두 가지 특성과 함께 복제에서 제외됩니다.이전 명령의 출력에 계정 잠금 속성 중 하나가 나열되는 경우 잠금 정책 속성 이외의 속성만 포함하도록 소수 복제 설정을 업데이트합니다.
dsconf <instance_name> repl-agmt set --suffix "dc=example,dc=com" --frac-list "example1 example2" example-agreement
# dsconf <instance_name> repl-agmt set --suffix "dc=example,dc=com" --frac-list "example1 example2" example-agreement
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
검증
잘못된 암호를 사용하여 사용자로 검색을 시도합니다.
ldapsearch -H ldap://server.example.com -D "uid=example,ou=People,dc=example,dc=com" -w "<invalid-password>" -b "dc=example,dc=com" -x
# ldapsearch -H ldap://server.example.com -D "uid=example,ou=People,dc=example,dc=com" -w "<invalid-password>" -b "dc=example,dc=com" -x ldap_bind: Invalid credentials (49)
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 사용자의
passwordRetryCount
특성을 표시합니다.ldapsearch -H ldap://server.example.com -D "cn=Directory Manager" -W -b "uid=example,ou=People,dc=example,dc=com" -x passwordRetryCount
# ldapsearch -H ldap://server.example.com -D "cn=Directory Manager" -W -b "uid=example,ou=People,dc=example,dc=com" -x passwordRetryCount ... dn: uid=example,ou=People,dc=example,dc=com passwordRetryCount: 1
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
복제 토폴로지의 다른 서버에서 이전 명령을 실행합니다.
passwordRetryCount
특성의 값이 동일한 경우 Directory Server가 특성을 복제합니다.