I have created the php code that will search by first name only, search by last name only and that will narrow the search down if you enter more criteria. But for some reason, it won't return the results if I search just for only a telephone number or only an email address. I have used a sniffer so I know if gets the information and even does the search but it won't return the results. Does any one know how to fix this problem or have any suggestions?
LDAP - Search by only phone number
I don't know the structure but did you try it with filter rules like
(&(objectclass=)(phone=123*))
my filter works fine. it gets the information from the database (found that out with ethereal) but it just won't output it to the screen. It times out and that part is on the ldap server side. But my problem is, it gets the information, so why won't it output it like it does when i search for just first name or just last name?