Description of problem: I've configured AD server and users there have no email specified. I was not able to import users from AD because of this error: ERROR ldapauth.go:384 AddUser no email given ERROR ldapauth.go:384 AddUser no email given ERROR auth.go:266 addUsers Unable to create User:no email given ERROR auth.go:266 addUsers Unable to create User:no email given [negroni] Completed 500 Internal Server Error in 3.038561ms Version-Release number of selected component (if applicable): rhscon-ceph-0.0.6-8.el7.x86_64 rhscon-core-0.0.8-7.el7.x86_64 rhscon-ui-0.0.16-1.el7.noarch How reproducible: 100% Expected results: It will be able to import user from LDAP even if user has no email address specified.
1. if email is not configured, allow the user to be imported, with a warning message 2. Disable the Notifications and email configurations for the user without email
Patch sent to upstream for review: https://review.gerrithub.io/#/c/275284/
Tested with ceph-ansible-1.0.5-31.el7scon.noarch ceph-installer-1.0.14-1.el7scon.noarch rhscon-ceph-0.0.39-1.el7scon.x86_64 rhscon-core-0.0.39-1.el7scon.x86_64 rhscon-core-selinux-0.0.39-1.el7scon.noarch rhscon-ui-0.0.51-1.el7scon.noarch and it works.