-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.DirectoryServices.Protocols - Cannot use objectCategory filter on linux #43621
Comments
It might be good if |
Sure! In this case the error code I received was
|
I don't know anything about libldap, but I downloaded the sources and ldap.h contains
It would be good for LdapException to translate each of these codes to nice messages, rather than defaulting to Someone knowledgeable like @joperezr may have an idea what your issue is though. |
Do you have the ability to try the same query on Windows, against the same server? |
agreed that testing if the same code works in Windows would be valuable in case that is possible. Also, have you tried performing the search without the Search Control to see if that makes any difference?
Completely agree here, it should be straight forward to do this but I'm fine with treating it separately. |
I can confirm that the query does return results on Windows. This is a conversion of a Windows service to docker/k8s. Without the search control on linux, I am definitely able to get results. I can also do things like search with a distinguished name. Specifically though objectCategory searches will fail on linux but work on Windows. Through working with changing the search request, I did find is another problem though that I will probably open another issue for. Response sizes above the maximum allowed size will always time out on linux, regardless of the time out setting on the connection. Additionally the maximum allowed size on linux is noticeably smaller than that on Windows. |
Created #46021 to fix the codes |
Description
On linux, using a filter with
objectCategory
will result in the following:Sample:
Configuration
The text was updated successfully, but these errors were encountered: