2014-10-31 2 views
3

System.DirectoryServices.AccountManagement.UserPrincipal.SetPassword()이 새 암호로 System.Security.SecureString을 가져 오지 않는 이유는 무엇입니까? SecureString을 사용하는 암호를 변경하는 또 다른 방법이 있습니까?SecureString을 사용하여 암호 설정

답변

2

.NET의 모든 암호 처리 API가 불행히도 SecureString을 사용하지는 않습니다. 이유가 확실하지 않은 이유는 SecureString 클래스가 여러 출시 전에 DirectoryServices.AccountManagement.UserPrincipal보다 선행하기 때문입니다.

Set-ADAccountPassword 인 PowerShell cmdlet을 사용하면 SecureString이됩니다.

+0

답변 해 주셔서 감사합니다. –

관련 문제