kinit(v5): Cannot contact any KDC for requested ...

Kevin Coffman kwc at citi.umich.edu
Mon Aug 13 12:34:45 EDT 2007


On 13 Aug 2007 20:49:36 +0530, Chittaranjan Mandal
<Chittaranjan.Mandal at iitkgp.ac.in> wrote:
> On Mon, 2007-08-13 at 09:38 -0400, Kevin Coffman wrote:
> > On 12 Aug 2007 16:27:22 +0530, Chittaranjan Mandal <Chittaranjan.Mandal at iitkgp.ac.in> wrote:
>
> > > I am trying to setup kerberos, but I am getting the above problem.
> > > My krb5.conf file is attached. Could you please help.
> > >
> > > I had run the following commands.
> > > # kdb5_util create -r chitta.cse.krb -s
> > > # kadmin.local -q "addprinc admin/admin"
> > > # kadmin.local -q "addprinc kuser"
> > > # kadmin.local -q "getprincs"
> >
> > These commands create the database.  Are you actually running the kdc process?
> >
> > BTW, realm names are conventionally all upper-case.
>
> Okay, this is what I have now. Both kinit and kadmin still fail.
>
> # kdb5_util create -r CHITTA.CSE.KRB -s
> # kadmin.local -q "addprinc admin/admin"
> # kadmin.local -q "addprinc kuser"
> # kadmin.local -q "getprincs"
> Authenticating as principal root/admin at CHITTA.CSE.KRB with password.
> K/M at CHITTA.CSE.KRB
> admin/admin at CHITTA.CSE.KRB
> kadmin/admin at CHITTA.CSE.KRB
> kadmin/changepw at CHITTA.CSE.KRB
> kadmin/history at CHITTA.CSE.KRB
> kadmin/localhost at CHITTA.CSE.KRB

I suspect a problem with /etc/hosts.  This should not be "localhost",
but the real hostname (i.e.,
kadmin/chitta.cse.iitkgp.ernet.in at CHITTA.CSE.KRB)



More information about the Kerberos mailing list