roundcubemail/plugins/krb_authentication/krb_authentication.php
function authenticate($args)
    {
        if (!empty($_SERVER['REMOTE_USER']) && !empty($_SERVER['KRB5CCNAME'])) {
            // Load plugin's config file
            $this->load_config();

            $rcmail = rcmail::get_instance();
            $host   = $rcmail->config->get('krb_authentication_host');

            if (is_string($host) && trim($host) !== '' && empty($args['host'])) {
                $args['host'] = rcube_utils::idn_to_ascii(rcube_utils::parse_host($host));
            }

            if (!empty($_SERVER['REMOTE_USER'])) {
                $args['user'] = $_SERVER['REMOTE_USER'];
                $args['pass'] = null;
            }

            $args['cookiecheck'] = false;
            $args['valid']       = true;
        }

        return $args;
    }
function authenticate($args)
    {
        if (!empty($_SERVER['REMOTE_USER']) && !empty($_SERVER['KRB5CCNAME'])) {
            // Load plugin's config file
            $this->load_config();

            $rcmail = rcmail::get_instance();
            $host   = $rcmail->config->get('krb_authentication_host');

            if (is_string($host) && trim($host) !== '' && empty($args['host'])) {
                $args['host'] = rcube_utils::idn_to_ascii(rcube_utils::parse_host($host));
            }

            if (!empty($_SERVER['REMOTE_USER'])) {
                $args['user'] = $_SERVER['REMOTE_USER'];
                $args['pass'] = null;
            }

            $args['cookiecheck'] = false;
            $args['valid']       = true;
        }

        return $args;
    }
function authenticate ( $ args ) { if ( ! empty ( $ _SERVER [ 'REMOTE_USER' ] ) && ! empty ( $ _SERVER [ 'KRB5CCNAME' ] ) ) { // Load plugin's config file $ this -> load_config ( ) ; $ rcmail = rcmail :: get_instance ( ) ; $ host = $ rcmail -> config -> get ( 'krb_authentication_host' ) ; if ( is_string ( $ host ) && trim ( $ host ) !== '' && empty ( $ args [ 'host' ] ) ) { $ args [ 'host' ] = rcube_utils :: idn_to_ascii ( rcube_utils :: parse_host ( $ host ) ) ; } if ( ! empty ( $ _SERVER [ 'REMOTE_USER' ] ) ) { $ args [ 'user' ] = $ _SERVER [ 'REMOTE_USER' ] ; $ args [ 'pass' ] = null ; } $ args [ 'cookiecheck' ] = false ; $ args [ 'valid' ] = true ; } return $ args ; }
Authenticate hook handler
Authenticate hook handler