mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #00151
[Bug 536978] [NEW] Email not fetched from LDAP server
Public bug reported:
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.
** Affects: mahara
Importance: Undecided
Status: New
--
Email not fetched from LDAP server
https://bugs.launchpad.net/bugs/536978
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Status in Mahara ePortfolio: New
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.
Follow ups
References