Preventing LDAP injection vulnerabilities in my code .NET
I have implemented LDAP authonication in project ,now i want Preventing LDAP injection vulnerabilities in my code .NETi have below code
Private Sub Initialize(ByVal id As String, ByVal password As String, ByVal searchVal As String)
searcher.Filter = "(&(objectClass=user)(samaccountname=" + searchVal + "))"
searcher.ReferralChasing = ReferralChasingOption.All
now i want whitelist this code when i run ,HP fifty , it is showing crictcal error , how do i fix this issue ,can any help me out
Thanks
praveen