Hi,
I was unable to pull users from LDAP to syncope. I did pretty much
everything from this great tutorial :
http://coheigea.blogspot.it/2016/08/pulling-users-and-groups-from-ldap-into.html
After executing PULL TASK I receive failure with following stacktrace :
15:49:33.239 DEBUG Enter: search(ObjectClass: __ACCOUNT__, null,
org.apache.syncope.core.provisioning.java.ConnectorFacadeProxy$2@2ba80eb7,
OperationOptions:
{ATTRS_TO_GET:[__PASSWORD__,__NAME__,cn,__UID__,__ENABLE__],PAGE_SIZE:100})
Method: search
15:49:33.244 DEBUG Enter: executeQuery(ObjectClass: __ACCOUNT__, null,
org.identityconnectors.framework.impl.api.local.operations.SearchImpl$1@4ebdf2d1,
OperationOptions:
{ATTRS_TO_GET:[__PASSWORD__,__NAME__,cn,__UID__,__ENABLE__],PAGE_SIZE:100})
Method: executeQuery
15:49:33.246 WARN Attribute __ENABLE__ of object class __ACCOUNT__ is not
mapped to an LDAP attribute Method: getLdapAttribute
15:49:33.247 DEBUG Searching in [ou=Users,dc=example,dc=org] with filter
(&(&(objectClass=top)(objectClass=person)(objectClass=organizationalPerson)(objectClass=inetOrgPerson))(cn=*))
and SearchControls: {returningAttributes=[cn, description, userPassword],
scope=SUBTREE} Method: doSearch
15:49:33.260 WARN Attribute __ENABLE__ of object class __ACCOUNT__ is not
mapped to an LDAP attribute Method: getLdapAttribute
15:49:33.260 DEBUG Exception: Method: executeQuery
java.lang.IllegalArgumentException: Must be a single value.
at
org.identityconnectors.framework.common.objects.AttributeBuilder.checkSingleValue(AttributeBuilder.java:200)
~[connector-framework-1.4.2.0.jar:?]
at
org.identityconnectors.framework.common.objects.AttributeBuilder.getSingleStringValue(AttributeBuilder.java:211)
~[connector-framework-1.4.2.0.jar:?]
at
org.identityconnectors.framework.common.objects.AttributeBuilder.build(AttributeBuilder.java:184)
~[connector-framework-1.4.2.0.jar:?]
at
net.tirasa.connid.bundles.ldap.schema.LdapSchemaMapping.createAttribute(LdapSchemaMapping.java:305)
~[net.tirasa.connid.bundles.ldap-1.5.1.jar:?]
at
net.tirasa.connid.bundles.ldap.search.LdapSearch.createConnectorObject(LdapSearch.java:285)
~[net.tirasa.connid.bundles.ldap-1.5.1.jar:?]
at
net.tirasa.connid.bundles.ldap.search.LdapSearch.access$000(LdapSearch.java:67)
~[net.tirasa.connid.bundles.ldap-1.5.1.jar:?]
at
net.tirasa.connid.bundles.ldap.search.LdapSearch$1.handle(LdapSearch.java:141)
~[net.tirasa.connid.bundles.ldap-1.5.1.jar:?]
at
net.tirasa.connid.bundles.ldap.search.PagedSearchStrategy.doSearch(PagedSearchStrategy.java:128)
~[net.tirasa.connid.bundles.ldap-1.5.1.jar:?]
at
net.tirasa.connid.bundles.ldap.search.LdapInternalSearch.execute(LdapInternalSearch.java:67)
~[net.tirasa.connid.bundles.ldap-1.5.1.jar:?]
at
net.tirasa.connid.bundles.ldap.search.LdapSearch.execute(LdapSearch.java:137)
~[net.tirasa.connid.bundles.ldap-1.5.1.jar:?]
at
net.tirasa.connid.bundles.ldap.LdapConnector.executeQuery(LdapConnector.java:136)
~[?:?]
at
net.tirasa.connid.bundles.ldap.LdapConnector.executeQuery(LdapConnector.java:57)
~[?:?]
at
org.identityconnectors.framework.impl.api.local.operations.SearchImpl.rawSearch(SearchImpl.java:171)
~[connector-framework-internal-1.4.2.0.jar:?]
at
org.identityconnectors.framework.impl.api.local.operations.SearchImpl.search(SearchImpl.java:130)
~[connector-framework-internal-1.4.2.0.jar:?]
at sun.reflect.GeneratedMethodAccessor898.invoke(Unknown Source)
~[?:?]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.8.0_131]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
at
org.identityconnectors.framework.impl.api.local.operations.ConnectorAPIOperationRunnerProxy.invoke(ConnectorAPIOperationRunnerProxy.java:98)
~[connector-framework-internal-1.4.2.0.jar:?]
at com.sun.proxy.$Proxy308.search(Unknown Source) ~[?:?]
at sun.reflect.GeneratedMethodAccessor898.invoke(Unknown Source)
~[?:?]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.8.0_131]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
at
org.identityconnectors.framework.impl.api.local.operations.ThreadClassLoaderManagerProxy.invoke(ThreadClassLoaderManagerProxy.java:96)
~[connector-framework-internal-1.4.2.0.jar:?]
at com.sun.proxy.$Proxy308.search(Unknown Source) ~[?:?]
at sun.reflect.GeneratedMethodAccessor898.invoke(Unknown Source)
~[?:?]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.8.0_131]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
at
org.identityconnectors.framework.impl.api.BufferedResultsProxy$BufferedResultsHandler.run(BufferedResultsProxy.java:165)
~[connector-framework-internal-1.4.2.0.jar:?]
I'm missing something?
Regards,
Sasha