[15900] in Kerberos_V5_Development
Re: Need Help on kerberos
daemon@ATHENA.MIT.EDU (Muthuramalingam Narayanan)
Fri Jun 18 13:34:17 2010
In-Reply-To: <87y6ec46or.fsf@windlord.stanford.edu>
To: rra@stanford.edu
MIME-Version: 1.0
From: Muthuramalingam Narayanan <muthuramalingam.narayanan@us.abb.com>
Message-ID: <OF50EBF0A1.B32D8204-ON86257746.00605E9E-86257746.00608016@us.abb.com>
Date: Fri, 18 Jun 2010 12:34:02 -0500
Cc: krbdev@mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu
Hi Russ
Thank you for your mail.
I need program in C. I think your code is perl.
Can you please send if you have any ticker renewal program in C.
Thanks and Regards
Muthu N
Russ Allbery <rra@stanford.edu>
06/18/2010 12:01 PM
To
Muthuramalingam Narayanan/USABB/NONABB@ABB
cc
krbdev@mit.edu
Subject
Re: Need Help on kerberos
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