Under which circumstances can ldap_result return 0? It is not documented anywhere and having briefly examined the source code I think it looks like an incomplete search but I can not be really sure without carefully examining the trace (what I am doing right now). Can anybody shed some light? Thanks, Yuri Rabover 3Cube, Inc.