Security fix 2/4 for CVE-2010-3069

This fixes only source/libads/ldap.c