Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.
Nivel 1
Nivel 2
Iniciar sesión en la comunidad
Iniciar sesión para ver todas las insignias
Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.
Hello,
I was trying to call method "syncExternalUsers(cn=54795,ou=internal,ou=users,o=grundfos)" and I got the error from log.
java.lang.IllegalArgumentException: org.apache.sling.commons.json.JSONException: A JSONArray text must start with '[' at character 1 of cn=54795,ou=internal,ou=users,o=grundfos
If I call the method "(syncExternalUsers([54795])" and it is working find, but can not search the information from ldap.
syncExternalUsers([cn=54795,ou=internal,ou=users,o=grundfos])
syncExternalUsers([cn\=54795\,ou\=internal\,ou\=users\,o\=grundfos])
If I call this method "syncAllExternalUsers()" and it is working find and can sync all user to cq.
I would like to know how to invoke the method(syncExternalUsers() of jmx ldap console) to sync user from ldap to cq?
I mean which parameter does this method "syncExternalUsers(?)" needed?
Below is the user information on ldap server.
dn: cn=54795,ou=internal,ou=users,o=grundfos
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: ePerson
cn: 54795
userPassword:: e1NIQX11bzFuL2JHcHl2UGRuTWpaeVlhT1Y2LzhKekk9
uid: 54795
givenName: Jia
sn: Bai
¡Resuelto! Ir a solución.
Vistas
Respuestas
Total de me gusta
Looking at the exception it seems that you are passing string instead of array of
strings. Here is the method signature
syncExternalUsers(String[] externalIds)
Wrap your users in String array and try again;
Vistas
Respuestas
Total de me gusta
Looking at the exception it seems that you are passing string instead of array of
strings. Here is the method signature
syncExternalUsers(String[] externalIds)
Wrap your users in String array and try again;
Vistas
Respuestas
Total de me gusta
Thanks for you input.![]()
This is working now with ["cn=54795,ou=internal,ou=users,o=grundfos"].
Vistas
Respuestas
Total de me gusta
Thanks for your input.![]()
This is working now with ["cn=54795,ou=internal,ou=users,o=grundfos"].
Vistas
Respuestas
Total de me gusta
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas