From: "sergio.conrad" <sergio.conrad-QFKgK+z4sOrR7s880joybQ@public.gmane.org>
To: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: cifs autofs krb5i
Date: Wed, 07 Nov 2012 13:48:24 +0100 [thread overview]
Message-ID: <1874527994.922819.1352292504507.JavaMail.www@wwinf8219> (raw)
In-Reply-To: <20121107065651.18dc9f63-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
> Message du 07/11/12 12:56
> De : "Jeff Layton"
> A : "sergio.conrad"
> Copie à : linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> Objet : Re: cifs autofs krb5i
>
> On Wed, 07 Nov 2012 01:33:17 +0100
> "sergio.conrad" wrote:
>
> > Hi,
> >
> > I am using a test computer
> > kernel 2.6.32-279.11.1.el6.x86_64
> > joined to an Active directory with winbind
> >
> > I am getting A kerberos Ticket with the authentication with
> > /etc/security/pam_winbind.conf
> > krb5_auth = yes
> > krb5_ccache_type = FILE
> >
> > /etc/request-key.conf is configured like this :
> > create cifs.spnego * * /usr/sbin/cifs.upcall %k
> > create dns_resolver * * /usr/sbin/cifs.upcall %k
> >
> >
> > I got the ticket from kerberos
> > [conrad3@centad5 ~]$ klist
> > Ticket cache: FILE:/tmp/krb5cc_16777217
> > Default principal: conrad3-10W9mfrL9XmlP7NgNAbZLA@public.gmane.org
> >
> > Valid starting Expires Service principal
> > 11/07/12 00:33:48 11/07/12 10:33:48 krbtgt/DOMAIN.LOCAL-10W9mfrL9XkN2LvcTqJorw@public.gmane.orgL
> > renew until 11/14/12 00:33:48
> > 11/07/12 00:33:48 11/07/12 10:33:48 CENTAD5$@DOMAIN.LOCAL
> > renew until 11/14/12 00:33:48
> > 11/07/12 00:33:48 11/07/12 10:33:48 CENTAD5$@DOMAIN.LOCAL
> > renew until 11/14/12 00:33:48
> > 11/07/12 00:41:57 11/07/12 10:33:48 cifs/figue-10W9mfrL9XmlP7NgNAbZLA@public.gmane.org
> > renew until 11/14/12 00:33:48
> >
> >
> > When i put a entry in fstab, everything is working when i do mount /partage as a user
> > FSTAB
> > //figue/data/conrad4 /partage cifs
> > sec=krb5i,user,nounix,file_mode=0700,dir_mode=0700,noauto
> > fs/cifs/cifs_spnego.c: key description =
> >
ver=0x2;host=figue;ip4=130.120.x.xx;sec=krb5;uid=0x1000001;creduid=0x1000001;user=conrad3
> > ;pid=0xc2d
> >
> >
> > Howether i got a problem with fstab, it seems to not pass the creduid options,and i
> > obtain
> > CIFS VFS: cifs_mount failed w/return code = -126
> >
> > Hereis my different autofs configuration, with the result in dmesg
> >
> > AUTOFS
> > * -fstype=cifs,sec=krb5i,user=& ://figue/data/&
> > fs/cifs/cifs_spnego.c: key description =
> >
ver=0x2;host=figue;ip4=130.120.xx.xx;sec=krb5;uid=0x0;creduid=0x0;user=conrad3;pid=0xc6e
> >
> > * -fstype=cifs,sec=krb5i,user=&,uid=& ://figue/data/&
> > fs/cifs/cifs_spnego.c: key description =
> >
ver=0x2;host=figue;ip4=130.120.xx.xx;sec=krb5;uid=0x1000001;creduid=0x0;user=conrad3;pid=
> > 0xd02
> >
> > * -fstype=cifs,sec=krb5i,user=&,uid=&,creduid=& ://figue/data/&
>
> That option should be "cruid=&". "creduid=" isn't a mount option.
>
> --
> Jeff Layton
>
Thanks it is working. You saved my time.
There is a lack of documentation about these options on the internet.
Serge Conrad
Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
Je crée ma boîte mail www.laposte.net
next prev parent reply other threads:[~2012-11-07 12:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-07 0:33 cifs autofs krb5i sergio.conrad
2012-11-07 11:56 ` Jeff Layton
[not found] ` <20121107065651.18dc9f63-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2012-11-07 12:48 ` sergio.conrad [this message]
2012-11-16 22:37 ` sergio.conrad
2012-11-17 2:01 ` Jeff Layton
[not found] ` <20121116210141.33f983dc-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2012-11-17 7:53 ` sergio.conrad
2012-11-17 10:44 ` Jeff Layton
[not found] ` <20121117054429.0212dd49-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2012-11-17 13:56 ` sergio.conrad
2012-11-17 15:28 ` Jeff Layton
[not found] ` <20121117102824.7d7f985e-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2012-11-17 17:22 ` sergio.conrad
2012-11-19 2:00 ` Jeff Layton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1874527994.922819.1352292504507.JavaMail.www@wwinf8219 \
--to=sergio.conrad-qfkgk+z4sorr7s880joybq@public.gmane.org \
--cc=jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox