Fix issue #18308 by adding a retry mechanism in validate_windows_cred function
Merge pull request #18427 from billcchung/develop

Fix issue #18308