[37538] in Kerberos

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

Re: kinit from java

daemon@ATHENA.MIT.EDU (Dameon Wagner)
Thu Jun 23 05:10:11 2016

Date: Thu, 23 Jun 2016 10:09:48 +0100
From: Dameon Wagner <dameon.wagner@it.ox.ac.uk>
To: kerberos@mit.edu
Message-ID: <20160623090948.GA6074@maia.oucs.ox.ac.uk>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <9E2EF4AEAD6E874AB547AF000CF1C11221026766@EXTXMB21.nam.nsroot.net>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu

On Wed, Jun 22 2016 at 06:37:31 +0000, Ghosh, Parthapratim  scribbled
 in "kinit from java":
> Hi Kerberos team,
> 
> I have the following question -
> 
> How can one simulate kinit call with userid and password from java.
> I have a java process running and want to kinit from that process.

That can depend on the reason why you want to kinit.

If you're looking to have Kerberos credentials available for the java
process so that it can authenticate it self to other services, then
you may find it better to run the java process from k5start.  As I'm
lazy I won't try to explain how it all works here, but will rather
just quote the first paragraph of the manpage:

#---8<-----------------------------------------------------------------
k5start obtains and caches an initial Kerberos ticket-granting ticket
for a principal.  k5start can be used as an alternative to kinit, but
it is primarily intended to be used by programs that want to use a
keytab to obtain Kerberos credentials, such as a web server that needs
to authenticate to another service such as an LDAP server.
#---8<-----------------------------------------------------------------

If that sounds like the sort of solution you're after, I can highly
recommend k5start (and krenew from the same package).

Cheers.

Dameon.

-- 
><> ><> ><> ><> ><> ><> ooOoo <>< <>< <>< <>< <>< <><
Dr. Dameon Wagner, Systems Development and Support
IT Services, University of Oxford
><> ><> ><> ><> ><> ><> ooOoo <>< <>< <>< <>< <>< <><

________________________________________________
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