[18841] in Kerberos_V5_Development

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

RE: create krb5 context without config files

daemon@ATHENA.MIT.EDU (Bin Lu)
Thu Jun 12 15:10:04 2014

From: Bin Lu <blu@paloaltonetworks.com>
To: Benjamin Kaduk <kaduk@mit.edu>
Date: Thu, 12 Jun 2014 19:09:48 +0000
Message-ID: <841A051D8BD4144AA7B5AC63D97F9F05B249D0@sjccmbxpw01p.paloaltonetworks.local>
In-Reply-To: <alpine.GSO.1.10.1406102317460.25244@multics.mit.edu>
Content-Language: en-US
MIME-Version: 1.0
Cc: "krbdev@mit.edu" <krbdev@mit.edu>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu

Hi Ben,

Thank you very much for your response. 

Krb5_init_context_profile() seems to init a context from an existing profile which could be retrieved from krb5_get_profile(). profile_init_vtable() is not a public API, so should not be recommended to use. 

Seems there isn't any other API to create a Kerberos context without using config files. Could you please confirm?

Thanks,
-binlu  

-----Original Message-----
From: Benjamin Kaduk [mailto:kaduk@MIT.EDU] 
Sent: Tuesday, June 10, 2014 8:22 PM
To: Bin Lu
Cc: krbdev@mit.edu
Subject: Re: create krb5 context without config files

On Tue, 10 Jun 2014, Bin Lu wrote:

> Hi,
>
> Is there a way to create a krb5 lib context without using any config 
> files, include /etc/krb5.conf and files set in environmental variables?
> Assume the realm/domain and kdc server info is already available.

For this I think you need to use krb5_init_context_profile(), with a profile derived from profile_init_vtable() (see <profile.h>).

I see that your previous message did not get answered, but it looks like if you are asking this question, you have gotten past it.  I will note that the server doing password verification will need to have kerberos credentials of its own and take care to avoid the Zanarotti attack.

-Ben Kaduk

_______________________________________________
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