I am Using SearchControls constraints = new SearchControls(); NamingEnumeration 
answer = ctx.search("DC=YourDomain,DC=com", "sAMAccountName=" + username, 
constraints); when i Run the Varacode Dynamic scan i am getting the Improper 
Neutralization of Special Elements
used in an LDAP Query ('LDAP Injection') when i debug i can see { constraints } 
is printing Special Characters like example ( specila@345678) so any solution 
or else any other alternate way to use instead of SearchControls

Reply via email to