I have a script that does and LDAP query based on username password passed from form. if the password contains these 3 characters in a row !@# the script bombs out. It works fine with just 1 of them or 2 of them, but not all 3. Has me stumped.
Just a guess: maybe you need to apply ldap_escape() to the string?
Also just guessing: the script gives you an error message explaining why it "bombed out"?