Add ldap_resync_on_reconnect option
Remove possibly undef value reference