Changeset ee2187e in github
- Timestamp:
- Aug 7, 2012 5:54:37 AM (10 months ago)
- Children:
- 024f2ab8
- Parents:
- 887838d
- Files:
-
- 4 edited
-
plugins/new_user_identity/new_user_identity.php (modified) (3 diffs)
-
plugins/new_user_identity/package.xml (modified) (1 diff)
-
plugins/password/drivers/virtualmin.php (modified) (1 diff)
-
program/include/rcube_user.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
plugins/new_user_identity/new_user_identity.php
r48e9c14 ree2187e 20 20 * // new identity, match the user's login name against this field. 21 21 * $rcmail_config['new_user_identity_match'] = 'uid'; 22 *23 * // Use this field (from fieldmap configuration) to fill alias col of24 * // the new user record.25 * $rcmail_config['new_user_identity_alias'] = 'alias';26 22 */ 27 23 class new_user_identity extends rcube_plugin … … 39 35 { 40 36 $rcmail = rcmail::get_instance(); 41 37 42 38 if ($this->init_ldap($args['host'])) { 43 39 $results = $this->ldap->search('*', $args['user'], TRUE); … … 46 42 if (!$args['user_email'] && strpos($results->records[0]['email'], '@')) { 47 43 $args['user_email'] = rcube_idn_to_ascii($results->records[0]['email']); 48 }49 if (($alias_col = $rcmail->config->get('new_user_identity_alias')) && $results->records[0][$alias_col]) {50 $args['alias'] = $results->records[0][$alias_col];51 44 } 52 45 } -
plugins/new_user_identity/package.xml
r48e9c14 ree2187e 16 16 <active>yes</active> 17 17 </lead> 18 <date>201 1-11-21</date>18 <date>2012-08-07</date> 19 19 <version> 20 <release>1.0. 5</release>21 <api>1. 0</api>20 <release>1.0.6</release> 21 <api>1.1</api> 22 22 </version> 23 23 <stability> -
plugins/password/drivers/virtualmin.php
r6ffe0be ree2187e 49 49 $domain = $pieces[0]; 50 50 break; 51 case 8: // domain taken from alias, username left as it was52 $email = $rcmail->user->data['alias'];53 $domain = substr(strrchr($email, "@"), 1);54 break55 51 default: // username@domain 56 52 $domain = substr(strrchr($username, "@"), 1); -
program/include/rcube_user.php
r565c472 ree2187e 457 457 $dbh->query( 458 458 "INSERT INTO ".$dbh->table_name('users'). 459 " (created, last_login, username, mail_host, alias,language)".460 " VALUES (".$dbh->now().", ".$dbh->now().", ?, ?, ? , ?)",459 " (created, last_login, username, mail_host, language)". 460 " VALUES (".$dbh->now().", ".$dbh->now().", ?, ?, ?)", 461 461 strip_newlines($user), 462 462 strip_newlines($host), 463 strip_newlines($data['alias'] ? $data['alias'] : $user_email),464 463 strip_newlines($data['language'] ? $data['language'] : $_SESSION['language'])); 465 464
Note: See TracChangeset
for help on using the changeset viewer.
