ldap_search() and ldap_result()
I try to retrieve address book from LDAP server. I've got LDAP handle by ldap_init() and bind it by ldap_bind() but cannot get a result. This is how I call a search filter = 'objectClass=*'; attr(1) = 'name'; iSearch = search(handle : 'DC=sssi,DC=local,OU=Retail Concepts,OU=Home Office' : 2 : filter : attr : 1); then I try to get a result iResult = result(handle:0:0: *null : %Addr(iSearch)); I do not know how to specify timeout (4th parameter) Anyway the search return 2 and it is suspicious because it is have a lot of entries. This is hierarchy of ldap server sssi.local OU=Retail Concepts OU=Home Office OU=Stores OU=Distributions Please, tell me how to correct search.