The method System class>>validatePasswordUsingLdapServers:baseDn:filterDn:userId:password:, which validates the given LDAP login parameters, may fail reliably on the first attempt and succeed on subsequent attempts.
The reason relates to details of the internal calls to ldap_set_option(), which required an argument to be explicitly provided in some cases.
Retry the validation if the initial attempt fails.
Last updated: 3/24/15