apply patch http://drupal.org/files/ldap_server_init-1775658-1.patch to ldap_authentication.inc