Improve a bit ldap.php