Email not fetched from LDAP server

Bug #536978 reported by Andrej Vitez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Richard Mansfield

Bug Description

Hello there,

I just found out that email address is not fetched from LDAP server when a user is authenticating for the first time. Institution uses only LDAP method. "Update user info on login" is disabled, "emailfield" is set.

While browsing through auth/ldap/lib.php function: authenticate_user_account(...) I've noticed that $ldapattributes does not contain "emailfield" entry. Was this forgotten or excluded purposely?

I've added (after line 125)

     $ldapattributes['email'] = $this->config['emailfield' ];

also changed line 133

     $fieldstoimport = array('firstname', 'lastname', 'email');

The problem is solved, at least for me.

Changed in mahara:
importance: Undecided → High
milestone: none → 1.3.0
Changed in mahara:
status: New → Triaged
Changed in mahara:
assignee: nobody → Richard Mansfield (richard-mansfield)
Revision history for this message
Richard Mansfield (richard-mansfield) wrote :

Thanks Andrej, I've just tested this and it works fine for me too.

Changed in mahara:
status: Triaged → Fix Committed
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.