Lines Matching defs:user

57     * @param string $username The username of the user to add the Exchange account to
58 * @param array $storageGroup The mailbox, Exchange Storage Group, for the user account, this must be a full CN
60 * @param string $emailAddress The primary email address to add to this user
91 $result = $this->adldap->user()->modify($username, $attributes, $isGUID);
103 * @param string $username The username of the user to add the X400 to to
119 // Find the dn of the user
120 $user = $this->adldap->user()->info($username, array("cn","proxyaddresses"), $isGUID);
121 if ($user[0]["dn"] === NULL) { return false; }
122 $userDn = $user[0]["dn"];
146 * @param string $username The username of the user to add the Exchange account to
147 * @param string $emailAddress The email address to add to this user
162 // Find the dn of the user
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;
215 * @param string $username The username of the user to add the Exchange account to
216 * @param string $emailAddress The email address to add to this user
225 // Find the dn of the user
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] == 'SMTP:' . $emailAddress) {
236 elseif (strstr($user[0]['proxyaddresses'][$i], 'smtp:') !== false && $user[0]['proxyaddresses'][$i] == 'smtp:' . $emailAddress) {
255 * @param string $username The username of the user to add the Exchange account to
265 // Find the dn of the user
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];
309 // Find the dn of the user
310 $user = $this->adldap->contact()->info($distinguishedName, array("cn","displayname"));
311 if ($user[0]["displayname"] === NULL) { return false; }
312 $mailNickname = $user[0]['displayname'][0];