fr Francis:
# This happens because many A/D servers are configured to 
# return what LDAP
# calls "Search-result referrals"- an additional LDAP URL that you are
# encouraged to query in order to get additional relevant results. The
# Net::LDAP library was not supporting this result-type. I'm in 
# the process of adding it in now and will produce a patch shortly. 
# Has anyone else encountered this problem?

if you care to show us the script, i will also test it here.
thanks and kind regards -botp