Verified Commit b048c453 authored by Jonathan Swaelens's avatar Jonathan Swaelens
Browse files

:sparkles: feat(simpleplugin): Add callerMAIL as macro


Add callerMAIL as macro

Signed-off-by: Jonathan Swaelens's avatarJonathan Swaelens <jonathan.swaelens@fusiondirectory.org>
Showing with 4 additions and 0 deletions
+4 -0
...@@ -109,6 +109,9 @@ class userinfo ...@@ -109,6 +109,9 @@ class userinfo
if (isset($attrs['givenName'][0])) { if (isset($attrs['givenName'][0])) {
$this->givenName = $attrs['givenName'][0]; $this->givenName = $attrs['givenName'][0];
} }
if (isset($attrs['mail'][0])) {
$this->mail = $attrs['mail'][0];
}
/* Assign user language */ /* Assign user language */
if (isset($attrs['preferredLanguage'][0])) { if (isset($attrs['preferredLanguage'][0])) {
......
...@@ -1560,6 +1560,7 @@ class simplePlugin implements SimpleTab ...@@ -1560,6 +1560,7 @@ class simplePlugin implements SimpleTab
$addAttrs['callerUID'] = $ui->uid; $addAttrs['callerUID'] = $ui->uid;
$addAttrs['callerSN'] = $ui->sn; $addAttrs['callerSN'] = $ui->sn;
$addAttrs['callerGIVENNAME'] = $ui->givenName; $addAttrs['callerGIVENNAME'] = $ui->givenName;
$addAttrs['callerMAIL'] = $ui->mail;
$addAttrs['dn'] = $this->dn; $addAttrs['dn'] = $this->dn;
$addAttrs['location'] = $config->current['NAME']; $addAttrs['location'] = $config->current['NAME'];
......
Supports Markdown
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