We have a custom Grails application that is using Spring Security for LDAP authentication. The user DNs contain commas (e.g., "CN=Smith\, John,CN=Users,DC=example,DC=com"), but our admin user's DN does not (e.g., "CN=peadmin,CN=Users,DC=example,DC=com"). When I run the application from the Grails server, which is essentially Tomcat, everything authenticates fine. When I build the WAR and deploy to WebSphere AS 7, I can only log in with the admin user. The exception in our log complains about an unexpected comma, which says that the application is not properly parsing/escaping the DN when running on WAS.
After upgrading to Spring Security 3.0.4, here is the specific exception message we get:
2011-04-07 20:58:41,975 [WebContainer : 0] ERROR controller.LoginController - org.springframework.security.authentication.AuthenticationServiceException: Failed to parse DN; nested exception is org.springframework.ldap.core.ParseException: Encountered "" at line 1, column 20. Was expecting: ...