From a1aa3788b93f5900f71c2702f3bc42a6b28f5f20 Mon Sep 17 00:00:00 2001 From: ceb Date: Thu, 14 Mar 2002 02:26:21 +0000 Subject: [PATCH] added function to fetch some accountsdata --- phpgwapi/inc/class.accounts_ldap.inc.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/phpgwapi/inc/class.accounts_ldap.inc.php b/phpgwapi/inc/class.accounts_ldap.inc.php index 8af54de104..0599d3f839 100644 --- a/phpgwapi/inc/class.accounts_ldap.inc.php +++ b/phpgwapi/inc/class.accounts_ldap.inc.php @@ -808,6 +808,20 @@ return; } + function get_account_data($account_id) + { + $this->account_id = $account_id; + $this->read_repository(); + + $data[$this->data['account_id']]['lid'] = $this->data['account_lid']; + $data[$this->data['account_id']]['firstname'] = $this->data['firstname']; + $data[$this->data['account_id']]['lastname'] = $this->data['lastname']; + $data[$this->data['account_id']]['fullname'] = $this->data['fullname']; + $data[$this->data['account_id']]['type'] = $this->data['account_type']; + + return $data; + } + function getDNforID($_accountid = '') { $_account_id = get_account_id($_accountid);