Skip to content
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

Comma values in query cause LDAPLocalException #194

Open
RyanGaudion opened this issue Feb 7, 2022 · 0 comments
Open

Comma values in query cause LDAPLocalException #194

RyanGaudion opened this issue Feb 7, 2022 · 0 comments

Comments

@RyanGaudion
Copy link

Might be related to #175 - When running the following code I receive the error below:

var searchFilter = "(&(objectClass=group)(member:1.2.840.113556.1.4.1941:=CN=Ryan\\, Gaudion,CN=w,DC=x,DC=y,DC=z,DC=com))";
LdapSearchResults results = (LdapSearchResults)connection.Search(config.SearchBase, LdapConnection.ScopeSub, searchFilter, null, false, cons);

Exception:
{"Type":"Novell.Directory.Ldap.LdapLocalException", "ResultCode":87, "Message":"Filter Error", "TargetSite":"Byte[] UnescapeString(System.String)", "StackTrace":" at Novell.Directory.Ldap.Rfc2251.RfcFilter.UnescapeString(String stringRenamed)\n at Novell.Directory.Ldap.Rfc2251.RfcFilter.ParseFilterComp()\n at Novell.Directory.Ldap.Rfc2251.RfcFilter.ParseFilterList()\n at Novell.Directory.Ldap.Rfc2251.RfcFilter.ParseFilterComp()\n at Novell.Directory.Ldap.Rfc2251.RfcFilter.ParseFilter()\n at Novell.Directory.Ldap.Rfc2251.RfcFilter..ctor(String filter)\n at Novell.Directory.Ldap.LdapSearchRequest..ctor(String baseRenamed, Int32 scope, String filter, String[] attrs, Int32 dereference, Int32 maxResults, Int32 serverTimeLimit, Boolean typesOnly, LdapControl[] cont)\n at Novell.Directory.Ldap.LdapConnection.Search......

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant