Re: ldap_search filter filter?

From: Date: Fri, 16 Jul 2010 16:02:13 +0000
Subject: Re: ldap_search filter filter?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-306951@lists.php.net to get a copy of this message
On Fri, Jul 16, 2010 at 11:42 AM, Richard Lynch <ceo@l-i-e.com> wrote: > Any Best Practice suggestions for potentially hostile user input being > sent to ldap_search($ldap, "(username=$_POST[username])"); > > Something like an ldap_escape? > > Please cc me on replies. Thanks. > Long time no see, Richard. There are a couple ldap_escape() functions in the comments here. I don't know enough about ldap to know how robust they are. I have used one of them, but only on a few intranet sites where the probability of malicious activity is fairly low. http://www.php.net/manual/en/function.ldap-search.php Andrew

« previous php.general (#306951) next »