Hi,

I'm syncing from an AD that has special characters in the DN:
ou=unit & 1,dc=example,dc=com

I have followed the guide in
https://lsc-project.org/documentation/2.0/configuration/connections/ldap

When I define the <baseDn> in a task I can use CDATA and enter the
text as is without any problems. But in the connection <url> tag I
must escape the spaces as '%20' and ampersand as eith %26 or &amp;.
If I try to use CDATA, I get this error:
Nov 19 05:45:35 - INFO  - Connecting to LDAP server
ldap://ad.example.com:389/ou=user & 1,dc=example,dc=com as
[email protected]
Nov 19 05:45:35 - WARN  - Your baseDn settings (ou=unit &
1,dc=example,dc=com) does not end with the LDAP naming context
(ou=user). This is probably an error ! For LSC 1.X users, this is part
of the changelog to 2.X.
Nov 19 05:45:35 - ERROR - javax.naming.NamingException: [LDAP: error
code 1 - 000020D6: SvcErr: DSID-0310081B, problem 5012 (DIR_ERROR),
data 0


Using '%20' & '%26' works but it's somewhat cumbersome, is there a way
similar to CDATA that works in the <url> tag?

Thanks,
Lior.
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users

Reply via email to