I have a alfresco Com. 4.2.f being sync and auth with a apacheDS, as LDAP server. It works fine for almost everything, it syncs well and I can login through Alfresco/Share. But those sync users dont work correctly through CMIS. The users I create directly on Alfresco works fine, I can create folders/docs, navigate and etc, but not with the ldap ones.
In my app I have:
Map<String, String> parameters = new HashMap<String, String>();
parameters.put(SessionParameter.ATOMPUB_URL, URL_CMIS_REPOSITORY);
parameters.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
parameters.put(SessionParameter.USER, username);
parameters.put(SessionParameter.PASSWORD, password);
SessionFactory sessionFactory = SessionFactoryImpl.newInstance();
Repository repository = sessionFactory.getRepositories(parameters).get(0);
parameters.put(SessionParameter.REPOSITORY_ID, repository.getId());
Session session = sessionFactory.createSession(parameters);
And when I try, for example:
session.getObject("13fdd031-1b12-4470-9002-eb0adf039f36");
It freezes forever…
Same behavior when I try to login trhough CMIS Workbench. It works fine with Alfresco users but not with LDAP ones.
Am I doing something wrong?