[15899] in Kerberos_V5_Development

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

Re: Need Help on kerberos

daemon@ATHENA.MIT.EDU (Russ Allbery)
Fri Jun 18 13:00:29 2010

From: Russ Allbery <rra@stanford.edu>
To: Muthuramalingam Narayanan <muthuramalingam.narayanan@us.abb.com>
In-Reply-To: <OFDF93BA76.EC74C89C-ON86257746.00545387-86257746.0054F3ED@us.abb.com>
	(Muthuramalingam Narayanan's message of "Fri, 18 Jun 2010 10:27:54
	-0500")
Date: Fri, 18 Jun 2010 10:00:20 -0700
Message-ID: <87y6ec46or.fsf@windlord.stanford.edu>
MIME-Version: 1.0
Cc: krbdev@mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu

Muthuramalingam Narayanan <muthuramalingam.narayanan@us.abb.com> writes:

> I am writing kerberos ticket renewal program. 

You may want to take a look at the code of krenew, which is part of the
kstart package:

    http://www.eyrie.org/~eagle/software/kstart/

That will show all the basic techniques.

> 3. krb5_build_principal - using parameter 
>            krb5_build_principal(ctx,&client,
>                                         15, "TEST@TEST12434.SE"
>                                         ))

If you're renewing a ticket, you probably want to read the existing
principal name from the ticket cache.  But anyway, the problem that you're
having is that you're passing in the entire principal as the realm and not
passing anything for the actual principal.

    krb5_build_principal(ctx, &client, strlen("TEST12434.SE"),
                         "TEST12434.SE", "TEST", NULL);

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
_______________________________________________
krbdev mailing list             krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev

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