2005-03-22 04:13:42

by mehta kiran

[permalink] [raw]
Subject: Re: problem mounting using NFSv4 when using -o sec=krb5 option

Hi Kevin ,
I created new database and new principal and
keytab files.

Kinit does not accept passowrd for principals
nfs/vcslinux5.vxindia.veritas.com
and
nfs/vcslinux6.vxindia.veritas.com

Please let me know if i can provide some info(and
how) (logs) which can point out the problem

thanks,
--kiran




--- Kevin Coffman <[email protected]> wrote:
> >
> > Hi ,
> > I tried things as directed by Trond
> in
> > his previous mail and everything seemed to
> work
> > fine initally. but when i rebooted system ,
> > it started giving error whenever i start
> rpc.gssd
> > on client machine.
> > Error is :
> >
> > [root@vcslinux6 ~]# Mar 21 14:47:27 vcslinux6
> > rpc.gssd[3487]: WARNING: Key table entry not found
> > while getting initial ticket for principal
> >
>
'nfs/[email protected]'
> > from keytab 'FILE:/etc/krb5.keytab'
> > Mar 21 14:47:27 vcslinux6 rpc.gssd[3487]: ERROR:
> No
> > usable machine credentials obtained
> >
> >
> > while #klist -k /etc/krb5.keytab gives
> > 2
> >
>
nfs/[email protected]
>
>
> I'm confused by this, but I do not know what to look
> for.
>
>
> > I even tried by recreating kerberos database but
> in
> > vain. I still get the same error.
>
> If you recreated the Kerberos database, you need to
> create new principals and keytab files. Did you do
> this?
>
> > I observed one more thing.
> > Whenver i create principal(other then root/admin)
> ,
> > passwords i enter for them during their creation
> > are not accepted by kinit.
>
> This is also strange and _might_ be related. How
> are
> you creating the principals -- using kadmin or
> kadmin.local?
> Which principals are you referring to here?
>
> >
> > Please let me know where i went wrong.
> >
> > --thanks,
> > --kiran
>
>

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs


2005-03-22 14:05:24

by Kevin Coffman

[permalink] [raw]
Subject: Re: problem mounting using NFSv4 when using -o sec=krb5 option

If you create a principal using a password, you should be able to
authenticate as that pricipal using that password. However, once you
do a ktadd for that principal the password will no longer work. See my
previous message about what ktadd does.

Are you able to do a kinit using the keytab for nfs/vcslinux5.vxindia.ve
ritas.com?
("kinit -k -t /etc/krb5.keytab nfs/vcslinux5.vxindia.veritas.com")

Can you list the keys in your keytab using the ktutil program? I
suspect that something is wrong with your keytab file. How did you
move it from the KDC machine to your NFS client?


> Hi Kevin ,
> I created new database and new principal and
> keytab files.
>
> Kinit does not accept passowrd for principals
> nfs/vcslinux5.vxindia.veritas.com
> and
> nfs/vcslinux6.vxindia.veritas.com
>
> Please let me know if i can provide some info(and
> how) (logs) which can point out the problem
>
> thanks,
> --kiran
>
>
>
>
> --- Kevin Coffman <[email protected]> wrote:
> > >
> > > Hi ,
> > > I tried things as directed by Trond
> > in
> > > his previous mail and everything seemed to
> > work
> > > fine initally. but when i rebooted system ,
> > > it started giving error whenever i start
> > rpc.gssd
> > > on client machine.
> > > Error is :
> > >
> > > [root@vcslinux6 ~]# Mar 21 14:47:27 vcslinux6
> > > rpc.gssd[3487]: WARNING: Key table entry not found
> > > while getting initial ticket for principal
> > >
> >
> 'nfs/[email protected]'
> > > from keytab 'FILE:/etc/krb5.keytab'
> > > Mar 21 14:47:27 vcslinux6 rpc.gssd[3487]: ERROR:
> > No
> > > usable machine credentials obtained
> > >
> > >
> > > while #klist -k /etc/krb5.keytab gives
> > > 2
> > >
> >
> nfs/[email protected]
> >
> >
> > I'm confused by this, but I do not know what to look
> > for.
> >
> >
> > > I even tried by recreating kerberos database but
> > in
> > > vain. I still get the same error.
> >
> > If you recreated the Kerberos database, you need to
> > create new principals and keytab files. Did you do
> > this?
> >
> > > I observed one more thing.
> > > Whenver i create principal(other then root/admin)
> > ,
> > > passwords i enter for them during their creation
> > > are not accepted by kinit.
> >
> > This is also strange and _might_ be related. How
> > are
> > you creating the principals -- using kadmin or
> > kadmin.local?
> > Which principals are you referring to here?
> >
> > >
> > > Please let me know where i went wrong.
> > >
> > > --thanks,
> > > --kiran
> >
> >
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs