-
Notifications
You must be signed in to change notification settings - Fork 103
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
Sympa ldap search escapes chars incorrect #234
Comments
Hi @renesepp, Can you show us datasource setting (e.g. |
include_ldap_2level_query |
Hi @renesepp, So what parameter is assigned to And I want to clarify about packet dump: By which party (Sympa or AD) and when (in conversation between them) it was sent? |
Hi @ikedas,
Sympa sent to AD 10.1.220.3=Sympa 10.1.220.3 -> 10.1.7.100 LDAP 378 searchRequest(210) "CN=Example User,OU=Teadusosakond,OU=Asekantsleri vv \28k\303\265rgharidus\5C, teadus ja,OU=Kantsleri vastutusvaldkond,OU=Haridus- ja Teadusministeerium,OU=Haridus- ja Teadusministeeriumi valitsemisala,OU=Kasutajad,DC=riik,DC=sise" baseObject AD server responded to Sympa 10.1.7.100 -> 10.1.220.3 LDAP 169 searchResDone(210) invalidDNSyntax (0000208F: LdapErr: DSID-0C090787, comment: Error processing name, data 0, v1db1) [3 results] Hex dump of the searchRequest
|
I got it. Sympa seems badly escaping result of the first level LDAP search operation at this line in Sympa/List.pm:
Can you remove (or comment out) the line above and check if AD won't complain? Note: Above is first-aid treatment specific to reporter's case: In case that value of |
Seems to fix the issue after commenting out above line you mentioned. |
@renesepp, thanks for confirming. As I wrote, we may need some time for complete fix. |
Fixed by: - Canonicalizing value of attrs1 as DN, if it is search base or root of it. - Escaping it as attributevalue in DN otherwise.
Issue #234: Sympa ldap search escapes chars incorrect
Will fixed in the next beta, maybe 6.2.31b.1 |
AD dn view: OU=Asekantsleri vv (kõrgharidus, teadus ja,OU=....
tcpdump network capture to see how sympa escapes chars:
OU=Asekantsleri vv \28k\303\265rgharidus\5C, teadus ja,OU=...
Error:
As you can see the appearance after \5C is not correctly escaped. I know its bad that AD tree contains "," chars.
So maybe bug?
The text was updated successfully, but these errors were encountered: