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

            $rcmail  = rcmail::get_instance();
            $context = $rcmail->config->get('krb_authentication_context');

            $args['gssapi_context'] = $context ?: 'imap/kolab.example.org@EXAMPLE.ORG';
            $args['gssapi_cn']      = $_SERVER['KRB5CCNAME'];
            $args['auth_type']      = 'GSSAPI';
        }

        return $args;
    }