Since 3.5, this has been happening if one of the fields is empty in LDAP. I have a tracker ticket in about it. https://tracker.moodle.org/browse/MDL-63207
Since 3.5, this has been happening if one of the fields is empty in LDAP. I have a tracker ticket in about it. https://tracker.moodle.org/browse/MDL-63207