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

Drop commas from cn in sample.csv #245

Closed
wants to merge 1 commit into from

Conversation

xavierba
Copy link
Contributor

No description provided.

@coudot
Copy link
Member

coudot commented Oct 31, 2023

I don't understand why you want to do this. The separator of fields is ; so it is possible to have , in fields value.

@xavierba
Copy link
Contributor Author

sample.csv syntax is valid, but this leads to the following error when running lsc:

ERROR - Error while synchronizing ID cn=Clarke, Jonathan,ou=People,dc=example,dc=com: java.lang.RuntimeException: org.apache.directory.api.ldap.model.exception.LdapInvalidDnException: ERR_13605_START_AT_DESCR_EXPECTED Un
expected character ',' at position 20. Expected start of attributeType descr.

@coudot
Copy link
Member

coudot commented Oct 31, 2023

You need to escape specific characters in DN.

See https://www.lsc-project.org/documentation/latest/upgrade.html#dn-escaping

<mainIdentifier>js:"cn=" + javax.naming.ldap.Rdn.escapeValue(srcBean.getDatasetFirstValueById("cn")) + ",OU=users,ou=demo,DC=example,DC=com"</mainIdentifier>

@coudot coudot closed this Oct 31, 2023
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

Successfully merging this pull request may close these issues.

2 participants