[23599] in Kerberos

home help back first fref pref prev next nref lref last post

Re: Viewing/printing tex documents

daemon@ATHENA.MIT.EDU (Sam Hartman)
Tue Mar 29 14:57:37 2005

To: Mike Friedman <mikef@ack.berkeley.edu>
From: Sam Hartman <hartmans@mit.edu>
Date: Tue, 29 Mar 2005 14:56:45 -0500
In-Reply-To: <Pine.GSO.4.58.0503282221040.16435@ack.Berkeley.EDU> (Mike
 Friedman's message of "Mon, 28 Mar 2005 22:41:27 -0800 (PST)")
Message-ID: <tsl3bue2pky.fsf@cz.mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: kerberos@mit.edu
Errors-To: kerberos-bounces@mit.edu

>>>>> "Mike" == Mike Friedman <mikef@ack.berkeley.edu> writes:

    Mike> But this brings me to a very specific question, that even
    Mike> the source code is not answering for me (I'm probably
    Mike> overlooking something obvious):

    Mike> I'd like to use krb5_mk_req_extended, instead of
    Mike> krb5_mk_req, to get service credentials as the second part
    Mike> of a proxy authentication. With krb5_mk_req, I can supply
    Mike> the service and host names as arguments.  But
    Mike> krb5_mk_req_extended doesn't seem to have a 'host' or
    Mike> 'service' argument.  So, how do I specify the service
    Mike> principal for which I want to issue a TGS request?

You have to get the credentials before calling mk_req_extended.  Here's how mk_req works:

    /* obtain ticket & session key */
        memset((char *)&creds, 0, sizeof(creds));
            if ((retval = krb5_copy_principal(context, server, &creds.server)))
                    goto cleanup_princ;

                        if ((retval = krb5_cc_get_principal(context, ccache, &creds.client)))
                                goto cleanup_creds;

                                    if ((retval = krb5_get_credentials(context, 0,
                                                                           ccache, &creds, &credsp)))
                                                                                   goto cleanup_creds;

                                                                                       retval = krb5_mk_req_extended(context, auth_context, ap_req_options,
                                                                                                                         in_data, credsp, outbuf);
                                                                                                                         
________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

home help back first fref pref prev next nref lref last post