ldap wild card

hey all,

i am using php to query our ldap database but I wondered if a wild case queries work just like in mySQL.

for example, If I want to find someone called Daniel Jones, but in the search query i only put Dan Jones, I still want it to show results that include Dan Jones… if it was using mySQL I would do something like “LIKE ‘firstName%’”

I am using the LDAP function ldap_search with the filter being
[php]$filter="(&(sn=$lastName*)(givenname=$firstName))";[/php]

thanks

Sponsor our Newsletter | Privacy Policy | Terms of Service