ldap/src/main/java/no/kantega/security/api/impl/ldap/LdapConfigurable.java
/**
     * Replace and escape strings that will give problem in search
     * @param str
     * @return - string with escaped/replaced chars
     */
Replace and escape strings that will give problem in search
@param str
@return - string with escaped/replaced chars
Replace and escape strings that will give problem in search @param str @return - string with escaped / replaced chars
protected String escapeChars(String str) {
        str = str.replaceAll("\\\\", "\\\\\\\\");
        str = str.replaceAll("\\(", "\\\\28");
        str = str.replaceAll("\\)", "\\\\29");
        str = str.replaceAll("\\*", "\\\\*");
        return str;
    }
protected String escapeChars ( String str ) { str = str . replaceAll ( "\\\\" , "\\\\\\\\" ) ; str = str . replaceAll ( "\\(" , "\\\\28" ) ; str = str . replaceAll ( "\\)" , "\\\\29" ) ; str = str . replaceAll ( "\\*" , "\\\\*" ) ; return str ; }
Replace and escape strings that will give problem in search
 @param str
 @return - string with escaped/replaced chars
Replace and escape strings that will give problem in search @param str @return - string with escaped / replaced chars