cancel
Showing results for 
Search instead for 
Did you mean: 

LDAPS over port 636

sdwilly22
Champ in-the-making
Champ in-the-making
Has anyone  gotten Activiti to integrate with ldap over port 636 with ldaps?

I am using org.apache.directory.ldap.client.api.LdapConnection;

and trying to connect like this.

LdapConnection connection = new LdapConnection(connectionParams.getLdapServer(), connectionParams.getLdapPort(),true);


But I am getting an error like this

Caused by: org.apache.directory.ldap.client.api.exception.InvalidConnectionException: Cannot connect on the server, the connection is null
   at org.apache.directory.ldap.client.api.LdapConnection.checkSession(LdapConnection.java:253)
   at org.apache.directory.ldap.client.api.LdapConnection.bindAsync(LdapConnection.java:1328)
   at org.apache.directory.ldap.client.api.LdapConnection.bind(LdapConnection.java:1104)
   at org.apache.directory.ldap.client.api.LdapConnection.bind(LdapConnection.java:1012)
   at org.bpmnwithactiviti.chapter10.ldap.LDAPUserManager.checkPassword(LDAPUserManager.java:122)
2 REPLIES 2

sdwilly22
Champ in-the-making
Champ in-the-making
This was my own error. I had ldaps:// in the LDAP connection parameters. That was not the format it was looking for. Once I fixed that bug and got my keystore certificate imported everything worked.

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
And how was this activiti related?