sadhu suresh created CLOUDSTACK-1494: ----------------------------------------
Summary: LDAP:UI:showing wrong warning message Key: CLOUDSTACK-1494 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1494 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the default.) Components: Management Server, UI Affects Versions: 4.2.0 Reporter: sadhu suresh Assignee: Pranav Saxena 1. navigate till LDAP configuration wizard 2. Provide all the valid values except query filer(provide some text "abc" 3.Then Provide query filer as specified in the warming message (like %e) 3.click on "OK" button and try to login with external domain credentials(LDAP) Actual result: "QueryFilter should contain at least one of the substitutions: %u, %n or %e: ff" Warning message says query filter should contain %e,%u and if i enter %e as query filter and LDAP authentication failed with following 2013-03-04 05:40:12,530 DEBUG [cloud.api.ApiServlet] (catalina-exec-10:null) ===START=== 10.252.249.82 -- POST null 2013-03-04 05:40:12,531 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-10:null) Attempting to log in user: test in domain 1 2013-03-04 05:40:12,531 DEBUG [server.auth.MD5UserAuthenticator] (catalina-exec-10:null) Retrieving user: test 2013-03-04 05:40:12,533 DEBUG [server.auth.MD5UserAuthenticator] (catalina-exec-10:null) Password does not match 2013-03-04 05:40:12,533 DEBUG [server.auth.LDAPUserAuthenticator] (catalina-exec-10:null) Retrieving user: test 2013-03-04 05:40:12,595 WARN [server.auth.LDAPUserAuthenticator] (catalina-exec-10:null) Authentication Failed ! Missing 'equals' 2013-03-04 05:40:12,612 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-10:null) Unable to authenticate user with username test in domain 1 2013-03-04 05:40:12,616 WARN [cloud.user.AccountManagerImpl] (catalina-exec-10:null) Login attempt failed. You have 4 attempt(s) remaining 2013-03-04 05:40:12,616 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-10:null) User: test in domain 1 has failed to log in Expected result: LDAP Config APi expects the query filter in the below format (&(uid=%u)) (&(mail=%e) Either change the warning message to enter query filter in the above format or UI should convert to above format implicitly when customer enter only %e or%u as query filter -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira