Skip to content

Commit

Permalink
Fix to LDAP authentication as missing firstname & surname
Browse files Browse the repository at this point in the history
git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@439 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
Simon Atack committed Sep 24, 2012
1 parent b8754b2 commit 16b5f0d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions library/Xerte/Authentication/Ldap.php
Expand Up @@ -29,6 +29,9 @@ public function getFirstname()
if (isset($this->_record['fn'])) {
return $this->_record['fn'];
}
if (isset($this->_record['firstname'])) {
return $this->_record['firstname'];
}
return null;
}

Expand All @@ -37,6 +40,9 @@ public function getSurname()
if (isset($this->_record['sn'])) {
return $this->_record['sn'];
}
if (isset($this->_record['surname'])) {
return $this->_record['surname'];
}
return null;
}

Expand Down

0 comments on commit 16b5f0d

Please sign in to comment.