죽은 AD 서버에 연결하는 데 오랜 시간이 걸리고 결국 실패하는 DirectoryEntry 개체에 문제가 있습니다. 특정 시간 내에 연결할 수 없으면 다음 시간을 시도하기 위해 시간 초과를 설정할 수 있습니까?DirectoryEntry Timeout
2
A
답변
0
직접 DirectoryEntry에 대한 시간 초과 옵션이 없습니다.
DirectorySearcher를 사용하고 ClientTimeout을 설정할 수 있습니다 (경로별로 하나의 개체 만 찾는 경우에도 해당). 또는 새 스레드 또는 BackgroundWorker에서 디렉터리 작업을 수행하고 자신의 시간 제한을 제어하십시오.
0
서버에 직접 LdapConnection
을 생성하는 것이 좋습니다. 이렇게하면 시간 제한을 지정하고 사용중인 메소드를 정교하게 제어 할 수 있습니다.
이 하위 수준으로 가지 않고도 .NET 클래스는 LDAP + SSL, Kerberos 및 마지막으로 RPC를 사용하려고 시도합니다. 이 과정에서 지연/시간 초과가 발생할 수 있습니다.
관련 문제
- 1. wait()/wait (timeout)/sleep (timeout)?
- 2. WebService timeout
- 3. readUTF timeout
- 4. Swingworker Timeout
- 5. Tomcat Timeout?
- 6. Activator.CreateInstance timeout
- 7. SAXReader() timeout
- 8. HttpSession timeout
- 9. IIS : DirectoryEntry 예외 : "액세스가 거부되었습니다"?
- 10. DirectoryEntry() 호출 후 System.IO.FileNotFoundException 발생
- 11. Thread.Sleep (timeout)과 ManualResetEvent.Wait (timeout)의 차이점은 무엇입니까?
- 12. SQL Strange Timeout 문제
- 13. Curl timeout issue
- 14. ActiveMQ createSession timeout
- 15. ASP.net Ajax Timeout
- 16. jquery timeout solution?
- 17. sql clr timeout
- 18. msxml XMLHTTPRequest 및 timeout
- 19. C# SMTPClient Timeout 질문
- 20. NServiceBus TimeOut Manager
- 21. System.IO.Ports.SerialPort Write() Timeout
- 22. 세션 변수 timeout prob
- 23. JBoss Session Timeout
- 24. timeOut in beforeLoad 이벤트
- 25. Flex URLRequest Timeout
- 26. timeout = 0 인 WaitForSingleObjects
- 27. CXF & SSL : Timeout Troubles
- 28. BlackBerry 6.0의 LocationProvider Timeout?
- 29. AlertDialog with Timeout
- 30. AsyncSocket set timeout