Hello All,
I know this should be a simple issue but I am stuck up in configuring the LDAP server with Activiti Databse.
This is what my requirement is:
I am using spring boot 2.0 and activiti 6.0 where the processes are executed by means of activiti. I am trying to assign the process to a User which are present in the LDAP active directory services. I followed the activiti guide and configured the same.
I dont see any logs for LDAP when i run the application and when i use the below query it returns null.
LDAP config:
@bean(name="configurators")
@Autowired
public List<ProcessEngineConfigurator> configurators () {
List<ProcessEngineConfigurator> configurators = new ArrayList<ProcessEngineConfigurator>();
LDAPConfigurator ldapConfigurator = new LDAPConfigurator();
ldapConfigurator.setServer(config.getLdapServerUrl());
ldapConfigurator.setPort(Integer.parseInt(config.getLdapPort()));
ldapConfigurator.setSecurityAuthentication("simple");//Not required by default its simple
ldapConfigurator.setUser("admin");
ldapConfigurator.setPassword("test123");
ldapConfigurator.setBaseDn("ou=TEST,dc=TEST,dc=ORG");
ldapConfigurator.setQueryUserByUserId("(&(objectClass=person,user)(uid={0}))");
ldapConfigurator.setQueryUserByFullNameLike("(&(objectClass=person, user)(|({0}=*{1}*)({2}=*{3}*)))");
ldapConfigurator.setQueryGroupsForUser("(&(objectClass=person, user)(uniqueMember={0}))");
return configurators;
}
Test method:
List<User> users = identityService.createUserQuery().list();
User user = identityService.createUserQuery().userId("id1").singleResult();
List<Group> groupList = identityService.createGroupQuery().groupMember("id1").list();
//The above results in null .
Am i missing anything ? How do i figure out whenther activiti is trying to establish the connection to LDAP or not.
Any help appreciated. I