GUAC-586: Associate unique identifier with each AuthenticationProvider.

This commit is contained in:
Michael Jumper committed 2015-08-28 12:14:02 -07:00
1 parent f190f7f1a7
commit b0ac5d22ff
8 files changed
+75 -13

No files matched your search

@@ -74,6 +74,11 @@ public class LDAPAuthenticationProvider extends SimpleAuthenticationProvider {
environment = new LocalEnvironment();
}
@Override
public String getIdentifier() {
return "ldap";
}
// Courtesy of OWASP: https://www.owasp.org/index.php/Preventing_LDAP_Injection_in_Java
private static String escapeLDAPSearchFilter(String filter) {
StringBuilder sb = new StringBuilder();