Commit 23bad16b authored by Craig Andrews's avatar Craig Andrews

don't attempt to read a user's ldap password

parent ffd688b8
......@@ -96,7 +96,12 @@ class LdapAuthenticationPlugin extends AuthenticationPlugin
$registration_data = array();
foreach($this->attributes as $sn_attribute=>$ldap_attribute){
//ldap won't let us read a user's password,
//and we're going to set the password to a random string later anyways,
//so don't bother trying to read it.
if($sn_attribute != 'password'){
if(isset($registration_data['email']) && !empty($registration_data['email'])){
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment