From 16b5f0d3362c469dc03ed85b11db692ad15f94ff Mon Sep 17 00:00:00 2001 From: Simon Atack Date: Mon, 24 Sep 2012 15:45:43 +0000 Subject: [PATCH] Fix to LDAP authentication as missing firstname & surname git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@439 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641 --- library/Xerte/Authentication/Ldap.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/Xerte/Authentication/Ldap.php b/library/Xerte/Authentication/Ldap.php index 6cb5f7679d..009e1de0c3 100755 --- a/library/Xerte/Authentication/Ldap.php +++ b/library/Xerte/Authentication/Ldap.php @@ -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; } @@ -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; }