import of ldap data enhancement and error handling