Lines Matching refs:user

91         $result = $this->adldap->user()->modify($username, $attributes, $isGUID);
120 $user = $this->adldap->user()->info($username, array("cn","proxyaddresses"), $isGUID);
121 if ($user[0]["dn"] === NULL) { return false; }
122 $userDn = $user[0]["dn"];
163 $user = $this->adldap->user()->info($username, array("cn","proxyaddresses"), $isGUID);
164 if ($user[0]["dn"] === NULL){ return false; }
165 $userDn = $user[0]["dn"];
168 if (is_array($user[0]["proxyaddresses"]) && $default === true) {
170 for ($i=0;$i<sizeof($user[0]['proxyaddresses']);$i++) {
171 if (strstr($user[0]['proxyaddresses'][$i], 'SMTP:') !== false) {
172 … $user[0]['proxyaddresses'][$i] = str_replace('SMTP:', 'smtp:', $user[0]['proxyaddresses'][$i]);
174 if ($user[0]['proxyaddresses'][$i] != '') {
175 $modAddresses['proxyAddresses'][$i] = $user[0]['proxyaddresses'][$i];
178 … $modAddresses['proxyAddresses'][(sizeof($user[0]['proxyaddresses'])-1)] = 'SMTP:' . $emailAddress;
226 $user = $this->adldap->user()->info($username, array("cn","proxyaddresses"), $isGUID);
227 if ($user[0]["dn"] === NULL) { return false; }
228 $userDn = $user[0]["dn"];
230 if (is_array($user[0]["proxyaddresses"])) {
232 for ($i=0;$i<sizeof($user[0]['proxyaddresses']);$i++) {
233 …if (strstr($user[0]['proxyaddresses'][$i], 'SMTP:') !== false && $user[0]['proxyaddresses'][$i] ==…
236 …elseif (strstr($user[0]['proxyaddresses'][$i], 'smtp:') !== false && $user[0]['proxyaddresses'][$i…
266 $user = $this->adldap->user()->info($username, array("cn","proxyaddresses"), $isGUID);
267 if ($user[0]["dn"] === NULL){ return false; }
268 $userDn = $user[0]["dn"];
270 if (is_array($user[0]["proxyaddresses"])) {
272 for ($i=0;$i<sizeof($user[0]['proxyaddresses']);$i++) {
273 if (strstr($user[0]['proxyaddresses'][$i], 'SMTP:') !== false) {
274 … $user[0]['proxyaddresses'][$i] = str_replace('SMTP:', 'smtp:', $user[0]['proxyaddresses'][$i]);
276 if ($user[0]['proxyaddresses'][$i] == 'smtp:' . $emailAddress) {
277 … $user[0]['proxyaddresses'][$i] = str_replace('smtp:', 'SMTP:', $user[0]['proxyaddresses'][$i]);
279 if ($user[0]['proxyaddresses'][$i] != '') {
280 $modAddresses['proxyAddresses'][$i] = $user[0]['proxyaddresses'][$i];
310 $user = $this->adldap->contact()->info($distinguishedName, array("cn","displayname"));
311 if ($user[0]["displayname"] === NULL) { return false; }
312 $mailNickname = $user[0]['displayname'][0];