Changeset 5163 in subversion


Ignore:
Timestamp:
Sep 5, 2011 4:06:52 AM (21 months ago)
Author:
thomasb
Message:

Use new host argument as mail_domain (#1488024)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/new_user_identity/new_user_identity.php

    r4929 r5163  
    77 * This plugin requires that a working public_ldap directory be configured. 
    88 * 
    9  * @version 1.02 
     9 * @version 1.05 
    1010 * @author Kris Steinhoff 
    1111 * 
     
    4040        $rcmail = rcmail::get_instance(); 
    4141         
    42         if ($this->init_ldap()) { 
     42        if ($this->init_ldap($args['host'])) { 
    4343            $results = $this->ldap->search('*', $args['user'], TRUE); 
    4444            if (count($results->records) == 1) { 
     
    5555    } 
    5656 
    57     private function init_ldap() 
     57    private function init_ldap($host) 
    5858    { 
    5959        if ($this->ldap) 
     
    7373            $ldap_config[$addressbook], 
    7474            $rcmail->config->get('ldap_debug'), 
    75             $rcmail->config->mail_domain($_SESSION['imap_host']), 
     75            $rcmail->config->mail_domain($host), 
    7676            $match); 
    7777 
     
    8282class new_user_identity_ldap_backend extends rcube_ldap 
    8383{ 
    84     function __construct($p, $debug=false, $mail_domain=NULL, $search=null) 
     84    function __construct($p, $debug, $mail_domain, $search) 
    8585    { 
    8686        parent::__construct($p, $debug, $mail_domain); 
Note: See TracChangeset for help on using the changeset viewer.