Fixed a bug where the user would insert before the LDAP search finished.