Affects Version/s: 6.2.X EE, 7.0.X, Master
Component/s: Application Security > LDAP
The issue belongs to one improvement issue from user experience. When constructs an initial LDAP context, if it fails, the user hope can see the detailed cause reasons so that the user can check the issue better.
1. Set up one apache ldap.
2. Go to Control Panel-> Configuration
>Instances Settings>Authentication->LDAP, add one LDAP server.
3. Choose the Apache Directory Server.
4. Enter wrong connection info (wrong port number: 10) and then click "Test LDAP Connection".
Only the infos "Liferay has failed to connect to the LDAP server. Please check your configuration and verify that the LDAP server is running." display in UI.
Besides UI infos display, the root exception should be printed in the log so that user can analyze the failure by using the detailed exception stack. For example, when input the port number "103898", the below infos should be printed in the log.