Users are automatically imported from usergroups in foreman

Ldap connection set on e-groups sync task

Protect against users not found in ldap