The WriteLog function was missed in your script.
I put it there. now i got following error:

LDAP://ldap.home.com/
-2147463168 An invalid directory pathname was passed

and the log :

2004/02/10 17:50:52 - TranslateName: Init error -2147352567 COM exception error "Init" ((null) - (null)) [-2147352567/80020009]
2004/02/10 17:50:52 - TranslateName: (1, ResourceDomain, 3, Domain\cyrus, 1)



_________________________
"... Great minds talk about idea' s, average minds talk about events and samll minds talks about people...!"