I was trying to figure out how to cancel a long AD search in System.DirectoryServices.Protocols. Can anyone help?
I looked at the supportControl / supportedCapabilities attributes on RootDSE and they do not contain OID 1.3.6.1.1.8, so I think it means that it does not support the extended CANCEL LDAP operation, as defined here: http://tools.ietf.org / html / rfc3909
This leaves the original LDAP ABANDON command (see here for a list). But it looks like there is no DirectoryRequest Class .
Does anyone have any idea?
, : , , Abort LdapConnection. : LDAP, , LDAPMessage, MS, , . - LDAP, MS, , MS , .
, , . , , . , , , , . , . , ldap , . http://www.c-sharpcorner.com/UploadFile/LivMic/BGWorker07032007000515AM/BGWorker.aspx .Dispose() , .
If the request also returns a lot of data, you can refuse it through paging . Specify the PageResultRequestControl option in the request, giving a rather low page size (IIUC, 1000 - default page size). IIUC, you will be sending new requests every time you have a page (passing cookies from one response to the next request). When you decide to cancel the request, send another request with zero expected results.
Source: https://habr.com/ru/post/1714374/More articles:What happened to my general add-in constructor? - constructorGeneral programming - one way or another, if for clarity - if-statementJsp error when using if-else with html - javaСоветы для разработки Delphi на Mac? - delphiJavascript: Enter a keyword - javascriptHow to remove duplicate values from an array in PHP and count occurrence? - arraysArtificial Intelligence - Creative Writing - c #How to save $ .getJSON return value in jQuery - jquerySQL Server добавляет агент задания T-SQL script issue - sqlFacebook wall - facebookAll Articles