Changeset 422 for trunk/expressoAdmin1_2/inc/class.ldap_functions.inc.php
- Timestamp:
- 09/12/08 16:53:08 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/inc/class.ldap_functions.inc.php
r414 r422 1137 1137 function get_maillist_info($uidnumber) 1138 1138 { 1139 1140 1139 /* folling referral connection */ 1141 1140 $ldap_conn_following_ref = ldap_connect($_SESSION['phpgw_info']['expresso']['cc_ldap_server']['host']); … … 1170 1169 $result['cn'] = $entry[0]['cn'][0]; 1171 1170 $result['mail'] = $entry[0]['mail'][0]; 1171 $result['description'] = utf8_decode($entry[0]['description'][0]); 1172 1172 $result['accountStatus'] = $entry[0]['accountstatus'][0]; 1173 1173 $result['phpgwAccountVisible'] = $entry[0]['phpgwaccountvisible'][0]; … … 1987 1987 $info['uid'] = $uid; 1988 1988 $info['mail'] = $params['mail']; 1989 $info['description'] = utf8_encode($params['description']); 1989 1990 1990 1991 if ($params['accountStatus'] == 'on') … … 2070 2071 2071 2072 $uid = $params['uid']; 2072 $justthese = array("accountStatus", "phpgwAccountVisible", "cn", "mail", "mailForwardingAddress");2073 2074 $institutional_accounts = ldap_search($this->ldap, $GLOBALS['phpgw_info']['server']['ldap_context'], ("(&(phpgwAccountType=i)(uid=$uid))") , $justthese);2073 //$justthese = array("accountStatus", "phpgwAccountVisible", "cn", "mail", "mailForwardingAddress", "description"); 2074 2075 $institutional_accounts = ldap_search($this->ldap, $GLOBALS['phpgw_info']['server']['ldap_context'], ("(&(phpgwAccountType=i)(uid=$uid))")); 2075 2076 $entrie = ldap_get_entries($this->ldap, $institutional_accounts); 2076 2077 … … 2092 2093 $return['cn'] = $entrie[0]['cn'][0]; 2093 2094 $return['mail'] = $entrie[0]['mail'][0]; 2095 $return['description'] = utf8_decode($entrie[0]['description'][0]); 2094 2096 2095 2097 if ($entrie[0]['mailforwardingaddress']['count'] > 0)
Note: See TracChangeset
for help on using the changeset viewer.