<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-13155</id>
	<title>Nabble - Samba - linux-cifs-client</title>
	<updated>2009-11-08T16:39:04Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Samba---linux-cifs-client-f13155.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Samba---linux-cifs-client-f13155.html" />
	<subtitle type="html">The Linux CIFS VFS client</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26259663</id>
	<title>[PATCH] cifs: don't use CIFSGetSrvInodeNumber in is_path_accessible</title>
	<published>2009-11-08T16:39:04Z</published>
	<updated>2009-11-08T16:39:04Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">Because it's lighter weight, CIFS tries to use CIFSGetSrvInodeNumber to
&lt;br&gt;verify the accessibility of the root inode and then falls back to doing a
&lt;br&gt;full QPathInfo if that fails with -EOPNOTSUPP. I have at least a report
&lt;br&gt;of a server that returns NT_STATUS_INTERNAL_ERROR rather than something
&lt;br&gt;that translates to EOPNOTSUPP.
&lt;br&gt;&lt;br&gt;Rather than trying to be clever with that call, just have
&lt;br&gt;is_path_accessible do a normal QPathInfo. That call is widely
&lt;br&gt;supported and it shouldn't increase the overhead significantly.
&lt;br&gt;&lt;br&gt;Cc: Stable &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259663&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stable@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Signed-off-by: Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259663&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Signed-off-by: Steve French &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259663&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sfrench@...&lt;/a&gt;&amp;gt;
&lt;br&gt;---
&lt;br&gt;&amp;nbsp;fs/cifs/connect.c | &amp;nbsp; &amp;nbsp;8 --------
&lt;br&gt;&amp;nbsp;1 files changed, 0 insertions(+), 8 deletions(-)
&lt;br&gt;&lt;br&gt;diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
&lt;br&gt;index b090980..63ea83f 100644
&lt;br&gt;--- a/fs/cifs/connect.c
&lt;br&gt;+++ b/fs/cifs/connect.c
&lt;br&gt;@@ -2220,16 +2220,8 @@ is_path_accessible(int xid, struct cifsTconInfo *tcon,
&lt;br&gt;&amp;nbsp;		 &amp;nbsp; struct cifs_sb_info *cifs_sb, const char *full_path)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp;	int rc;
&lt;br&gt;-	__u64 inode_num;
&lt;br&gt;&amp;nbsp;	FILE_ALL_INFO *pfile_info;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	rc = CIFSGetSrvInodeNumber(xid, tcon, full_path, &amp;inode_num,
&lt;br&gt;-				 &amp;nbsp; cifs_sb-&amp;gt;local_nls,
&lt;br&gt;-				 &amp;nbsp; cifs_sb-&amp;gt;mnt_cifs_flags &amp;
&lt;br&gt;-						CIFS_MOUNT_MAP_SPECIAL_CHR);
&lt;br&gt;-	if (rc != -EOPNOTSUPP)
&lt;br&gt;-		return rc;
&lt;br&gt;-
&lt;br&gt;&amp;nbsp;	pfile_info = kmalloc(sizeof(FILE_ALL_INFO), GFP_KERNEL);
&lt;br&gt;&amp;nbsp;	if (pfile_info == NULL)
&lt;br&gt;&amp;nbsp;		return -ENOMEM;
&lt;br&gt;-- 
&lt;br&gt;1.6.0.6
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259663&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--cifs%3A-clean-up-handling-when-server-doesn%27t-consistently-support-inode-numbers-tp26259664p26259663.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26259664</id>
	<title>[PATCH] cifs: clean up handling when server doesn't consistently support inode numbers</title>
	<published>2009-11-08T16:39:03Z</published>
	<updated>2009-11-08T16:39:03Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">It's possible that a server will return a valid FileID when we query the
&lt;br&gt;FILE_INTERNAL_INFO for the root inode, but then zeroed out inode numbers
&lt;br&gt;when we do a FindFile with an infolevel of
&lt;br&gt;SMB_FIND_FILE_ID_FULL_DIR_INFO.
&lt;br&gt;&lt;br&gt;In this situation turn off querying for server inode numbers, generate a
&lt;br&gt;warning for the user and just generate an inode number using iunique.
&lt;br&gt;Once we generate any inode number with iunique we can no longer use any
&lt;br&gt;server inode numbers or we risk collisions, so ensure that we don't do
&lt;br&gt;that in cifs_get_inode_info either.
&lt;br&gt;&lt;br&gt;Cc: Stable &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259664&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stable@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Reported-by: Timothy Normand Miller &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259664&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;theosib@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Signed-off-by: Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259664&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Signed-off-by: Steve French &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259664&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sfrench@...&lt;/a&gt;&amp;gt;
&lt;br&gt;---
&lt;br&gt;&amp;nbsp;fs/cifs/cifsproto.h | &amp;nbsp; &amp;nbsp;1 +
&lt;br&gt;&amp;nbsp;fs/cifs/inode.c &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp;7 ++-----
&lt;br&gt;&amp;nbsp;fs/cifs/misc.c &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; 14 ++++++++++++++
&lt;br&gt;&amp;nbsp;fs/cifs/readdir.c &amp;nbsp; | &amp;nbsp; &amp;nbsp;7 ++++---
&lt;br&gt;&amp;nbsp;4 files changed, 21 insertions(+), 8 deletions(-)
&lt;br&gt;&lt;br&gt;diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h
&lt;br&gt;index 6928c24..5646727 100644
&lt;br&gt;--- a/fs/cifs/cifsproto.h
&lt;br&gt;+++ b/fs/cifs/cifsproto.h
&lt;br&gt;@@ -388,4 +388,5 @@ extern int CIFSSMBSetPosixACL(const int xid, struct cifsTconInfo *tcon,
&lt;br&gt;&amp;nbsp;		const struct nls_table *nls_codepage, int remap_special_chars);
&lt;br&gt;&amp;nbsp;extern int CIFSGetExtAttr(const int xid, struct cifsTconInfo *tcon,
&lt;br&gt;&amp;nbsp;			const int netfid, __u64 *pExtAttrBits, __u64 *pMask);
&lt;br&gt;+extern void cifs_autodisable_serverino(struct cifs_sb_info *cifs_sb);
&lt;br&gt;&amp;nbsp;#endif			/* _CIFSPROTO_H */
&lt;br&gt;diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
&lt;br&gt;index 5e24925..cababd8 100644
&lt;br&gt;--- a/fs/cifs/inode.c
&lt;br&gt;+++ b/fs/cifs/inode.c
&lt;br&gt;@@ -512,13 +512,10 @@ int cifs_get_inode_info(struct inode **pinode,
&lt;br&gt;&amp;nbsp;					cifs_sb-&amp;gt;local_nls,
&lt;br&gt;&amp;nbsp;					cifs_sb-&amp;gt;mnt_cifs_flags &amp;
&lt;br&gt;&amp;nbsp;						CIFS_MOUNT_MAP_SPECIAL_CHR);
&lt;br&gt;-			if (rc1) {
&lt;br&gt;+			if (rc1 || !fattr.cf_uniqueid) {
&lt;br&gt;&amp;nbsp;				cFYI(1, (&amp;quot;GetSrvInodeNum rc %d&amp;quot;, rc1));
&lt;br&gt;&amp;nbsp;				fattr.cf_uniqueid = iunique(sb, ROOT_I);
&lt;br&gt;-				/* disable serverino if call not supported */
&lt;br&gt;-				if (rc1 == -EINVAL)
&lt;br&gt;-					cifs_sb-&amp;gt;mnt_cifs_flags &amp;=
&lt;br&gt;-							~CIFS_MOUNT_SERVER_INUM;
&lt;br&gt;+				cifs_autodisable_serverino(cifs_sb);
&lt;br&gt;&amp;nbsp;			}
&lt;br&gt;&amp;nbsp;		} else {
&lt;br&gt;&amp;nbsp;			fattr.cf_uniqueid = iunique(sb, ROOT_I);
&lt;br&gt;diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c
&lt;br&gt;index 0241b25..1e25efc 100644
&lt;br&gt;--- a/fs/cifs/misc.c
&lt;br&gt;+++ b/fs/cifs/misc.c
&lt;br&gt;@@ -715,3 +715,17 @@ cifsConvertToUCS(__le16 *target, const char *source, int maxlen,
&lt;br&gt;&amp;nbsp;ctoUCS_out:
&lt;br&gt;&amp;nbsp;	return i;
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+void
&lt;br&gt;+cifs_autodisable_serverino(struct cifs_sb_info *cifs_sb)
&lt;br&gt;+{
&lt;br&gt;+	if (cifs_sb-&amp;gt;mnt_cifs_flags &amp; CIFS_MOUNT_SERVER_INUM) {
&lt;br&gt;+		cifs_sb-&amp;gt;mnt_cifs_flags &amp;= CIFS_MOUNT_SERVER_INUM;
&lt;br&gt;+		cERROR(1, (&amp;quot;Autodisabling the use of server inode numbers on &amp;quot;
&lt;br&gt;+			 &amp;nbsp; &amp;quot;%s. This server doesn't seem to support them &amp;quot;
&lt;br&gt;+			 &amp;nbsp; &amp;quot;properly. Hardlinks will not be recognized on this &amp;quot;
&lt;br&gt;+			 &amp;nbsp; &amp;quot;mount. Consider mounting with the \&amp;quot;noserverino\&amp;quot; &amp;quot;
&lt;br&gt;+			 &amp;nbsp; &amp;quot;option to silence this message.&amp;quot;,
&lt;br&gt;+			 &amp;nbsp; cifs_sb-&amp;gt;tcon-&amp;gt;treeName));
&lt;br&gt;+	}
&lt;br&gt;+}
&lt;br&gt;diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c
&lt;br&gt;index 1f098ca..f84062f 100644
&lt;br&gt;--- a/fs/cifs/readdir.c
&lt;br&gt;+++ b/fs/cifs/readdir.c
&lt;br&gt;@@ -727,11 +727,12 @@ static int cifs_filldir(char *pfindEntry, struct file *file, filldir_t filldir,
&lt;br&gt;&amp;nbsp;		cifs_dir_info_to_fattr(&amp;fattr, (FILE_DIRECTORY_INFO *)
&lt;br&gt;&amp;nbsp;					pfindEntry, cifs_sb);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	/* FIXME: make _to_fattr functions fill this out */
&lt;br&gt;-	if (pCifsF-&amp;gt;srch_inf.info_level == SMB_FIND_FILE_ID_FULL_DIR_INFO)
&lt;br&gt;+	if (inum &amp;&amp; (cifs_sb-&amp;gt;mnt_cifs_flags &amp; CIFS_MOUNT_SERVER_INUM)) {
&lt;br&gt;&amp;nbsp;		fattr.cf_uniqueid = inum;
&lt;br&gt;-	else
&lt;br&gt;+	} else {
&lt;br&gt;&amp;nbsp;		fattr.cf_uniqueid = iunique(sb, ROOT_I);
&lt;br&gt;+		cifs_autodisable_serverino(cifs_sb);
&lt;br&gt;+	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	ino = cifs_uniqueid_to_ino_t(fattr.cf_uniqueid);
&lt;br&gt;&amp;nbsp;	tmp_dentry = cifs_readdir_lookup(file-&amp;gt;f_dentry, &amp;qstring, &amp;fattr);
&lt;br&gt;-- 
&lt;br&gt;1.6.0.6
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259664&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--cifs%3A-clean-up-handling-when-server-doesn%27t-consistently-support-inode-numbers-tp26259664p26259664.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26256427</id>
	<title>suddenly doesn't work with the username and password in credentials=... in the mount line</title>
	<published>2009-11-08T10:18:50Z</published>
	<updated>2009-11-08T10:18:50Z</updated>
	<author>
		<name>Kin Yip</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I'm using Scientific Linux 5.3 (~ RedHat Enterprise 5.3).
&lt;br&gt;&lt;br&gt;After a reboot today, I probably have switched to a new kernel, &amp;quot;uname 
&lt;br&gt;-a&amp;quot; gives :
&lt;br&gt;&lt;br&gt;Linux yipkin.c-ad.bnl.gov 2.6.18-128.7.1.el5 #1 SMP Mon Aug 24 08:22:26 
&lt;br&gt;EDT 2009 i686 i686 i386 GNU/Linux
&lt;br&gt;&lt;br&gt;Somehow, the auto-mounting with cifs for the following line in 
&lt;br&gt;/etc/fstab doesn't work but it used to work :
&lt;br&gt;&lt;br&gt;//c-adweb/data &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/mnt/c-adweb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cifs &amp;nbsp; &amp;nbsp;
&lt;br&gt;domain=BNL,credentials=/root/.credentials,gid=kinyip,uid=kinyip 0 0
&lt;br&gt;&lt;br&gt;I see error in /var/log/message:
&lt;br&gt;Nov &amp;nbsp;8 13:11:50 yipkin kernel: Status code returned 0xc000006d 
&lt;br&gt;NT_STATUS_LOGON_FAILURE
&lt;br&gt;Nov &amp;nbsp;8 13:11:50 yipkin kernel: &amp;nbsp;CIFS VFS: Send error in SessSetup = -13
&lt;br&gt;Nov &amp;nbsp;8 13:11:50 yipkin kernel: &amp;nbsp;CIFS VFS: cifs_mount failed w/return 
&lt;br&gt;code = -13
&lt;br&gt;&lt;br&gt;Using the command :
&lt;br&gt;&amp;nbsp; &amp;nbsp;mount -t cifs -o 
&lt;br&gt;domain=BNL,credentials=/root/.credentials,gid=500,uid=500 &amp;nbsp;
&lt;br&gt;//c-adweb/data /mnt/c-adweb
&lt;br&gt;&lt;br&gt;would get me :
&lt;br&gt;mount error 13 = Permission denied
&lt;br&gt;Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
&lt;br&gt;&lt;br&gt;And I can see the same errors in /var/log/message (or dmesg).
&lt;br&gt;&lt;br&gt;If I do &amp;quot;mount -t cifs -o domain=BNL,user=kinyip,gid=500,uid=500 &amp;nbsp;
&lt;br&gt;//c-adweb/data /mnt/c-adweb&amp;quot;, it would ask me for password and
&lt;br&gt;then it'd mount successfully !!
&lt;br&gt;&lt;br&gt;In my file /root/.credentials &amp;nbsp;(&amp;quot;ls&amp;quot; would have : -rw------- 1 root root 
&lt;br&gt;39 Nov &amp;nbsp;8 13:02 /root/.credentials ), it's like
&lt;br&gt;username=kinyip
&lt;br&gt;password=$.....
&lt;br&gt;&lt;br&gt;My first character of my password is $ and I'm wondering whether this is 
&lt;br&gt;creating trouble ???? &amp;nbsp;I've tried &amp;quot;\$....&amp;quot; but it doesn't help.
&lt;br&gt;&lt;br&gt;Any idea ???
&lt;br&gt;&lt;br&gt;Kin
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26256427&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/suddenly-doesn%27t-work-with-the-username-and-password-in-credentials%3D...-in-the-mount-line-tp26256427p26256427.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26157139</id>
	<title>Re: Can't mount smb shares using mount.cifs with 2.6.31 kernel</title>
	<published>2009-11-01T17:40:59Z</published>
	<updated>2009-11-01T17:40:59Z</updated>
	<author>
		<name>Timothy Normand Miller</name>
	</author>
	<content type="html">On Fri, Oct 16, 2009 at 3:12 PM, Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26157139&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Yay. Figured out how to fix the wireshark dissector for this FindFile
&lt;br&gt;&amp;gt; infolevel. Wireshark patch attached that allows me to dissect these
&lt;br&gt;&amp;gt; packets correctly.  I'll plan to send that to the wireshark devs as
&lt;br&gt;&amp;gt; soon as I figure out where to send it. The good news is that I think I
&lt;br&gt;&amp;gt; see the problem. The bad news is that I'm not quite sure how to fix it
&lt;br&gt;&amp;gt; yet and it may even be a server bug.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Prior to 2.6.30, the default was to generate inode numbers out of the
&lt;br&gt;&amp;gt; air (noserverino). With 2.6.31, the default is &amp;quot;serverino&amp;quot; which makes
&lt;br&gt;&amp;gt; it so that we query the server for inode numbers. When mounting, we do
&lt;br&gt;&amp;gt; a QueryPathInfo against the root inode. With serverino enabled, we also
&lt;br&gt;&amp;gt; do a FileInternalInfo query against the file for the
&lt;br&gt;&amp;gt; &amp;quot;IndexNumber&amp;quot; (which I assumed was also the equivalent of the UniqueId
&lt;br&gt;&amp;gt; but maybe isn't?). In any case, that first call succeeds against this
&lt;br&gt;&amp;gt; server.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The problem comes in with the FindFile call. There we do a
&lt;br&gt;&amp;gt; FIND_FILE_ID_FULL_DIRECTORY_INFO infolevel query. That also succeeds,
&lt;br&gt;&amp;gt; but the inode number values in there (FileId's) are zeroed out. That's
&lt;br&gt;&amp;gt; technically within the letter of the spec for that call. When the
&lt;br&gt;&amp;gt; underlying filesystem doesn't support unique ID's, then it's supposed
&lt;br&gt;&amp;gt; to return 0. The problem is that it doesn't make much sense for the
&lt;br&gt;&amp;gt; server to claim that it does support unique ID's for one call but not
&lt;br&gt;&amp;gt; for others.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Ideally, there'll be a way to deal with this automatically, but I'll
&lt;br&gt;&amp;gt; probably need to ponder this a bit. In any case, thanks for the problem
&lt;br&gt;&amp;gt; report. I'll let you know once I come up with something.
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;I'm very sorry I took so long to try out this patch. &amp;nbsp;It appears to
&lt;br&gt;have done the trick. &amp;nbsp;Thanks!
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Timothy Normand Miller
&lt;br&gt;&lt;a href=&quot;http://www.cse.ohio-state.edu/~millerti&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cse.ohio-state.edu/~millerti&lt;/a&gt;&lt;br&gt;Open Graphics Project
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26157139&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Can%27t-mount-smb-shares-using-mount.cifs-with-2.6.31-kernel-tp25920016p26157139.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26101370</id>
	<title>Re: mount.cifs with sec=krb5 where kerberos principal is not the same as file server</title>
	<published>2009-10-28T13:04:20Z</published>
	<updated>2009-10-28T13:04:20Z</updated>
	<author>
		<name>Andrew Baumann-2</name>
	</author>
	<content type="html">Hi Jeff,
&lt;br&gt;&lt;br&gt;On Wednesday 28 October 2009 14.08:30 Jeff Layton wrote:
&lt;br&gt;&amp;gt; By &amp;quot;valid host&amp;quot; do you mean that it's a separate machine entirely? Or
&lt;br&gt;&amp;gt; are you playing around with floating addresses in a clustered setup?
&lt;br&gt;&lt;br&gt;As it was explained to me, this is a cluster setup where the cluster nodes 
&lt;br&gt;have multiple floating IP addresses (for different samba server instances), but 
&lt;br&gt;join the domain using their canonical host name.
&lt;br&gt;&lt;br&gt;&amp;gt; Either way, this appears to be a server misconfiguration. A properly
&lt;br&gt;&amp;gt; configured server should accept principals for all possible hostname
&lt;br&gt;&amp;gt; aliases. The fact that it's expecting a service principal for a
&lt;br&gt;&amp;gt; completely different host and not accepting a service principal for one
&lt;br&gt;&amp;gt; of its names looks broken to me.
&lt;br&gt;&lt;br&gt;Ok... I've reported that to the people who run the servers, but the upshot of 
&lt;br&gt;it seems to be that Windows and smbclient work in this case but mount.cifs 
&lt;br&gt;won't.
&lt;br&gt;&lt;br&gt;On Wednesday 28 October 2009 19.28:36 Jeff Layton wrote:
&lt;br&gt;&amp;gt; Actually...I'm not terribly opposed to adding a mount option for this.
&lt;br&gt;&amp;gt; If someone wants to do the legwork on it and propose a patch, I'll be
&lt;br&gt;&amp;gt; happy to help review it.
&lt;br&gt;&lt;br&gt;I don't have the cycles to do this myself -- I'm just going to make do with 
&lt;br&gt;password auth. However, thanks for your help and explanations.
&lt;br&gt;&lt;br&gt;Andrew
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101370&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mount.cifs-with-sec%3Dkrb5-where-kerberos-principal-is-not-the-same-as-file-server-tp26091557p26101370.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26099730</id>
	<title>Re: mount.cifs with sec=krb5 where kerberos principal is not the same as file server</title>
	<published>2009-10-28T11:28:36Z</published>
	<updated>2009-10-28T11:28:36Z</updated>
	<author>
		<name>Jeff Layton-4</name>
	</author>
	<content type="html">On Wed, 28 Oct 2009 13:49:58 +0100
&lt;br&gt;Andrew Baumann &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26099730&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andrewb@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Jeff,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Wednesday 28 October 2009 13.31:27 Jeff Layton wrote:
&lt;br&gt;&amp;gt; &amp;gt; The reason is that while CIFS doesn't currently do mutual krb5
&lt;br&gt;&amp;gt; &amp;gt; authentication, eventually it should. The problem with trusting the
&lt;br&gt;&amp;gt; &amp;gt; mechListMIC is that it makes the client susceptible to
&lt;br&gt;&amp;gt; &amp;gt; man-in-the-middle attacks. An attacker could redirect traffic to a
&lt;br&gt;&amp;gt; &amp;gt; server of his choosing (perhaps by spoofing DNS) and the client would
&lt;br&gt;&amp;gt; &amp;gt; be none the wiser.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hm, I see. Do you happen to know if smbclient does this? In the interim, 
&lt;br&gt;&amp;gt; perhaps it would be useful to have a mount option that could specify the 
&lt;br&gt;&amp;gt; service principal explicitly.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;Actually...I'm not terribly opposed to adding a mount option for this.
&lt;br&gt;If someone wants to do the legwork on it and propose a patch, I'll be
&lt;br&gt;happy to help review it.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26099730&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26099730&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mount.cifs-with-sec%3Dkrb5-where-kerberos-principal-is-not-the-same-as-file-server-tp26091557p26099730.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26094345</id>
	<title>Re: mount.cifs with sec=krb5 where kerberos principal is not the same as file server</title>
	<published>2009-10-28T06:08:30Z</published>
	<updated>2009-10-28T06:08:30Z</updated>
	<author>
		<name>Jeff Layton-4</name>
	</author>
	<content type="html">On Wed, 28 Oct 2009 13:49:58 +0100
&lt;br&gt;Andrew Baumann &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26094345&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andrewb@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Jeff,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Wednesday 28 October 2009 13.31:27 Jeff Layton wrote:
&lt;br&gt;&amp;gt; &amp;gt; The reason is that while CIFS doesn't currently do mutual krb5
&lt;br&gt;&amp;gt; &amp;gt; authentication, eventually it should. The problem with trusting the
&lt;br&gt;&amp;gt; &amp;gt; mechListMIC is that it makes the client susceptible to
&lt;br&gt;&amp;gt; &amp;gt; man-in-the-middle attacks. An attacker could redirect traffic to a
&lt;br&gt;&amp;gt; &amp;gt; server of his choosing (perhaps by spoofing DNS) and the client would
&lt;br&gt;&amp;gt; &amp;gt; be none the wiser.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hm, I see. Do you happen to know if smbclient does this? In the interim, 
&lt;br&gt;&amp;gt; perhaps it would be useful to have a mount option that could specify the 
&lt;br&gt;&amp;gt; service principal explicitly.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;I think that would be unwise -- why use kerberos at all if you're going
&lt;br&gt;to water it down?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; Now...when you say that fs-srv1 is a different host from the file
&lt;br&gt;&amp;gt; &amp;gt; server, what exactly do you mean?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I mean that it is a valid host with a different IP from the host with the 
&lt;br&gt;&amp;gt; share, and it does not itself offer SMB service:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; $ host fs.systems
&lt;br&gt;&amp;gt; fs.systems.inf.ethz.ch is an alias for fs-systems.inf.ethz.ch.
&lt;br&gt;&amp;gt; fs-systems.inf.ethz.ch has address 129.132.19.42
&lt;br&gt;&amp;gt; $ host fs-srv1
&lt;br&gt;&amp;gt; fs-srv1.ethz.ch is an alias for fs-srv1.inf.ethz.ch.
&lt;br&gt;&amp;gt; fs-srv1.inf.ethz.ch has address 129.132.19.5
&lt;br&gt;&amp;gt; $ telnet fs-srv1 microsoft-ds
&lt;br&gt;&amp;gt; Trying 129.132.19.5...
&lt;br&gt;&amp;gt; telnet: Unable to connect to remote host: Connection refused
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; (I don't know the exact details of the file service setup here, but I can find 
&lt;br&gt;&amp;gt; out more if it's helpful).
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;By &amp;quot;valid host&amp;quot; do you mean that it's a separate machine entirely? Or
&lt;br&gt;are you playing around with floating addresses in a clustered setup?
&lt;br&gt;&lt;br&gt;Either way, this appears to be a server misconfiguration. A properly
&lt;br&gt;configured server should accept principals for all possible hostname
&lt;br&gt;aliases. The fact that it's expecting a service principal for a
&lt;br&gt;completely different host and not accepting a service principal for one
&lt;br&gt;of its names looks broken to me.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26094345&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26094345&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mount.cifs-with-sec%3Dkrb5-where-kerberos-principal-is-not-the-same-as-file-server-tp26091557p26094345.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26094091</id>
	<title>Re: mount.cifs with sec=krb5 where kerberos principal is not the same as file server</title>
	<published>2009-10-28T05:49:58Z</published>
	<updated>2009-10-28T05:49:58Z</updated>
	<author>
		<name>Andrew Baumann-2</name>
	</author>
	<content type="html">Hi Jeff,
&lt;br&gt;&lt;br&gt;On Wednesday 28 October 2009 13.31:27 Jeff Layton wrote:
&lt;br&gt;&amp;gt; The reason is that while CIFS doesn't currently do mutual krb5
&lt;br&gt;&amp;gt; authentication, eventually it should. The problem with trusting the
&lt;br&gt;&amp;gt; mechListMIC is that it makes the client susceptible to
&lt;br&gt;&amp;gt; man-in-the-middle attacks. An attacker could redirect traffic to a
&lt;br&gt;&amp;gt; server of his choosing (perhaps by spoofing DNS) and the client would
&lt;br&gt;&amp;gt; be none the wiser.
&lt;br&gt;&lt;br&gt;Hm, I see. Do you happen to know if smbclient does this? In the interim, 
&lt;br&gt;perhaps it would be useful to have a mount option that could specify the 
&lt;br&gt;service principal explicitly.
&lt;br&gt;&lt;br&gt;&amp;gt; Now...when you say that fs-srv1 is a different host from the file
&lt;br&gt;&amp;gt; server, what exactly do you mean?
&lt;br&gt;&lt;br&gt;I mean that it is a valid host with a different IP from the host with the 
&lt;br&gt;share, and it does not itself offer SMB service:
&lt;br&gt;&lt;br&gt;$ host fs.systems
&lt;br&gt;fs.systems.inf.ethz.ch is an alias for fs-systems.inf.ethz.ch.
&lt;br&gt;fs-systems.inf.ethz.ch has address 129.132.19.42
&lt;br&gt;$ host fs-srv1
&lt;br&gt;fs-srv1.ethz.ch is an alias for fs-srv1.inf.ethz.ch.
&lt;br&gt;fs-srv1.inf.ethz.ch has address 129.132.19.5
&lt;br&gt;$ telnet fs-srv1 microsoft-ds
&lt;br&gt;Trying 129.132.19.5...
&lt;br&gt;telnet: Unable to connect to remote host: Connection refused
&lt;br&gt;&lt;br&gt;(I don't know the exact details of the file service setup here, but I can find 
&lt;br&gt;out more if it's helpful).
&lt;br&gt;&lt;br&gt;Andrew
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26094091&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mount.cifs-with-sec%3Dkrb5-where-kerberos-principal-is-not-the-same-as-file-server-tp26091557p26094091.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26093823</id>
	<title>Re: mount.cifs with sec=krb5 where kerberos principal is not the same as file server</title>
	<published>2009-10-28T05:31:27Z</published>
	<updated>2009-10-28T05:31:27Z</updated>
	<author>
		<name>Jeff Layton-4</name>
	</author>
	<content type="html">On Wed, 28 Oct 2009 10:20:26 +0100
&lt;br&gt;Andrew Baumann &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26093823&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andrewb@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm trying to get mount.cifs to work with kerberos authentication (sec=krb5).
&lt;br&gt;&amp;gt; smbclient -k works, however mount.cifs reports:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; $ /sbin/mount.cifs //fs.systems.inf.ethz.ch/sharename ./mnt -o sec=krb5
&lt;br&gt;&amp;gt; mount error(126): Required key not available
&lt;br&gt;&amp;gt; Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The dmesg output is as follows:
&lt;br&gt;&amp;gt; [3460893.349868] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifsfs.c: Devname: //fs.systems.inf.ethz.ch/sharename flags: 64
&lt;br&gt;&amp;gt; [3460893.349874] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 147 with uid: 0
&lt;br&gt;&amp;gt; [3460893.349882] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: Username: username
&lt;br&gt;&amp;gt; [3460893.349885] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: UNC: \\fs.systems.inf.ethz.ch\sharename ip: 129.132.19.42
&lt;br&gt;&amp;gt; [3460893.349894] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: Socket created
&lt;br&gt;&amp;gt; [3460893.350930] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x7fffffffffffffff
&lt;br&gt;&amp;gt; [3460893.350973] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: Existing smb sess not found
&lt;br&gt;&amp;gt; [3460893.350979] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifssmb.c: secFlags 0x8
&lt;br&gt;&amp;gt; [3460893.350981] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifssmb.c: Kerberos only mechanism, enable extended security
&lt;br&gt;&amp;gt; [3460893.350985] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/transport.c: For smb_command 114
&lt;br&gt;&amp;gt; [3460893.350988] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/transport.c: Sending smb of length 78
&lt;br&gt;&amp;gt; [3460893.351004] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: Demultiplex PID: 28499
&lt;br&gt;&amp;gt; [3460893.354098] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: rfc1002 length 0xb7
&lt;br&gt;&amp;gt; [3460893.355167] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifssmb.c: Dialect: 2
&lt;br&gt;&amp;gt; [3460893.355173] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/asn1.c: OID len = 7 oid = 0x1 0x2 0x348 0x1bb92
&lt;br&gt;&amp;gt; [3460893.355176] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/asn1.c: OID len = 7 oid = 0x1 0x2 0x348 0xbb92
&lt;br&gt;&amp;gt; [3460893.355179] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/asn1.c: OID len = 10 oid = 0x1 0x3 0x6 0x1
&lt;br&gt;&amp;gt; [3460893.355182] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/asn1.c: Need to call asn1_octets_decode() function for cifs/fs-
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26093823&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;srv1.inf.ethz.ch@...&lt;/a&gt;
&lt;br&gt;&amp;gt; [3460893.355185] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifssmb.c: Signing disabled
&lt;br&gt;&amp;gt; [3460893.355190] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifssmb.c: negprot rc 0
&lt;br&gt;&amp;gt; [3460893.355192] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: Security Mode: 0x3 Capabilities: 0x8000f3fd TimeAdjust: -3600
&lt;br&gt;&amp;gt; [3460893.355196] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/sess.c: sess setup type 6
&lt;br&gt;&amp;gt; [3460893.355202] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifs_spnego.c: key description = 
&lt;br&gt;&amp;gt; ver=0x2;host=fs.systems.inf.ethz.ch;ip4=129.132.19.42;sec=krb5;uid=0xc926;user=username
&lt;br&gt;&amp;gt; [3460893.410781] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/sess.c: ssetup freeing small buf ffff880114155dc0
&lt;br&gt;&amp;gt; [3460893.410786] &amp;nbsp;CIFS VFS: Send error in SessSetup = -126
&lt;br&gt;&amp;gt; [3460893.410796] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 147) rc = -126
&lt;br&gt;&amp;gt; [3460893.410799] &amp;nbsp;CIFS VFS: cifs_mount failed w/return code = -126
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ... from this, and looking at packet capture logs, it seems that the negotiate
&lt;br&gt;&amp;gt; response from the server specifies a principal of &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26093823&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cifs/fs-srv1.inf.ethz.ch@...&lt;/a&gt;
&lt;br&gt;&amp;gt; however the cifs code persists in trying to get a kerberos ticket for the file
&lt;br&gt;&amp;gt; server host (fs.systems.inf.ethz.ch), which fails. smbclient gets this right and
&lt;br&gt;&amp;gt; presents the cached ticket for &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26093823&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cifs/fs-srv1.inf.ethz.ch@...&lt;/a&gt;.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Note that &amp;nbsp;is really a different host from the file server, so I cannot
&lt;br&gt;&amp;gt; work around this problem by simply mounting with a different host name.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Here is the full negotiate response from the server (and I can send other
&lt;br&gt;&amp;gt; packet logs if useful):
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; NetBIOS Session Service
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Message Type: Session message
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Length: 179
&lt;br&gt;&amp;gt; SMB (Server Message Block Protocol)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; SMB Header
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Server Component: SMB
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [Response to: 4]
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [Time from request: 0.001272000 seconds]
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SMB Command: Negotiate Protocol (0x72)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NT Status: STATUS_SUCCESS (0x00000000)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Flags: 0x88
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1... .... = Request/Response: Message is a response to the client/redirector
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .0.. .... = Notify: Notify client only on open
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ..0. .... = Oplocks: OpLock not requested/granted
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...0 .... = Canonicalized Pathnames: Pathnames are not canonicalized
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... 1... = Case Sensitivity: Path names are caseless
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... ..0. = Receive Buffer Posted: Receive buffer has not been posted
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... ...0 = Lock and Read: Lock&amp;Read, Write&amp;Unlock are not supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Flags2: 0xc801
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1... .... .... .... = Unicode Strings: Strings are Unicode
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .1.. .... .... .... = Error Code Type: Error codes are NT error codes
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ..0. .... .... .... = Execute-only Reads: Don't permit reads if execute-only
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...0 .... .... .... = Dfs: Don't resolve pathnames with Dfs
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... 1... .... .... = Extended Security Negotiation: Extended security negotiation is supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .0.. .... = Long Names Used: Path names in request are not long file names
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .0.. = Security Signatures: Security signatures are not supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... ..0. = Extended Attributes: Extended attributes are not supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... ...1 = Long Names Allowed: Long file names are allowed in the response
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Process ID High: 0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Signature: 0000000000000000
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reserved: 0000
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tree ID: 0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Process ID: 28048
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; User ID: 0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Multiplex ID: 1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Negotiate Protocol Response (0x72)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Word Count (WCT): 17
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dialect Index: 8, greater than LANMAN2.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Security Mode: 0x03
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... ...1 = Mode: USER security mode
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... ..1. = Password: ENCRYPTED password. Use challenge/response
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .0.. = Signatures: Security signatures NOT enabled
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... 0... = Sig Req: Security signatures NOT required
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Max Mpx Count: 50
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Max VCs: 1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Max Buffer Size: 16644
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Max Raw Buffer: 65536
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Session Key: 0x00001ed9
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Capabilities: 0x8000f3fd
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... .... ...1 = Raw Mode: Read Raw and Write Raw are supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... .... ..0. = MPX Mode: Read Mpx and Write Mpx are not supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... .... .1.. = Unicode: Unicode strings are supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... .... 1... = Large Files: Large files are supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... ...1 .... = NT SMBs: NT SMBs are supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... ..1. .... = RPC Remote APIs: RPC remote APIs are supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... .1.. .... = NT Status Codes: NT status codes are supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... 1... .... = Level 2 Oplocks: Level 2 oplocks are supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... ...1 .... .... = Lock and Read: Lock and Read is supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... ..1. .... .... = NT Find: NT Find is supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... ...1 .... .... .... = Dfs: Dfs is supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... ..1. .... .... .... = Infolevel Passthru: NT information level request passthrough is supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .1.. .... .... .... = Large ReadX: Large Read andX is supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... 1... .... .... .... = Large WriteX: Large Write andX is supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... 0... .... .... .... .... .... = UNIX: UNIX extensions are not supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... ..0. .... .... .... .... .... .... = Reserved: Reserved
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ..0. .... .... .... .... .... .... .... = Bulk Transfer: Bulk Read and Bulk Write are not supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .0.. .... .... .... .... .... .... .... = Compressed Data: Compressed data transfer is not supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1... .... .... .... .... .... .... .... = Extended Security: Extended security exchanges are supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System Time: Oct 28, 2009 09:42:32.000000000
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Server Time Zone: -60 min from UTC
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key Length: 0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Byte Count (BCC): 110
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Server GUID: 66732D73727631000000000000000000
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Security Blob: 605C06062B0601050502A0523050A024302206092A864886...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GSS-API Generic Security Service Application Program Interface
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OID: 1.3.6.1.5.5.2 (SPNEGO - Simple Protected Negotiation)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SPNEGO
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; negTokenInit
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mechTypes: 3 items
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Item: 1.2.840.113554.1.2.2 (KRB5 - Kerberos 5)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Item: 1.2.840.48018.1.2.2 (MS KRB5 - Microsoft Kerberos 5)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Item: 1.3.6.1.4.1.311.2.2.10 (NTLMSSP - Microsoft NTLM Security Support Provider)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mechListMIC: 3026A0241B22636966732F66732D737276312E696E662E65...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; principal: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26093823&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cifs/fs-srv1.inf.ethz.ch@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;CIFS currently relies on you to specify the same hostname in the UNC as
&lt;br&gt;the krb5 service principal that you need to mount.
&lt;br&gt;&lt;br&gt;The reason is that while CIFS doesn't currently do mutual krb5
&lt;br&gt;authentication, eventually it should. The problem with trusting the
&lt;br&gt;mechListMIC is that it makes the client susceptible to
&lt;br&gt;man-in-the-middle attacks. An attacker could redirect traffic to a
&lt;br&gt;server of his choosing (perhaps by spoofing DNS) and the client would
&lt;br&gt;be none the wiser.
&lt;br&gt;&lt;br&gt;Now...when you say that fs-srv1 is a different host from the file
&lt;br&gt;server, what exactly do you mean?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26093823&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26093823&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mount.cifs-with-sec%3Dkrb5-where-kerberos-principal-is-not-the-same-as-file-server-tp26091557p26093823.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26091557</id>
	<title>mount.cifs with sec=krb5 where kerberos principal is not the same as file server</title>
	<published>2009-10-28T02:20:26Z</published>
	<updated>2009-10-28T02:20:26Z</updated>
	<author>
		<name>Andrew Baumann-2</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;I'm trying to get mount.cifs to work with kerberos authentication (sec=krb5).
&lt;br&gt;smbclient -k works, however mount.cifs reports:
&lt;br&gt;&lt;br&gt;$ /sbin/mount.cifs //fs.systems.inf.ethz.ch/sharename ./mnt -o sec=krb5
&lt;br&gt;mount error(126): Required key not available
&lt;br&gt;Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
&lt;br&gt;&lt;br&gt;The dmesg output is as follows:
&lt;br&gt;[3460893.349868] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifsfs.c: Devname: //fs.systems.inf.ethz.ch/sharename flags: 64
&lt;br&gt;[3460893.349874] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 147 with uid: 0
&lt;br&gt;[3460893.349882] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: Username: username
&lt;br&gt;[3460893.349885] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: UNC: \\fs.systems.inf.ethz.ch\sharename ip: 129.132.19.42
&lt;br&gt;[3460893.349894] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: Socket created
&lt;br&gt;[3460893.350930] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x7fffffffffffffff
&lt;br&gt;[3460893.350973] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: Existing smb sess not found
&lt;br&gt;[3460893.350979] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifssmb.c: secFlags 0x8
&lt;br&gt;[3460893.350981] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifssmb.c: Kerberos only mechanism, enable extended security
&lt;br&gt;[3460893.350985] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/transport.c: For smb_command 114
&lt;br&gt;[3460893.350988] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/transport.c: Sending smb of length 78
&lt;br&gt;[3460893.351004] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: Demultiplex PID: 28499
&lt;br&gt;[3460893.354098] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: rfc1002 length 0xb7
&lt;br&gt;[3460893.355167] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifssmb.c: Dialect: 2
&lt;br&gt;[3460893.355173] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/asn1.c: OID len = 7 oid = 0x1 0x2 0x348 0x1bb92
&lt;br&gt;[3460893.355176] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/asn1.c: OID len = 7 oid = 0x1 0x2 0x348 0xbb92
&lt;br&gt;[3460893.355179] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/asn1.c: OID len = 10 oid = 0x1 0x3 0x6 0x1
&lt;br&gt;[3460893.355182] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/asn1.c: Need to call asn1_octets_decode() function for cifs/fs-
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26091557&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;srv1.inf.ethz.ch@...&lt;/a&gt;
&lt;br&gt;[3460893.355185] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifssmb.c: Signing disabled
&lt;br&gt;[3460893.355190] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifssmb.c: negprot rc 0
&lt;br&gt;[3460893.355192] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: Security Mode: 0x3 Capabilities: 0x8000f3fd TimeAdjust: -3600
&lt;br&gt;[3460893.355196] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/sess.c: sess setup type 6
&lt;br&gt;[3460893.355202] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifs_spnego.c: key description = 
&lt;br&gt;ver=0x2;host=fs.systems.inf.ethz.ch;ip4=129.132.19.42;sec=krb5;uid=0xc926;user=username
&lt;br&gt;[3460893.410781] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/sess.c: ssetup freeing small buf ffff880114155dc0
&lt;br&gt;[3460893.410786] &amp;nbsp;CIFS VFS: Send error in SessSetup = -126
&lt;br&gt;[3460893.410796] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 147) rc = -126
&lt;br&gt;[3460893.410799] &amp;nbsp;CIFS VFS: cifs_mount failed w/return code = -126
&lt;br&gt;&lt;br&gt;... from this, and looking at packet capture logs, it seems that the negotiate
&lt;br&gt;response from the server specifies a principal of &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26091557&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cifs/fs-srv1.inf.ethz.ch@...&lt;/a&gt;
&lt;br&gt;however the cifs code persists in trying to get a kerberos ticket for the file
&lt;br&gt;server host (fs.systems.inf.ethz.ch), which fails. smbclient gets this right and
&lt;br&gt;presents the cached ticket for &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26091557&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cifs/fs-srv1.inf.ethz.ch@...&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;Note that fs-srv1 is really a different host from the file server, so I cannot
&lt;br&gt;work around this problem by simply mounting with a different host name.
&lt;br&gt;&lt;br&gt;Here is the full negotiate response from the server (and I can send other
&lt;br&gt;packet logs if useful):
&lt;br&gt;&lt;br&gt;NetBIOS Session Service
&lt;br&gt;&amp;nbsp; &amp;nbsp; Message Type: Session message
&lt;br&gt;&amp;nbsp; &amp;nbsp; Length: 179
&lt;br&gt;SMB (Server Message Block Protocol)
&lt;br&gt;&amp;nbsp; &amp;nbsp; SMB Header
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Server Component: SMB
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [Response to: 4]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [Time from request: 0.001272000 seconds]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SMB Command: Negotiate Protocol (0x72)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NT Status: STATUS_SUCCESS (0x00000000)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Flags: 0x88
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1... .... = Request/Response: Message is a response to the client/redirector
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .0.. .... = Notify: Notify client only on open
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ..0. .... = Oplocks: OpLock not requested/granted
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...0 .... = Canonicalized Pathnames: Pathnames are not canonicalized
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... 1... = Case Sensitivity: Path names are caseless
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... ..0. = Receive Buffer Posted: Receive buffer has not been posted
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... ...0 = Lock and Read: Lock&amp;Read, Write&amp;Unlock are not supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Flags2: 0xc801
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1... .... .... .... = Unicode Strings: Strings are Unicode
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .1.. .... .... .... = Error Code Type: Error codes are NT error codes
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ..0. .... .... .... = Execute-only Reads: Don't permit reads if execute-only
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...0 .... .... .... = Dfs: Don't resolve pathnames with Dfs
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... 1... .... .... = Extended Security Negotiation: Extended security negotiation is supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .0.. .... = Long Names Used: Path names in request are not long file names
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .0.. = Security Signatures: Security signatures are not supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... ..0. = Extended Attributes: Extended attributes are not supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... ...1 = Long Names Allowed: Long file names are allowed in the response
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Process ID High: 0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Signature: 0000000000000000
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reserved: 0000
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tree ID: 0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Process ID: 28048
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; User ID: 0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Multiplex ID: 1
&lt;br&gt;&amp;nbsp; &amp;nbsp; Negotiate Protocol Response (0x72)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Word Count (WCT): 17
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dialect Index: 8, greater than LANMAN2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Security Mode: 0x03
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... ...1 = Mode: USER security mode
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... ..1. = Password: ENCRYPTED password. Use challenge/response
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .0.. = Signatures: Security signatures NOT enabled
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... 0... = Sig Req: Security signatures NOT required
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Max Mpx Count: 50
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Max VCs: 1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Max Buffer Size: 16644
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Max Raw Buffer: 65536
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Session Key: 0x00001ed9
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Capabilities: 0x8000f3fd
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... .... ...1 = Raw Mode: Read Raw and Write Raw are supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... .... ..0. = MPX Mode: Read Mpx and Write Mpx are not supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... .... .1.. = Unicode: Unicode strings are supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... .... 1... = Large Files: Large files are supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... ...1 .... = NT SMBs: NT SMBs are supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... ..1. .... = RPC Remote APIs: RPC remote APIs are supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... .1.. .... = NT Status Codes: NT status codes are supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... 1... .... = Level 2 Oplocks: Level 2 oplocks are supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... ...1 .... .... = Lock and Read: Lock and Read is supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... ..1. .... .... = NT Find: NT Find is supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... ...1 .... .... .... = Dfs: Dfs is supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... ..1. .... .... .... = Infolevel Passthru: NT information level request passthrough is supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .1.. .... .... .... = Large ReadX: Large Read andX is supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... 1... .... .... .... = Large WriteX: Large Write andX is supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... 0... .... .... .... .... .... = UNIX: UNIX extensions are not supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... ..0. .... .... .... .... .... .... = Reserved: Reserved
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ..0. .... .... .... .... .... .... .... = Bulk Transfer: Bulk Read and Bulk Write are not supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .0.. .... .... .... .... .... .... .... = Compressed Data: Compressed data transfer is not supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1... .... .... .... .... .... .... .... = Extended Security: Extended security exchanges are supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System Time: Oct 28, 2009 09:42:32.000000000
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Server Time Zone: -60 min from UTC
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key Length: 0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Byte Count (BCC): 110
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Server GUID: 66732D73727631000000000000000000
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Security Blob: 605C06062B0601050502A0523050A024302206092A864886...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GSS-API Generic Security Service Application Program Interface
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OID: 1.3.6.1.5.5.2 (SPNEGO - Simple Protected Negotiation)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SPNEGO
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; negTokenInit
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mechTypes: 3 items
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Item: 1.2.840.113554.1.2.2 (KRB5 - Kerberos 5)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Item: 1.2.840.48018.1.2.2 (MS KRB5 - Microsoft Kerberos 5)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Item: 1.3.6.1.4.1.311.2.2.10 (NTLMSSP - Microsoft NTLM Security Support Provider)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mechListMIC: 3026A0241B22636966732F66732D737276312E696E662E65...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; principal: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26091557&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cifs/fs-srv1.inf.ethz.ch@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;$ uname -a
&lt;br&gt;Linux prak 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 19:25:34 UTC 2009 x86_64 GNU/Linux
&lt;br&gt;$ /sbin/mount.cifs -V
&lt;br&gt;mount.cifs version: 1.12-3.3.2
&lt;br&gt;$ smbclient -V
&lt;br&gt;Version 3.3.2
&lt;br&gt;$ /usr/sbin/cifs.upcall -v
&lt;br&gt;version: 1.2
&lt;br&gt;$ grep cifs /etc/request-key.conf
&lt;br&gt;create &amp;nbsp;cifs.spnego &amp;nbsp; &amp;nbsp; * &amp;nbsp; &amp;nbsp; &amp;nbsp; * &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /usr/sbin/cifs.upcall -c %k %d
&lt;br&gt;create &amp;nbsp;dns_resolver &amp;nbsp; &amp;nbsp;* &amp;nbsp; &amp;nbsp; &amp;nbsp; * &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /usr/sbin/cifs.upcall -c %k
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Andrew
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26091557&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mount.cifs-with-sec%3Dkrb5-where-kerberos-principal-is-not-the-same-as-file-server-tp26091557p26091557.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26079315</id>
	<title>[PATCH] cifs: don't use CIFSGetSrvInodeNumber in is_path_accessible</title>
	<published>2009-10-27T08:02:44Z</published>
	<updated>2009-10-27T08:02:44Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">Because it's lighter weight, CIFS tries to do a QPathInfo call with an
&lt;br&gt;infolevel of SMB_QUERY_FILE_INTERNAL_INFO to verify the accessibility of
&lt;br&gt;the root inode. It then falls back to using an infolevel of
&lt;br&gt;SMB_QUERY_FILE_ALL_INFO if that fails with -EOPNOTSUPP.
&lt;br&gt;&lt;br&gt;There's a problem however. SMB_QUERY_FILE_INTERNAL_INFO isn't as well
&lt;br&gt;supported by all servers as SMB_QUERY_FILE_ALL_INFO is, and the error
&lt;br&gt;returns from those servers aren't well standardized. I have at least one
&lt;br&gt;report of a server that returns NT_STATUS_INTERNAL_ERROR (which
&lt;br&gt;translates to EIO) rather than something that translates to EOPNOTSUPP.
&lt;br&gt;&lt;br&gt;Given that that function only gets called at mount time, I think it's
&lt;br&gt;better to do this as simply as possible. Rather than trying to be
&lt;br&gt;clever, just have is_path_accessible use SMB_QUERY_FILE_ALL_INFO. That
&lt;br&gt;call is widely supported and it shouldn't increase the overhead
&lt;br&gt;significantly.
&lt;br&gt;&lt;br&gt;Unfortunately, the reporter of this problem doesn't seem to be in a
&lt;br&gt;hurry to test it, so I don't have any test results from it. Given what I
&lt;br&gt;see in the captures though, I expect that this will fix the problem.
&lt;br&gt;&lt;br&gt;Signed-off-by: Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26079315&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;---
&lt;br&gt;&amp;nbsp;fs/cifs/connect.c | &amp;nbsp; &amp;nbsp;8 --------
&lt;br&gt;&amp;nbsp;1 files changed, 0 insertions(+), 8 deletions(-)
&lt;br&gt;&lt;br&gt;diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
&lt;br&gt;index b090980..63ea83f 100644
&lt;br&gt;--- a/fs/cifs/connect.c
&lt;br&gt;+++ b/fs/cifs/connect.c
&lt;br&gt;@@ -2220,16 +2220,8 @@ is_path_accessible(int xid, struct cifsTconInfo *tcon,
&lt;br&gt;&amp;nbsp;		 &amp;nbsp; struct cifs_sb_info *cifs_sb, const char *full_path)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp;	int rc;
&lt;br&gt;-	__u64 inode_num;
&lt;br&gt;&amp;nbsp;	FILE_ALL_INFO *pfile_info;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	rc = CIFSGetSrvInodeNumber(xid, tcon, full_path, &amp;inode_num,
&lt;br&gt;-				 &amp;nbsp; cifs_sb-&amp;gt;local_nls,
&lt;br&gt;-				 &amp;nbsp; cifs_sb-&amp;gt;mnt_cifs_flags &amp;
&lt;br&gt;-						CIFS_MOUNT_MAP_SPECIAL_CHR);
&lt;br&gt;-	if (rc != -EOPNOTSUPP)
&lt;br&gt;-		return rc;
&lt;br&gt;-
&lt;br&gt;&amp;nbsp;	pfile_info = kmalloc(sizeof(FILE_ALL_INFO), GFP_KERNEL);
&lt;br&gt;&amp;nbsp;	if (pfile_info == NULL)
&lt;br&gt;&amp;nbsp;		return -ENOMEM;
&lt;br&gt;-- 
&lt;br&gt;1.6.0.6
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26079315&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--cifs%3A-fix-server-returning-zeroed-out-FileID%27s-in-SMB_FIND_FILE_ID_FULL_DIR_INFO-tp26079312p26079315.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26079312</id>
	<title>[PATCH] cifs: fix server returning zeroed out FileID's in SMB_FIND_FILE_ID_FULL_DIR_INFO</title>
	<published>2009-10-27T08:02:43Z</published>
	<updated>2009-10-27T08:02:43Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">It's possible that a server will return a valid FileID when we query the
&lt;br&gt;FILE_INTERNAL_INFO for the root inode, but then zeroed out inode numbers
&lt;br&gt;when we do a FindFile with an infolevel of
&lt;br&gt;SMB_FIND_FILE_ID_FULL_DIR_INFO.
&lt;br&gt;&lt;br&gt;In this situation turn off querying for server inode numbers, and just
&lt;br&gt;generate an inode number using iunique.
&lt;br&gt;&lt;br&gt;While I've given this patch to the reporter and asked him to test it, he
&lt;br&gt;hasn't yet come back with the results. So I can't confirm whether this
&lt;br&gt;really fixes the problem or not. I expect that it will, but I'll
&lt;br&gt;understand if you'd rather wait to commit this until we have
&lt;br&gt;confirmation.
&lt;br&gt;&lt;br&gt;Reported-by: Timothy Normand Miller &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26079312&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;theosib@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Signed-off-by: Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26079312&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;---
&lt;br&gt;&amp;nbsp;fs/cifs/readdir.c | &amp;nbsp; &amp;nbsp;8 +++++---
&lt;br&gt;&amp;nbsp;1 files changed, 5 insertions(+), 3 deletions(-)
&lt;br&gt;&lt;br&gt;diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c
&lt;br&gt;index 1f098ca..bafef8b 100644
&lt;br&gt;--- a/fs/cifs/readdir.c
&lt;br&gt;+++ b/fs/cifs/readdir.c
&lt;br&gt;@@ -727,11 +727,13 @@ static int cifs_filldir(char *pfindEntry, struct file *file, filldir_t filldir,
&lt;br&gt;&amp;nbsp;		cifs_dir_info_to_fattr(&amp;fattr, (FILE_DIRECTORY_INFO *)
&lt;br&gt;&amp;nbsp;					pfindEntry, cifs_sb);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	/* FIXME: make _to_fattr functions fill this out */
&lt;br&gt;-	if (pCifsF-&amp;gt;srch_inf.info_level == SMB_FIND_FILE_ID_FULL_DIR_INFO)
&lt;br&gt;+	if (inum) {
&lt;br&gt;&amp;nbsp;		fattr.cf_uniqueid = inum;
&lt;br&gt;-	else
&lt;br&gt;+	} else {
&lt;br&gt;&amp;nbsp;		fattr.cf_uniqueid = iunique(sb, ROOT_I);
&lt;br&gt;+		if (cifs_sb-&amp;gt;mnt_cifs_flags &amp; CIFS_MOUNT_SERVER_INUM)
&lt;br&gt;+			cifs_sb-&amp;gt;mnt_cifs_flags &amp;= ~CIFS_MOUNT_SERVER_INUM;
&lt;br&gt;+	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	ino = cifs_uniqueid_to_ino_t(fattr.cf_uniqueid);
&lt;br&gt;&amp;nbsp;	tmp_dentry = cifs_readdir_lookup(file-&amp;gt;f_dentry, &amp;qstring, &amp;fattr);
&lt;br&gt;-- 
&lt;br&gt;1.6.0.6
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26079312&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--cifs%3A-fix-server-returning-zeroed-out-FileID%27s-in-SMB_FIND_FILE_ID_FULL_DIR_INFO-tp26079312p26079312.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26076897</id>
	<title>Re: Manual page for mount.cifs credentials option</title>
	<published>2009-10-27T05:34:12Z</published>
	<updated>2009-10-27T05:34:12Z</updated>
	<author>
		<name>Jeff Layton-4</name>
	</author>
	<content type="html">On Tue, 27 Oct 2009 07:29:47 -0400
&lt;br&gt;Scott Lovenberg &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26076897&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scott.lovenberg@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Jeff Layton wrote:On Thu, 22 Oct 2009 12:49:05 -0400
&lt;br&gt;&amp;gt; Scott Lovenberg &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26076897&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scott.lovenberg@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; Not sure if this is the correct place to file this report, if not, please point me in the correct direction.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The credentials option for mount.smbfs used to be the following format:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; user=name
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; password=pass
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've found that the format supported for mount.cifs is:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; username=name
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; password=pass
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This seems at odds with the manual page for mount.cifs under the user=arg option:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [...]
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Note
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The cifs vfs accepts the parameter user=, or for users familiar with smbfs it
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accepts the longer form of the parameter username=. Similarly the longer smbfs
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;style parameter names may be accepted as synonyms for the shorter cifs
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;parameters pass=,dom= and cred=.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [...]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I had, for whatever reason, assumed that the user option rules would apply to the credentials file or that it would be backwards compatible with the older mount.smbfs credentials file format. &amp;nbsp;Are either of these assumptions correct? &amp;nbsp;If not, would it make sense to add or reword the manual page a bit (assuming I'm not the only one that misinterpreted it) for clarity? &amp;nbsp;I wouldn't mind drafting up a proposal if other felt it was worth the effort.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Happy Version Numbers:
&lt;br&gt;&amp;gt; from The Fine Manual page for mount.cifs(8)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; VERSION
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;This man page is correct for version 1.52 of the cifs vfs filesystem (roughly Linux kernel 2.6.24).
&lt;br&gt;&amp;gt; [1005 12:24 sun ~]#smbd -V
&lt;br&gt;&amp;gt; Version 3.0.33-3.7.el5
&lt;br&gt;&amp;gt; [1007 12:26 sun ~]#uname -a
&lt;br&gt;&amp;gt; Linux sanitized.network.tld 2.6.18-92.1.22.el5.centos.plusxen #1 SMP Wed Dec 17 11:22:13 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; Consistency here would probably be a good thing. A proposal for
&lt;br&gt;&amp;gt; cleaning it up would be welcome. Patches would be even better.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;The weekend slipped away from me (they all seem to do that lately...); I'm going to take a look at this tonight after work.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Would you agree that it is more desirable to add the &amp;quot;user=&amp;quot; format to mount.cifs to maintain backwards compatibility? &amp;nbsp;I think this is probably the most 'clean' way to deal with it.
&lt;/div&gt;&lt;br&gt;&lt;br&gt;I agree that it would be good to have cifs be option-compatible with
&lt;br&gt;smbfs. Not sure when we'll get to this however. It would probably be
&lt;br&gt;best to file a bug at:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://bugzilla.samba.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugzilla.samba.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;So we don't lose track of it.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;-- 
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26076897&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26076897&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Manual-page-for-mount.cifs-credentials-option-tp26013415p26076897.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26076056</id>
	<title>Re: Manual page for mount.cifs credentials option</title>
	<published>2009-10-27T04:29:47Z</published>
	<updated>2009-10-27T04:29:47Z</updated>
	<author>
		<name>Scott Lovenberg</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
  &lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
Jeff Layton wrote:
&lt;blockquote cite=&quot;mid:20091023081622.59218902@tlielax.poochiereds.net&quot; type=&quot;cite&quot;&gt;
  &lt;pre wrap=&quot;&quot;&gt;On Thu, 22 Oct 2009 12:49:05 -0400
Scott Lovenberg &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26076056&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scott.lovenberg@...&lt;/a&gt; wrote:

  &lt;/pre&gt;
  &lt;blockquote type=&quot;cite&quot;&gt;
    &lt;pre wrap=&quot;&quot;&gt;Not sure if this is the correct place to file this report, if not, please point me in the correct direction.

The credentials option for mount.smbfs used to be the following format:
    user=name
    password=pass

I've found that the format supported for mount.cifs is:
    username=name
    password=pass

This seems at odds with the manual page for mount.cifs under the user=arg option:
    [...]
           Note
           The cifs vfs accepts the parameter user=, or for users familiar with smbfs it
           accepts the longer form of the parameter username=. Similarly the longer smbfs
           style parameter names may be accepted as synonyms for the shorter cifs
           parameters pass=,dom= and cred=.
    [...]

I had, for whatever reason, assumed that the user option rules would apply to the credentials file or that it would be backwards compatible with the older mount.smbfs credentials file format.  Are either of these assumptions correct?  If not, would it make sense to add or reword the manual page a bit (assuming I'm not the only one that misinterpreted it) for clarity?  I wouldn't mind drafting up a proposal if other felt it was worth the effort.


Happy Version Numbers:
from The Fine Manual page for mount.cifs(8)
        VERSION
           This man page is correct for version 1.52 of the cifs vfs filesystem (roughly Linux kernel 2.6.24).
[1005 12:24 sun ~]#smbd -V
Version 3.0.33-3.7.el5
[1007 12:26 sun ~]#uname -a
Linux sanitized.network.tld 2.6.18-92.1.22.el5.centos.plusxen #1 SMP Wed Dec 17 11:22:13 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
    &lt;/pre&gt;
  &lt;/blockquote&gt;
  &lt;pre wrap=&quot;&quot;&gt;&lt;!----&gt;
Consistency here would probably be a good thing. A proposal for
cleaning it up would be welcome. Patches would be even better.

  &lt;/pre&gt;
&lt;/blockquote&gt;
The weekend slipped away from me (they all seem to do that lately...);
I'm going to take a look at this tonight after work.&lt;br&gt;
&lt;br&gt;
Would you agree that it is more desirable to add the &quot;user=&quot; format to
mount.cifs to maintain backwards compatibility?&amp;nbsp; I think this is
probably the most 'clean' way to deal with it.&lt;br&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26076056&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Manual-page-for-mount.cifs-credentials-option-tp26013415p26076056.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26075553</id>
	<title>Re: Hello</title>
	<published>2009-10-27T03:45:22Z</published>
	<updated>2009-10-27T03:45:22Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">On Mon, 26 Oct 2009 14:06:13 -0400
&lt;br&gt;Linux User &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26075553&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linuxuser09@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I'm not sure if I am on the right mailing list for this questions. I'm having 
&lt;br&gt;&amp;gt; a hard time understanding/setting file permissions/uid/gid on the client side.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Here's my mount line:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; sudo mount.cifs //comp2.localnet.webwaredev.org/games /mnt/games-share -v -o 
&lt;br&gt;&amp;gt; uid=500 gid=networkshares file_mode=0775 dir_mode=0775
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It's in verbose and this was what was outputted:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; mount.cifs kernel mount options: 
&lt;br&gt;&amp;gt; unc=//comp2.localnet.webwaredev.org\games,user=root,ver=1,uid=500,ip=192.168.0.3,pass=********
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; And this is what I am running into:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; [lhorace@netsrv games-share]$ cd test
&lt;br&gt;&amp;gt; [lhorace@netsrv test]$ mkdir test2
&lt;br&gt;&amp;gt; [lhorace@netsrv test]$ ls -l
&lt;br&gt;&amp;gt; total 0
&lt;br&gt;&amp;gt; drwxr-xr-x. 2 lhorace root 0 2009-10-26 12:28 test2
&lt;br&gt;&amp;gt; [lhorace@netsrv test]$ touch filetext.txt
&lt;br&gt;&amp;gt; touch: cannot touch `filetext.txt': Permission denied
&lt;br&gt;&amp;gt; [lhorace@netsrv test]$ cd test2
&lt;br&gt;&amp;gt; [lhorace@netsrv test2]$ touch filetest.txt
&lt;br&gt;&amp;gt; touch: cannot touch `filetest.txt': Permission denied
&lt;br&gt;&amp;gt; [lhorace@netsrv test2]$
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On a regular filesystem folder, if I am the owner of the folder, I should be 
&lt;br&gt;&amp;gt; able to create files within the folder. And reading the output correctly, it 
&lt;br&gt;&amp;gt; seems that uid is the only thing that get's pass to the kernel.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Note: uid=500 = lhorace, and lhorace exists on bothsystems including 
&lt;br&gt;&amp;gt; networkshares.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What am I doing wrong? Any hints/clues would be entirely appreciative thank 
&lt;br&gt;&amp;gt; you.. =)
&lt;/div&gt;&lt;br&gt;Permissions on CIFS are confusing stuff...
&lt;br&gt;&lt;br&gt;CIFS doesn't manage multiple credentials per mount. In this case,
&lt;br&gt;you're mounting the share with &amp;quot;user=root&amp;quot;. So even though on the local
&lt;br&gt;machine you're &amp;quot;lhorace&amp;quot; and the dir is owned by &amp;quot;lhorace&amp;quot; on the
&lt;br&gt;server, the call goes out over the wire as &amp;quot;root&amp;quot; (which is probably
&lt;br&gt;being mapped to an unprivileged user).
&lt;br&gt;&lt;br&gt;You probably want to redo the mount with user=lhorace, but be
&lt;br&gt;forewarned that all the activity will be done as &amp;quot;lhorace&amp;quot; no matter
&lt;br&gt;what user on the client is doing this activity.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26075553&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26075553&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hello-tp26064712p26075553.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26064712</id>
	<title>Hello</title>
	<published>2009-10-26T11:06:13Z</published>
	<updated>2009-10-26T11:06:13Z</updated>
	<author>
		<name>Linux User-12</name>
	</author>
	<content type="html">I'm not sure if I am on the right mailing list for this questions. I'm having 
&lt;br&gt;a hard time understanding/setting file permissions/uid/gid on the client side.
&lt;br&gt;&lt;br&gt;Here's my mount line:
&lt;br&gt;&lt;br&gt;sudo mount.cifs //comp2.localnet.webwaredev.org/games /mnt/games-share -v -o 
&lt;br&gt;uid=500 gid=networkshares file_mode=0775 dir_mode=0775
&lt;br&gt;&lt;br&gt;It's in verbose and this was what was outputted:
&lt;br&gt;&lt;br&gt;mount.cifs kernel mount options: 
&lt;br&gt;unc=//comp2.localnet.webwaredev.org\games,user=root,ver=1,uid=500,ip=192.168.0.3,pass=********
&lt;br&gt;&lt;br&gt;And this is what I am running into:
&lt;br&gt;&lt;br&gt;[lhorace@netsrv games-share]$ cd test
&lt;br&gt;[lhorace@netsrv test]$ mkdir test2
&lt;br&gt;[lhorace@netsrv test]$ ls -l
&lt;br&gt;total 0
&lt;br&gt;drwxr-xr-x. 2 lhorace root 0 2009-10-26 12:28 test2
&lt;br&gt;[lhorace@netsrv test]$ touch filetext.txt
&lt;br&gt;touch: cannot touch `filetext.txt': Permission denied
&lt;br&gt;[lhorace@netsrv test]$ cd test2
&lt;br&gt;[lhorace@netsrv test2]$ touch filetest.txt
&lt;br&gt;touch: cannot touch `filetest.txt': Permission denied
&lt;br&gt;[lhorace@netsrv test2]$
&lt;br&gt;&lt;br&gt;On a regular filesystem folder, if I am the owner of the folder, I should be 
&lt;br&gt;able to create files within the folder. And reading the output correctly, it 
&lt;br&gt;seems that uid is the only thing that get's pass to the kernel.
&lt;br&gt;&lt;br&gt;Note: uid=500 = lhorace, and lhorace exists on bothsystems including 
&lt;br&gt;networkshares.
&lt;br&gt;&lt;br&gt;What am I doing wrong? Any hints/clues would be entirely appreciative thank 
&lt;br&gt;you.. =)
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26064712&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hello-tp26064712p26064712.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26059494</id>
	<title>Re: Question on current stateofsec=krb5*integration in cifs.ko</title>
	<published>2009-10-26T06:14:08Z</published>
	<updated>2009-10-26T06:14:08Z</updated>
	<author>
		<name>Holger Rauch-3</name>
	</author>
	<content type="html">Hi Volker,
&lt;br&gt;&lt;br&gt;ok, did the same grep as below, but this time for &amp;quot;crypt&amp;quot;. I now came
&lt;br&gt;accross a parameter named
&lt;br&gt;&lt;br&gt;smb encrypt
&lt;br&gt;&lt;br&gt;Is that the right one (from the smb.conf man page it seems to be)?
&lt;br&gt;Furthermore, &amp;quot;smb encrypt&amp;quot; seems to include *both* signing and
&lt;br&gt;encryption, so one &amp;quot;smb encrypt&amp;quot; is set to mandatory, &amp;quot;server signing
&lt;br&gt;= mandatory&amp;quot; should no longer be required, right?
&lt;br&gt;&lt;br&gt;Besides, why not rename &amp;quot;server signing&amp;quot; to &amp;quot;smb signing&amp;quot; for
&lt;br&gt;consistency (would also make it easier to grep for it)?
&lt;br&gt;&lt;br&gt;Greetings,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Holger
&lt;br&gt;&lt;br&gt;Volker Lendecke schrieb am Monday, den 26. October 2009:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Mon, Oct 26, 2009 at 10:56:42AM +0100, Holger Rauch wrote:
&lt;br&gt;&amp;gt; &amp;gt; [...] 
&lt;br&gt;&amp;gt; &amp;gt; Does &amp;quot;server signing = mandatory&amp;quot; also include encryption? I did a
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;testparm - v | grep server&amp;quot; and additional option containing
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;encryption&amp;quot; was shown, so I guess &amp;quot;server signing&amp;quot; includes both
&lt;br&gt;&amp;gt; &amp;gt; signing *and* encryption, right?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; No.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Volker
&lt;/div&gt;--
&lt;/div&gt;=========================================
&lt;br&gt;Holger Rauch
&lt;br&gt;Entwicklung Anwendungs-Software
&lt;br&gt;Systemadministration UNIX
&lt;br&gt;&lt;br&gt;Tel.: +49 / 9131 / 877 - 141
&lt;br&gt;Fax: +49 / 9131 / 877 - 266
&lt;br&gt;Email: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26059494&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Holger.Rauch@...&lt;/a&gt;
&lt;br&gt;=========================================
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26059494&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (204 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26059494/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-current-state-of-sec%3Dkrb5*-integration-in-cifs.ko-tp25998453p26059494.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26058805</id>
	<title>Re: Question on current state	ofsec=krb5*integration in cifs.ko</title>
	<published>2009-10-26T04:23:50Z</published>
	<updated>2009-10-26T04:23:50Z</updated>
	<author>
		<name>Volker Lendecke</name>
	</author>
	<content type="html">On Mon, Oct 26, 2009 at 10:56:42AM +0100, Holger Rauch wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Volker,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Volker Lendecke schrieb am Friday, den 23. October 2009:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; [...]
&lt;br&gt;&amp;gt; &amp;gt; For the server you would say &amp;quot;server signing = mandatory&amp;quot;,
&lt;br&gt;&amp;gt; &amp;gt; no idea about mount.cifs.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; For mount.cifs, specifying sec=krb5i instead of sec=krb5 in my
&lt;br&gt;&amp;gt; automount map obviously worked. The file system was automounted as
&lt;br&gt;&amp;gt; expected.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Does &amp;quot;server signing = mandatory&amp;quot; also include encryption? I did a
&lt;br&gt;&amp;gt; &amp;quot;testparm - v | grep server&amp;quot; and additional option containing
&lt;br&gt;&amp;gt; &amp;quot;encryption&amp;quot; was shown, so I guess &amp;quot;server signing&amp;quot; includes both
&lt;br&gt;&amp;gt; signing *and* encryption, right?
&lt;/div&gt;&lt;br&gt;No.
&lt;br&gt;&lt;br&gt;Volker
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26058805&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-current-state-of-sec%3Dkrb5*-integration-in-cifs.ko-tp25998453p26058805.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26056925</id>
	<title>Re: Question on current state ofsec=krb5*integration in cifs.ko</title>
	<published>2009-10-26T02:56:42Z</published>
	<updated>2009-10-26T02:56:42Z</updated>
	<author>
		<name>Holger Rauch-3</name>
	</author>
	<content type="html">Hi Volker,
&lt;br&gt;&lt;br&gt;Volker Lendecke schrieb am Friday, den 23. October 2009:
&lt;br&gt;&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&amp;gt; For the server you would say &amp;quot;server signing = mandatory&amp;quot;,
&lt;br&gt;&amp;gt; no idea about mount.cifs.
&lt;br&gt;&lt;br&gt;For mount.cifs, specifying sec=krb5i instead of sec=krb5 in my
&lt;br&gt;automount map obviously worked. The file system was automounted as
&lt;br&gt;expected.
&lt;br&gt;&lt;br&gt;Does &amp;quot;server signing = mandatory&amp;quot; also include encryption? I did a
&lt;br&gt;&amp;quot;testparm - v | grep server&amp;quot; and additional option containing
&lt;br&gt;&amp;quot;encryption&amp;quot; was shown, so I guess &amp;quot;server signing&amp;quot; includes both
&lt;br&gt;signing *and* encryption, right?
&lt;br&gt;&lt;br&gt;Thanks for clarifying this &amp; kind regards,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Holger
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26056925&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (204 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26056925/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-current-state-of-sec%3Dkrb5*-integration-in-cifs.ko-tp25998453p26056925.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26030194</id>
	<title>Re: Question on current state of	sec=krb5*integration in cifs.ko</title>
	<published>2009-10-23T10:13:38Z</published>
	<updated>2009-10-23T10:13:38Z</updated>
	<author>
		<name>Volker Lendecke</name>
	</author>
	<content type="html">On Fri, Oct 23, 2009 at 06:20:40PM +0200, Holger Rauch wrote:
&lt;br&gt;&amp;gt; Hi Volker,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I looked at
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://wiki.samba.org/index.php/UNIX_Extensions&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.samba.org/index.php/UNIX_Extensions&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; but I couldn't find anything about SMB encryption. Do you have any
&lt;br&gt;&amp;gt; good links concerning both SMB signing and encryption (configuring it,
&lt;br&gt;&amp;gt; smb.conf options, etc.)?
&lt;br&gt;&lt;br&gt;For the server you would say &amp;quot;server signing = mandatory&amp;quot;,
&lt;br&gt;no idea about mount.cifs.
&lt;br&gt;&lt;br&gt;&amp;gt; Are they both part of Samba 3.2.5 (shipped with Debian Lenny) or would
&lt;br&gt;&amp;gt; I need a more recent version of Samba?
&lt;br&gt;&lt;br&gt;Samba 3.2.5 server-side does both signing and encryption.
&lt;br&gt;cifs.ko afaik only does signing, no encryption yet (this was
&lt;br&gt;the &amp;quot;Hint&amp;quot; part of my last mail :-))
&lt;br&gt;&lt;br&gt;Volker
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26030194&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (204 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26030194/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-current-state-of-sec%3Dkrb5*-integration-in-cifs.ko-tp25998453p26030194.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26030197</id>
	<title>Re: Question on current state of sec=krb5* integration in cifs.ko</title>
	<published>2009-10-23T10:13:19Z</published>
	<updated>2009-10-23T10:13:19Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">On Fri, 23 Oct 2009 18:30:25 +0200
&lt;br&gt;Holger Rauch &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26030197&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;holger.rauch@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Jeff,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Fri, 23 Oct 2009, Jeff Layton wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; [...] 
&lt;br&gt;&amp;gt; &amp;gt; Yes, much...
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; NFS (well, RPC actually) sends credentials with every call, so if you
&lt;br&gt;&amp;gt; &amp;gt; destroy the creds, then the client and server will tend to pick up on
&lt;br&gt;&amp;gt; &amp;gt; that fact rather quickly. With CIFS the credentials are just used to
&lt;br&gt;&amp;gt; &amp;gt; establish a &amp;quot;session&amp;quot;. After that, krb5 doesn't really come into play
&lt;br&gt;&amp;gt; &amp;gt; very much (at least until you have to reconnect).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Well, that surely explains the &amp;quot;kdestroy&amp;quot; thing, but the other
&lt;br&gt;&amp;gt; interesting question is what software is actually meant by &amp;quot;server&amp;quot;
&lt;br&gt;&amp;gt; in case the log message reads similar to &amp;quot;server doesn't support signing&amp;quot;?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Any details for me on this one?
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;/div&gt;Sorry, it's a little difficult to be more specific...
&lt;br&gt;&lt;br&gt;It depends on what you're kind of server you're mounting here. If it's
&lt;br&gt;windows, then you'll probably need to play with its settings. If you're
&lt;br&gt;mounting samba, you probably need to set samba options to enable
&lt;br&gt;signing. If something else...who knows?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26030197&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26030197&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (205 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26030197/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-current-state-of-sec%3Dkrb5*-integration-in-cifs.ko-tp25998453p26030197.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26029693</id>
	<title>Re: Question on current state of sec=krb5* integration in cifs.ko</title>
	<published>2009-10-23T09:41:04Z</published>
	<updated>2009-10-23T09:41:04Z</updated>
	<author>
		<name>Q (Igor Mammedov)</name>
	</author>
	<content type="html">On Fri, Oct 23, 2009 at 8:24 PM, Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26029693&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Fri, 23 Oct 2009 20:00:59 +0400
&lt;br&gt;&amp;gt; &amp;quot;Q (Igor Mammedov)&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26029693&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;qwerty0987654321@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Fri, Oct 23, 2009 at 6:19 PM, Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26029693&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; On Fri, 23 Oct 2009 15:54:29 +0200
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Holger Rauch &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26029693&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;holger.rauch@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Hi Jeff,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; first of all, thanks for your quick reply.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; On Fri, 23 Oct 2009, Jeff Layton wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; On Fri, 23 Oct 2009 13:12:14 +0200
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Holger Rauch &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26029693&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;holger.rauch@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt; [...]
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt; I just tried that. Mount options in /etc/fstab are
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt; noauto,sec=krb5i,iocharset=iso8859-15
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt; When I issue the mount cmd, it asks me for a password.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; That probably means that you have a fairly old mount.cifs program. The
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; more recent ones don't prompt for a password when sec=krb5* is
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; specified. Try adding the &amp;quot;guest&amp;quot; option which will disable password
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; prompting.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Ok, I tried that (debugging output included as well; interestingly
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; enough, &amp;quot;mount.cifs -V&amp;quot; only outputs the help message, even if
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; mount.cifs is called with an absolute path). This happenend on a
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Debian Lenny system having the shipped kernel version (uname -r):
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; 2.6.26-2-686-bigmem
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Since &amp;quot;mount.cifs -V&amp;quot; didn't come up with version info, I used
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;quot;apt-cache show smbfs&amp;quot; (&amp;quot;smbfs&amp;quot; is the Debian package mount.cifs is
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; contained in). It has the same version as the other Samba packages
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; shipped with Debian: 3.2.5
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; ==============
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; pia:~# mount -t cifs //server/myuser
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; /cifs/user --verbose -o
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; sec=krb5i,user=myuser,guest,iocharset=iso8859-15
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; parsing options: rw,sec=krb5i,user=myuser,guest,iocharset=iso8859-15
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; mount.cifs kernel mount options
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; unc=//server\myuser,ip=ww.xx.yy.zz,ver=1,rw,sec=krb5i,user=myuser,guest,iocharset=iso8859-15
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; mount error 95 = Operation not supported
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; pia:~# dmesg
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; [8046556.840192]  fs/cifs/cifsfs.c: Devname:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; //prag-old.er.heitec.net/hrauch flags: 64
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; [8046556.847954]  fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; 15 with uid: 0
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; [8046556.895920]  fs/cifs/connect.c: iocharset set to iso8859-15
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; [8046556.903932]  fs/cifs/connect.c: Username: myuser
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; [8046556.911928]  fs/cifs/connect.c: UNC:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; \\server\myuser ip: ww.xx.yy.zz
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; [8046556.916743]  fs/cifs/connect.c: Socket created
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; [8046556.924050]  fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; rcvtimeo 0x7fffffff
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; [8046556.935312]  fs/cifs/connect.c: Existing smb sess not found
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; [8046556.935312]  fs/cifs/connect.c: Demultiplex PID: 6171
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; [8046556.946262]  fs/cifs/cifssmb.c: secFlags 0x1009
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; [8046556.950328]  fs/cifs/cifssmb.c: Kerberos only mechanism, enable
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; extended security
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; [8046556.957962]  fs/cifs/transport.c: For smb_command 114
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; [8046556.962692]  fs/cifs/transport.c: Sending smb of length 78
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; [8046556.968883]  fs/cifs/connect.c: rfc1002 length 0xbe
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; [8046556.974665]  fs/cifs/cifssmb.c: Dialect: 2
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; [8046556.978940]  fs/cifs/asn1.c: OID len = 7 oid = 0x1 0x2 0x348
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; 0x1bb92
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; [8046556.989230]  fs/cifs/asn1.c: OID len = 7 oid = 0x1 0x2 0x348 0xbb92
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; [8046556.991772]  fs/cifs/asn1.c: OID len = 10 oid = 0x1 0x3 0x6 0x1
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; [8046556.998296]  fs/cifs/asn1.c: Need to call asn1_octets_decode()
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; function for cifs/server@MYREALM
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; [8046557.008389]  fs/cifs/cifssmb.c: Must sign - secFlags 0x1009
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; [8046557.015170]  CIFS VFS: signing required but server lacks support
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; I think this message explains the problem ^^^^
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; You've request krb5i, but your server doesn't support signing. You
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; might want to try sec=krb5 and see if that works.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; That there won't be much security left with sec=krb, because of
&lt;br&gt;&amp;gt;&amp;gt; it would lack even signed cisf packets. And as far as I remember,
&lt;br&gt;&amp;gt;&amp;gt; the client doesn't do mutual authentication of the server, so
&lt;br&gt;&amp;gt;&amp;gt; the server may be faked by any machine registered in the ADS
&lt;br&gt;&amp;gt;&amp;gt; domain.
&lt;br&gt;&amp;gt;&amp;gt; Any ways, we can use current cifs only to authenticate client
&lt;br&gt;&amp;gt;&amp;gt; on the server only, but there won't be much security in the sense
&lt;br&gt;&amp;gt;&amp;gt; of transmitted data or checking if we speak with real server.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My intention was not to claim that using krb5 instead of krb5i was a
&lt;br&gt;&amp;gt; good idea...simply that he might want to try it to make sure that was
&lt;br&gt;&amp;gt; the only problem.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Obviously, fixing the server to support signing would be a better
&lt;br&gt;&amp;gt; long term solution.
&lt;/div&gt;&lt;br&gt;I'm Sorry if I was rude. Your solution to the problem is perfectly Ok.
&lt;br&gt;I just complemented your answer with what security risks there are.
&lt;br&gt;&lt;br&gt;And implementing mutual authentication wasn't a simple thing when
&lt;br&gt;I've looked at it. It will require to expand upcall protocol to do several
&lt;br&gt;round-trips of SecurityBlob between KDC and cifs server.
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26029693&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26029693&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-current-state-of-sec%3Dkrb5*-integration-in-cifs.ko-tp25998453p26029693.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26029520</id>
	<title>Re: Question on current state of sec=krb5* integration in cifs.ko</title>
	<published>2009-10-23T09:30:25Z</published>
	<updated>2009-10-23T09:30:25Z</updated>
	<author>
		<name>Holger Rauch-3</name>
	</author>
	<content type="html">Hi Jeff,
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Fri, 23 Oct 2009, Jeff Layton wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; [...] 
&lt;br&gt;&amp;gt; Yes, much...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; NFS (well, RPC actually) sends credentials with every call, so if you
&lt;br&gt;&amp;gt; destroy the creds, then the client and server will tend to pick up on
&lt;br&gt;&amp;gt; that fact rather quickly. With CIFS the credentials are just used to
&lt;br&gt;&amp;gt; establish a &amp;quot;session&amp;quot;. After that, krb5 doesn't really come into play
&lt;br&gt;&amp;gt; very much (at least until you have to reconnect).
&lt;br&gt;&lt;br&gt;Well, that surely explains the &amp;quot;kdestroy&amp;quot; thing, but the other
&lt;br&gt;interesting question is what software is actually meant by &amp;quot;server&amp;quot;
&lt;br&gt;in case the log message reads similar to &amp;quot;server doesn't support signing&amp;quot;?
&lt;br&gt;&lt;br&gt;Any details for me on this one?
&lt;br&gt;&lt;br&gt;Thanks &amp; kind regards,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Holger
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26029520&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (204 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26029520/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-current-state-of-sec%3Dkrb5*-integration-in-cifs.ko-tp25998453p26029520.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26029416</id>
	<title>Re: Question on current state of sec=krb5* integration in cifs.ko</title>
	<published>2009-10-23T09:24:19Z</published>
	<updated>2009-10-23T09:24:19Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">On Fri, 23 Oct 2009 20:00:59 +0400
&lt;br&gt;&amp;quot;Q (Igor Mammedov)&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26029416&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;qwerty0987654321@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Fri, Oct 23, 2009 at 6:19 PM, Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26029416&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; On Fri, 23 Oct 2009 15:54:29 +0200
&lt;br&gt;&amp;gt; &amp;gt; Holger Rauch &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26029416&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;holger.rauch@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Hi Jeff,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; first of all, thanks for your quick reply.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; On Fri, 23 Oct 2009, Jeff Layton wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; On Fri, 23 Oct 2009 13:12:14 +0200
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Holger Rauch &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26029416&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;holger.rauch@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt; [...]
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt; I just tried that. Mount options in /etc/fstab are
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt; noauto,sec=krb5i,iocharset=iso8859-15
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &amp;gt; When I issue the mount cmd, it asks me for a password.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; That probably means that you have a fairly old mount.cifs program. The
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; more recent ones don't prompt for a password when sec=krb5* is
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; specified. Try adding the &amp;quot;guest&amp;quot; option which will disable password
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; prompting.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Ok, I tried that (debugging output included as well; interestingly
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; enough, &amp;quot;mount.cifs -V&amp;quot; only outputs the help message, even if
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; mount.cifs is called with an absolute path). This happenend on a
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Debian Lenny system having the shipped kernel version (uname -r):
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 2.6.26-2-686-bigmem
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Since &amp;quot;mount.cifs -V&amp;quot; didn't come up with version info, I used
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;quot;apt-cache show smbfs&amp;quot; (&amp;quot;smbfs&amp;quot; is the Debian package mount.cifs is
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; contained in). It has the same version as the other Samba packages
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; shipped with Debian: 3.2.5
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; ==============
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; pia:~# mount -t cifs //server/myuser
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; /cifs/user --verbose -o
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; sec=krb5i,user=myuser,guest,iocharset=iso8859-15
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; parsing options: rw,sec=krb5i,user=myuser,guest,iocharset=iso8859-15
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; mount.cifs kernel mount options
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; unc=//server\myuser,ip=ww.xx.yy.zz,ver=1,rw,sec=krb5i,user=myuser,guest,iocharset=iso8859-15
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; mount error 95 = Operation not supported
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; pia:~# dmesg
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; [8046556.840192]  fs/cifs/cifsfs.c: Devname:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; //prag-old.er.heitec.net/hrauch flags: 64
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; [8046556.847954]  fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 15 with uid: 0
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; [8046556.895920]  fs/cifs/connect.c: iocharset set to iso8859-15
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; [8046556.903932]  fs/cifs/connect.c: Username: myuser
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; [8046556.911928]  fs/cifs/connect.c: UNC:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; \\server\myuser ip: ww.xx.yy.zz
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; [8046556.916743]  fs/cifs/connect.c: Socket created
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; [8046556.924050]  fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; rcvtimeo 0x7fffffff
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; [8046556.935312]  fs/cifs/connect.c: Existing smb sess not found
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; [8046556.935312]  fs/cifs/connect.c: Demultiplex PID: 6171
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; [8046556.946262]  fs/cifs/cifssmb.c: secFlags 0x1009
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; [8046556.950328]  fs/cifs/cifssmb.c: Kerberos only mechanism, enable
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; extended security
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; [8046556.957962]  fs/cifs/transport.c: For smb_command 114
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; [8046556.962692]  fs/cifs/transport.c: Sending smb of length 78
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; [8046556.968883]  fs/cifs/connect.c: rfc1002 length 0xbe
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; [8046556.974665]  fs/cifs/cifssmb.c: Dialect: 2
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; [8046556.978940]  fs/cifs/asn1.c: OID len = 7 oid = 0x1 0x2 0x348
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 0x1bb92
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; [8046556.989230]  fs/cifs/asn1.c: OID len = 7 oid = 0x1 0x2 0x348 0xbb92
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; [8046556.991772]  fs/cifs/asn1.c: OID len = 10 oid = 0x1 0x3 0x6 0x1
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; [8046556.998296]  fs/cifs/asn1.c: Need to call asn1_octets_decode()
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; function for cifs/server@MYREALM
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; [8046557.008389]  fs/cifs/cifssmb.c: Must sign - secFlags 0x1009
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; [8046557.015170]  CIFS VFS: signing required but server lacks support
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I think this message explains the problem ^^^^
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; You've request krb5i, but your server doesn't support signing. You
&lt;br&gt;&amp;gt; &amp;gt; might want to try sec=krb5 and see if that works.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; That there won't be much security left with sec=krb, because of
&lt;br&gt;&amp;gt; it would lack even signed cisf packets. And as far as I remember,
&lt;br&gt;&amp;gt; the client doesn't do mutual authentication of the server, so
&lt;br&gt;&amp;gt; the server may be faked by any machine registered in the ADS
&lt;br&gt;&amp;gt; domain.
&lt;br&gt;&amp;gt; Any ways, we can use current cifs only to authenticate client
&lt;br&gt;&amp;gt; on the server only, but there won't be much security in the sense
&lt;br&gt;&amp;gt; of transmitted data or checking if we speak with real server.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;My intention was not to claim that using krb5 instead of krb5i was a
&lt;br&gt;good idea...simply that he might want to try it to make sure that was
&lt;br&gt;the only problem.
&lt;br&gt;&lt;br&gt;Obviously, fixing the server to support signing would be a better
&lt;br&gt;long term solution.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26029416&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26029416&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-current-state-of-sec%3Dkrb5*-integration-in-cifs.ko-tp25998453p26029416.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26029374</id>
	<title>Re: Question on current state of sec=krb5*integration in cifs.ko</title>
	<published>2009-10-23T09:20:40Z</published>
	<updated>2009-10-23T09:20:40Z</updated>
	<author>
		<name>Holger Rauch-3</name>
	</author>
	<content type="html">Hi Volker,
&lt;br&gt;&lt;br&gt;I looked at
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://wiki.samba.org/index.php/UNIX_Extensions&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.samba.org/index.php/UNIX_Extensions&lt;/a&gt;&lt;br&gt;&lt;br&gt;but I couldn't find anything about SMB encryption. Do you have any
&lt;br&gt;good links concerning both SMB signing and encryption (configuring it,
&lt;br&gt;smb.conf options, etc.)?
&lt;br&gt;&lt;br&gt;Are they both part of Samba 3.2.5 (shipped with Debian Lenny) or would
&lt;br&gt;I need a more recent version of Samba?
&lt;br&gt;&lt;br&gt;Volker Lendecke schrieb am Friday, den 23. October 2009:
&lt;br&gt;&lt;br&gt;&amp;gt; [...] 
&lt;br&gt;&amp;gt; It's not *as* bad as it sounds security-wise, SMB signing
&lt;br&gt;&amp;gt; attempts to provide integrity, and the Samba extensions for
&lt;br&gt;&amp;gt; SMB encryption (Jeff: Hint...! :-)) would provide
&lt;br&gt;&amp;gt; confidentiality.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Volker
&lt;br&gt;&lt;br&gt;Thanks for enlightening me &amp; kind regards,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Holger
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26029374&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (204 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26029374/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-current-state-of-sec%3Dkrb5*-integration-in-cifs.ko-tp25998453p26029374.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26029047</id>
	<title>Re: Question on current state of sec=krb5* integration in cifs.ko</title>
	<published>2009-10-23T09:00:59Z</published>
	<updated>2009-10-23T09:00:59Z</updated>
	<author>
		<name>Q (Igor Mammedov)</name>
	</author>
	<content type="html">On Fri, Oct 23, 2009 at 6:19 PM, Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26029047&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Fri, 23 Oct 2009 15:54:29 +0200
&lt;br&gt;&amp;gt; Holger Rauch &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26029047&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;holger.rauch@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hi Jeff,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; first of all, thanks for your quick reply.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Fri, 23 Oct 2009, Jeff Layton wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; On Fri, 23 Oct 2009 13:12:14 +0200
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Holger Rauch &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26029047&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;holger.rauch@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;gt; [...]
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;gt; I just tried that. Mount options in /etc/fstab are
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;gt; noauto,sec=krb5i,iocharset=iso8859-15
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;gt; When I issue the mount cmd, it asks me for a password.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; That probably means that you have a fairly old mount.cifs program. The
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; more recent ones don't prompt for a password when sec=krb5* is
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; specified. Try adding the &amp;quot;guest&amp;quot; option which will disable password
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; prompting.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Ok, I tried that (debugging output included as well; interestingly
&lt;br&gt;&amp;gt;&amp;gt; enough, &amp;quot;mount.cifs -V&amp;quot; only outputs the help message, even if
&lt;br&gt;&amp;gt;&amp;gt; mount.cifs is called with an absolute path). This happenend on a
&lt;br&gt;&amp;gt;&amp;gt; Debian Lenny system having the shipped kernel version (uname -r):
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 2.6.26-2-686-bigmem
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Since &amp;quot;mount.cifs -V&amp;quot; didn't come up with version info, I used
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;apt-cache show smbfs&amp;quot; (&amp;quot;smbfs&amp;quot; is the Debian package mount.cifs is
&lt;br&gt;&amp;gt;&amp;gt; contained in). It has the same version as the other Samba packages
&lt;br&gt;&amp;gt;&amp;gt; shipped with Debian: 3.2.5
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ==============
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; pia:~# mount -t cifs //server/myuser
&lt;br&gt;&amp;gt;&amp;gt; /cifs/user --verbose -o
&lt;br&gt;&amp;gt;&amp;gt; sec=krb5i,user=myuser,guest,iocharset=iso8859-15
&lt;br&gt;&amp;gt;&amp;gt; parsing options: rw,sec=krb5i,user=myuser,guest,iocharset=iso8859-15
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; mount.cifs kernel mount options
&lt;br&gt;&amp;gt;&amp;gt; unc=//server\myuser,ip=ww.xx.yy.zz,ver=1,rw,sec=krb5i,user=myuser,guest,iocharset=iso8859-15
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; mount error 95 = Operation not supported
&lt;br&gt;&amp;gt;&amp;gt; Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
&lt;br&gt;&amp;gt;&amp;gt; pia:~# dmesg
&lt;br&gt;&amp;gt;&amp;gt; [8046556.840192]  fs/cifs/cifsfs.c: Devname:
&lt;br&gt;&amp;gt;&amp;gt; //prag-old.er.heitec.net/hrauch flags: 64
&lt;br&gt;&amp;gt;&amp;gt; [8046556.847954]  fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid:
&lt;br&gt;&amp;gt;&amp;gt; 15 with uid: 0
&lt;br&gt;&amp;gt;&amp;gt; [8046556.895920]  fs/cifs/connect.c: iocharset set to iso8859-15
&lt;br&gt;&amp;gt;&amp;gt; [8046556.903932]  fs/cifs/connect.c: Username: myuser
&lt;br&gt;&amp;gt;&amp;gt; [8046556.911928]  fs/cifs/connect.c: UNC:
&lt;br&gt;&amp;gt;&amp;gt; \\server\myuser ip: ww.xx.yy.zz
&lt;br&gt;&amp;gt;&amp;gt; [8046556.916743]  fs/cifs/connect.c: Socket created
&lt;br&gt;&amp;gt;&amp;gt; [8046556.924050]  fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380
&lt;br&gt;&amp;gt;&amp;gt; rcvtimeo 0x7fffffff
&lt;br&gt;&amp;gt;&amp;gt; [8046556.935312]  fs/cifs/connect.c: Existing smb sess not found
&lt;br&gt;&amp;gt;&amp;gt; [8046556.935312]  fs/cifs/connect.c: Demultiplex PID: 6171
&lt;br&gt;&amp;gt;&amp;gt; [8046556.946262]  fs/cifs/cifssmb.c: secFlags 0x1009
&lt;br&gt;&amp;gt;&amp;gt; [8046556.950328]  fs/cifs/cifssmb.c: Kerberos only mechanism, enable
&lt;br&gt;&amp;gt;&amp;gt; extended security
&lt;br&gt;&amp;gt;&amp;gt; [8046556.957962]  fs/cifs/transport.c: For smb_command 114
&lt;br&gt;&amp;gt;&amp;gt; [8046556.962692]  fs/cifs/transport.c: Sending smb of length 78
&lt;br&gt;&amp;gt;&amp;gt; [8046556.968883]  fs/cifs/connect.c: rfc1002 length 0xbe
&lt;br&gt;&amp;gt;&amp;gt; [8046556.974665]  fs/cifs/cifssmb.c: Dialect: 2
&lt;br&gt;&amp;gt;&amp;gt; [8046556.978940]  fs/cifs/asn1.c: OID len = 7 oid = 0x1 0x2 0x348
&lt;br&gt;&amp;gt;&amp;gt; 0x1bb92
&lt;br&gt;&amp;gt;&amp;gt; [8046556.989230]  fs/cifs/asn1.c: OID len = 7 oid = 0x1 0x2 0x348 0xbb92
&lt;br&gt;&amp;gt;&amp;gt; [8046556.991772]  fs/cifs/asn1.c: OID len = 10 oid = 0x1 0x3 0x6 0x1
&lt;br&gt;&amp;gt;&amp;gt; [8046556.998296]  fs/cifs/asn1.c: Need to call asn1_octets_decode()
&lt;br&gt;&amp;gt;&amp;gt; function for cifs/server@MYREALM
&lt;br&gt;&amp;gt;&amp;gt; [8046557.008389]  fs/cifs/cifssmb.c: Must sign - secFlags 0x1009
&lt;br&gt;&amp;gt;&amp;gt; [8046557.015170]  CIFS VFS: signing required but server lacks support
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I think this message explains the problem ^^^^
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You've request krb5i, but your server doesn't support signing. You
&lt;br&gt;&amp;gt; might want to try sec=krb5 and see if that works.
&lt;/div&gt;&lt;br&gt;That there won't be much security left with sec=krb, because of
&lt;br&gt;it would lack even signed cisf packets. And as far as I remember,
&lt;br&gt;the client doesn't do mutual authentication of the server, so
&lt;br&gt;the server may be faked by any machine registered in the ADS
&lt;br&gt;domain.
&lt;br&gt;Any ways, we can use current cifs only to authenticate client
&lt;br&gt;on the server only, but there won't be much security in the sense
&lt;br&gt;of transmitted data or checking if we speak with real server.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; [8046557.022305]  fs/cifs/cifssmb.c: negprot rc -95
&lt;br&gt;&amp;gt;&amp;gt; [8046557.136096]  fs/cifs/connect.c: No session or bad tcon
&lt;br&gt;&amp;gt;&amp;gt; [8046557.213439]  fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid
&lt;br&gt;&amp;gt;&amp;gt; = 15) rc = -95
&lt;br&gt;&amp;gt;&amp;gt; [8046557.221012]  CIFS VFS: cifs_mount failed w/return code = -95
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ==============
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Do I need a more recent kernel? If so, which one would you recommend?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks in advance for any hints &amp; kind regards,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;        Holger
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26029047&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; linux-cifs-client mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26029047&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26029047&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-current-state-of-sec%3Dkrb5*-integration-in-cifs.ko-tp25998453p26029047.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26029028</id>
	<title>Re: Question on current state of sec=krb5*	integration in cifs.ko</title>
	<published>2009-10-23T09:00:12Z</published>
	<updated>2009-10-23T09:00:12Z</updated>
	<author>
		<name>Volker Lendecke</name>
	</author>
	<content type="html">On Fri, Oct 23, 2009 at 11:55:12AM -0400, Jeff Layton wrote:
&lt;br&gt;&amp;gt; Yes, much...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; NFS (well, RPC actually) sends credentials with every call, so if you
&lt;br&gt;&amp;gt; destroy the creds, then the client and server will tend to pick up on
&lt;br&gt;&amp;gt; that fact rather quickly. With CIFS the credentials are just used to
&lt;br&gt;&amp;gt; establish a &amp;quot;session&amp;quot;. After that, krb5 doesn't really come into play
&lt;br&gt;&amp;gt; very much (at least until you have to reconnect).
&lt;br&gt;&lt;br&gt;It's not *as* bad as it sounds security-wise, SMB signing
&lt;br&gt;attempts to provide integrity, and the Samba extensions for
&lt;br&gt;SMB encryption (Jeff: Hint...! :-)) would provide
&lt;br&gt;confidentiality.
&lt;br&gt;&lt;br&gt;Volker
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26029028&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (204 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26029028/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-current-state-of-sec%3Dkrb5*-integration-in-cifs.ko-tp25998453p26029028.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26028930</id>
	<title>Re: Question on current state of sec=krb5* integration in cifs.ko</title>
	<published>2009-10-23T08:55:12Z</published>
	<updated>2009-10-23T08:55:12Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">On Fri, 23 Oct 2009 17:46:02 +0200
&lt;br&gt;Holger Rauch &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26028930&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;holger.rauch@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Jeff,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; thanks again for replying that quickly. I tried sec=krb5 and it indeed
&lt;br&gt;&amp;gt; worked (even in conjunction with autofs5). Strangely enough, it even
&lt;br&gt;&amp;gt; continued to work when the credentials cache was empty (having run
&lt;br&gt;&amp;gt; &amp;quot;kdestroy&amp;quot; deliberately in order to test Kerberos security).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I could add files even though there were no tickets left in the cache.
&lt;br&gt;&amp;gt; This shouldn't be the case, I think (at least that's how it works on
&lt;br&gt;&amp;gt; NFSv4; i.e. on NFSv4 I would get &amp;quot;permission denied&amp;quot; when tickets are
&lt;br&gt;&amp;gt; either expired or not present). Is CIFS different in this regard?
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;/div&gt;Yes, much...
&lt;br&gt;&lt;br&gt;NFS (well, RPC actually) sends credentials with every call, so if you
&lt;br&gt;destroy the creds, then the client and server will tend to pick up on
&lt;br&gt;that fact rather quickly. With CIFS the credentials are just used to
&lt;br&gt;establish a &amp;quot;session&amp;quot;. After that, krb5 doesn't really come into play
&lt;br&gt;very much (at least until you have to reconnect).
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26028930&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26028930&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (205 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26028930/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-current-state-of-sec%3Dkrb5*-integration-in-cifs.ko-tp25998453p26028930.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26028779</id>
	<title>Re: Question on current state of sec=krb5* integration in cifs.ko</title>
	<published>2009-10-23T08:46:02Z</published>
	<updated>2009-10-23T08:46:02Z</updated>
	<author>
		<name>Holger Rauch-3</name>
	</author>
	<content type="html">Hi Jeff,
&lt;br&gt;&lt;br&gt;thanks again for replying that quickly. I tried sec=krb5 and it indeed
&lt;br&gt;worked (even in conjunction with autofs5). Strangely enough, it even
&lt;br&gt;continued to work when the credentials cache was empty (having run
&lt;br&gt;&amp;quot;kdestroy&amp;quot; deliberately in order to test Kerberos security).
&lt;br&gt;&lt;br&gt;I could add files even though there were no tickets left in the cache.
&lt;br&gt;This shouldn't be the case, I think (at least that's how it works on
&lt;br&gt;NFSv4; i.e. on NFSv4 I would get &amp;quot;permission denied&amp;quot; when tickets are
&lt;br&gt;either expired or not present). Is CIFS different in this regard?
&lt;br&gt;&lt;br&gt;On Fri, 23 Oct 2009, Jeff Layton wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&amp;gt; &amp;gt; [8046557.008389] &amp;nbsp;fs/cifs/cifssmb.c: Must sign - secFlags 0x1009
&lt;br&gt;&amp;gt; &amp;gt; [8046557.015170] &amp;nbsp;CIFS VFS: signing required but server lacks support
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I think this message explains the problem ^^^^
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You've request krb5i, but your server doesn't support signing. You
&lt;br&gt;&amp;gt; might want to try sec=krb5 and see if that works.
&lt;br&gt;&lt;br&gt;What exactly is meant by &amp;quot;server&amp;quot; (Samba software, MIT Kerberos
&lt;br&gt;software, etc.)? Do I need a more recent Samba, MIT Kerberos, anything
&lt;br&gt;else?
&lt;br&gt;&lt;br&gt;Thanks again &amp; kind regards,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Holger
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26028779&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (204 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26028779/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-current-state-of-sec%3Dkrb5*-integration-in-cifs.ko-tp25998453p26028779.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26027245</id>
	<title>Re: Question on current state of sec=krb5* integration in cifs.ko</title>
	<published>2009-10-23T07:19:42Z</published>
	<updated>2009-10-23T07:19:42Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">On Fri, 23 Oct 2009 15:54:29 +0200
&lt;br&gt;Holger Rauch &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027245&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;holger.rauch@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Jeff,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; first of all, thanks for your quick reply.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Fri, 23 Oct 2009, Jeff Layton wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; On Fri, 23 Oct 2009 13:12:14 +0200
&lt;br&gt;&amp;gt; &amp;gt; Holger Rauch &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027245&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;holger.rauch@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; [...] 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I just tried that. Mount options in /etc/fstab are
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; noauto,sec=krb5i,iocharset=iso8859-15
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; When I issue the mount cmd, it asks me for a password.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; That probably means that you have a fairly old mount.cifs program. The
&lt;br&gt;&amp;gt; &amp;gt; more recent ones don't prompt for a password when sec=krb5* is
&lt;br&gt;&amp;gt; &amp;gt; specified. Try adding the &amp;quot;guest&amp;quot; option which will disable password
&lt;br&gt;&amp;gt; &amp;gt; prompting.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Ok, I tried that (debugging output included as well; interestingly
&lt;br&gt;&amp;gt; enough, &amp;quot;mount.cifs -V&amp;quot; only outputs the help message, even if
&lt;br&gt;&amp;gt; mount.cifs is called with an absolute path). This happenend on a
&lt;br&gt;&amp;gt; Debian Lenny system having the shipped kernel version (uname -r):
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 2.6.26-2-686-bigmem
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Since &amp;quot;mount.cifs -V&amp;quot; didn't come up with version info, I used
&lt;br&gt;&amp;gt; &amp;quot;apt-cache show smbfs&amp;quot; (&amp;quot;smbfs&amp;quot; is the Debian package mount.cifs is
&lt;br&gt;&amp;gt; contained in). It has the same version as the other Samba packages
&lt;br&gt;&amp;gt; shipped with Debian: 3.2.5
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ==============
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; pia:~# mount -t cifs //server/myuser
&lt;br&gt;&amp;gt; /cifs/user --verbose -o
&lt;br&gt;&amp;gt; sec=krb5i,user=myuser,guest,iocharset=iso8859-15
&lt;br&gt;&amp;gt; parsing options: rw,sec=krb5i,user=myuser,guest,iocharset=iso8859-15
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; mount.cifs kernel mount options
&lt;br&gt;&amp;gt; unc=//server\myuser,ip=ww.xx.yy.zz,ver=1,rw,sec=krb5i,user=myuser,guest,iocharset=iso8859-15
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; mount error 95 = Operation not supported
&lt;br&gt;&amp;gt; Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
&lt;br&gt;&amp;gt; pia:~# dmesg
&lt;br&gt;&amp;gt; [8046556.840192] &amp;nbsp;fs/cifs/cifsfs.c: Devname:
&lt;br&gt;&amp;gt; //prag-old.er.heitec.net/hrauch flags: 64 
&lt;br&gt;&amp;gt; [8046556.847954] &amp;nbsp;fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid:
&lt;br&gt;&amp;gt; 15 with uid: 0
&lt;br&gt;&amp;gt; [8046556.895920] &amp;nbsp;fs/cifs/connect.c: iocharset set to iso8859-15
&lt;br&gt;&amp;gt; [8046556.903932] &amp;nbsp;fs/cifs/connect.c: Username: myuser
&lt;br&gt;&amp;gt; [8046556.911928] &amp;nbsp;fs/cifs/connect.c: UNC:
&lt;br&gt;&amp;gt; \\server\myuser ip: ww.xx.yy.zz
&lt;br&gt;&amp;gt; [8046556.916743] &amp;nbsp;fs/cifs/connect.c: Socket created
&lt;br&gt;&amp;gt; [8046556.924050] &amp;nbsp;fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380
&lt;br&gt;&amp;gt; rcvtimeo 0x7fffffff
&lt;br&gt;&amp;gt; [8046556.935312] &amp;nbsp;fs/cifs/connect.c: Existing smb sess not found
&lt;br&gt;&amp;gt; [8046556.935312] &amp;nbsp;fs/cifs/connect.c: Demultiplex PID: 6171
&lt;br&gt;&amp;gt; [8046556.946262] &amp;nbsp;fs/cifs/cifssmb.c: secFlags 0x1009
&lt;br&gt;&amp;gt; [8046556.950328] &amp;nbsp;fs/cifs/cifssmb.c: Kerberos only mechanism, enable
&lt;br&gt;&amp;gt; extended security
&lt;br&gt;&amp;gt; [8046556.957962] &amp;nbsp;fs/cifs/transport.c: For smb_command 114
&lt;br&gt;&amp;gt; [8046556.962692] &amp;nbsp;fs/cifs/transport.c: Sending smb of length 78
&lt;br&gt;&amp;gt; [8046556.968883] &amp;nbsp;fs/cifs/connect.c: rfc1002 length 0xbe
&lt;br&gt;&amp;gt; [8046556.974665] &amp;nbsp;fs/cifs/cifssmb.c: Dialect: 2
&lt;br&gt;&amp;gt; [8046556.978940] &amp;nbsp;fs/cifs/asn1.c: OID len = 7 oid = 0x1 0x2 0x348
&lt;br&gt;&amp;gt; 0x1bb92
&lt;br&gt;&amp;gt; [8046556.989230] &amp;nbsp;fs/cifs/asn1.c: OID len = 7 oid = 0x1 0x2 0x348 0xbb92
&lt;br&gt;&amp;gt; [8046556.991772] &amp;nbsp;fs/cifs/asn1.c: OID len = 10 oid = 0x1 0x3 0x6 0x1
&lt;br&gt;&amp;gt; [8046556.998296] &amp;nbsp;fs/cifs/asn1.c: Need to call asn1_octets_decode()
&lt;br&gt;&amp;gt; function for cifs/server@MYREALM
&lt;br&gt;&amp;gt; [8046557.008389] &amp;nbsp;fs/cifs/cifssmb.c: Must sign - secFlags 0x1009
&lt;br&gt;&amp;gt; [8046557.015170] &amp;nbsp;CIFS VFS: signing required but server lacks support
&lt;/div&gt;&lt;br&gt;&lt;br&gt;I think this message explains the problem ^^^^
&lt;br&gt;&lt;br&gt;You've request krb5i, but your server doesn't support signing. You
&lt;br&gt;might want to try sec=krb5 and see if that works.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; [8046557.022305] &amp;nbsp;fs/cifs/cifssmb.c: negprot rc -95
&lt;br&gt;&amp;gt; [8046557.136096] &amp;nbsp;fs/cifs/connect.c: No session or bad tcon
&lt;br&gt;&amp;gt; [8046557.213439] &amp;nbsp;fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid
&lt;br&gt;&amp;gt; = 15) rc = -95
&lt;br&gt;&amp;gt; [8046557.221012] &amp;nbsp;CIFS VFS: cifs_mount failed w/return code = -95
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ==============
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Do I need a more recent kernel? If so, which one would you recommend?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks in advance for any hints &amp; kind regards,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Holger
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027245&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26027245&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-current-state-of-sec%3Dkrb5*-integration-in-cifs.ko-tp25998453p26027245.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26026880</id>
	<title>Re: Question on current state of sec=krb5* integration in cifs.ko</title>
	<published>2009-10-23T06:54:29Z</published>
	<updated>2009-10-23T06:54:29Z</updated>
	<author>
		<name>Holger Rauch-3</name>
	</author>
	<content type="html">Hi Jeff,
&lt;br&gt;&lt;br&gt;first of all, thanks for your quick reply.
&lt;br&gt;&lt;br&gt;On Fri, 23 Oct 2009, Jeff Layton wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Fri, 23 Oct 2009 13:12:14 +0200
&lt;br&gt;&amp;gt; Holger Rauch &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026880&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;holger.rauch@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; [...] 
&lt;br&gt;&amp;gt; &amp;gt; I just tried that. Mount options in /etc/fstab are
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; noauto,sec=krb5i,iocharset=iso8859-15
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; When I issue the mount cmd, it asks me for a password.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; That probably means that you have a fairly old mount.cifs program. The
&lt;br&gt;&amp;gt; more recent ones don't prompt for a password when sec=krb5* is
&lt;br&gt;&amp;gt; specified. Try adding the &amp;quot;guest&amp;quot; option which will disable password
&lt;br&gt;&amp;gt; prompting.
&lt;/div&gt;&lt;/div&gt;Ok, I tried that (debugging output included as well; interestingly
&lt;br&gt;enough, &amp;quot;mount.cifs -V&amp;quot; only outputs the help message, even if
&lt;br&gt;mount.cifs is called with an absolute path). This happenend on a
&lt;br&gt;Debian Lenny system having the shipped kernel version (uname -r):
&lt;br&gt;&lt;br&gt;2.6.26-2-686-bigmem
&lt;br&gt;&lt;br&gt;Since &amp;quot;mount.cifs -V&amp;quot; didn't come up with version info, I used
&lt;br&gt;&amp;quot;apt-cache show smbfs&amp;quot; (&amp;quot;smbfs&amp;quot; is the Debian package mount.cifs is
&lt;br&gt;contained in). It has the same version as the other Samba packages
&lt;br&gt;shipped with Debian: 3.2.5
&lt;br&gt;&lt;br&gt;==============
&lt;br&gt;&lt;br&gt;pia:~# mount -t cifs //server/myuser
&lt;br&gt;/cifs/user --verbose -o
&lt;br&gt;sec=krb5i,user=myuser,guest,iocharset=iso8859-15
&lt;br&gt;parsing options: rw,sec=krb5i,user=myuser,guest,iocharset=iso8859-15
&lt;br&gt;&lt;br&gt;mount.cifs kernel mount options
&lt;br&gt;unc=//server\myuser,ip=ww.xx.yy.zz,ver=1,rw,sec=krb5i,user=myuser,guest,iocharset=iso8859-15
&lt;br&gt;&lt;br&gt;mount error 95 = Operation not supported
&lt;br&gt;Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
&lt;br&gt;pia:~# dmesg
&lt;br&gt;[8046556.840192] &amp;nbsp;fs/cifs/cifsfs.c: Devname:
&lt;br&gt;//prag-old.er.heitec.net/hrauch flags: 64 
&lt;br&gt;[8046556.847954] &amp;nbsp;fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid:
&lt;br&gt;15 with uid: 0
&lt;br&gt;[8046556.895920] &amp;nbsp;fs/cifs/connect.c: iocharset set to iso8859-15
&lt;br&gt;[8046556.903932] &amp;nbsp;fs/cifs/connect.c: Username: myuser
&lt;br&gt;[8046556.911928] &amp;nbsp;fs/cifs/connect.c: UNC:
&lt;br&gt;\\server\myuser ip: ww.xx.yy.zz
&lt;br&gt;[8046556.916743] &amp;nbsp;fs/cifs/connect.c: Socket created
&lt;br&gt;[8046556.924050] &amp;nbsp;fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380
&lt;br&gt;rcvtimeo 0x7fffffff
&lt;br&gt;[8046556.935312] &amp;nbsp;fs/cifs/connect.c: Existing smb sess not found
&lt;br&gt;[8046556.935312] &amp;nbsp;fs/cifs/connect.c: Demultiplex PID: 6171
&lt;br&gt;[8046556.946262] &amp;nbsp;fs/cifs/cifssmb.c: secFlags 0x1009
&lt;br&gt;[8046556.950328] &amp;nbsp;fs/cifs/cifssmb.c: Kerberos only mechanism, enable
&lt;br&gt;extended security
&lt;br&gt;[8046556.957962] &amp;nbsp;fs/cifs/transport.c: For smb_command 114
&lt;br&gt;[8046556.962692] &amp;nbsp;fs/cifs/transport.c: Sending smb of length 78
&lt;br&gt;[8046556.968883] &amp;nbsp;fs/cifs/connect.c: rfc1002 length 0xbe
&lt;br&gt;[8046556.974665] &amp;nbsp;fs/cifs/cifssmb.c: Dialect: 2
&lt;br&gt;[8046556.978940] &amp;nbsp;fs/cifs/asn1.c: OID len = 7 oid = 0x1 0x2 0x348
&lt;br&gt;0x1bb92
&lt;br&gt;[8046556.989230] &amp;nbsp;fs/cifs/asn1.c: OID len = 7 oid = 0x1 0x2 0x348 0xbb92
&lt;br&gt;[8046556.991772] &amp;nbsp;fs/cifs/asn1.c: OID len = 10 oid = 0x1 0x3 0x6 0x1
&lt;br&gt;[8046556.998296] &amp;nbsp;fs/cifs/asn1.c: Need to call asn1_octets_decode()
&lt;br&gt;function for cifs/server@MYREALM
&lt;br&gt;[8046557.008389] &amp;nbsp;fs/cifs/cifssmb.c: Must sign - secFlags 0x1009
&lt;br&gt;[8046557.015170] &amp;nbsp;CIFS VFS: signing required but server lacks support
&lt;br&gt;[8046557.022305] &amp;nbsp;fs/cifs/cifssmb.c: negprot rc -95
&lt;br&gt;[8046557.136096] &amp;nbsp;fs/cifs/connect.c: No session or bad tcon
&lt;br&gt;[8046557.213439] &amp;nbsp;fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid
&lt;br&gt;= 15) rc = -95
&lt;br&gt;[8046557.221012] &amp;nbsp;CIFS VFS: cifs_mount failed w/return code = -95
&lt;br&gt;&lt;br&gt;==============
&lt;br&gt;&lt;br&gt;Do I need a more recent kernel? If so, which one would you recommend?
&lt;br&gt;&lt;br&gt;Thanks in advance for any hints &amp; kind regards,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Holger
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26026880&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (204 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26026880/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-current-state-of-sec%3Dkrb5*-integration-in-cifs.ko-tp25998453p26026880.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26025253</id>
	<title>Re: Manual page for mount.cifs credentials option</title>
	<published>2009-10-23T05:16:22Z</published>
	<updated>2009-10-23T05:16:22Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">On Thu, 22 Oct 2009 12:49:05 -0400
&lt;br&gt;Scott Lovenberg &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26025253&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scott.lovenberg@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Not sure if this is the correct place to file this report, if not, please point me in the correct direction.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The credentials option for mount.smbfs used to be the following format:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; user=name
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; password=pass
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've found that the format supported for mount.cifs is:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; username=name
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; password=pass
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This seems at odds with the manual page for mount.cifs under the user=arg option:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [...]
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Note
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The cifs vfs accepts the parameter user=, or for users familiar with smbfs it
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accepts the longer form of the parameter username=. Similarly the longer smbfs
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;style parameter names may be accepted as synonyms for the shorter cifs
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;parameters pass=,dom= and cred=.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [...]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I had, for whatever reason, assumed that the user option rules would apply to the credentials file or that it would be backwards compatible with the older mount.smbfs credentials file format. &amp;nbsp;Are either of these assumptions correct? &amp;nbsp;If not, would it make sense to add or reword the manual page a bit (assuming I'm not the only one that misinterpreted it) for clarity? &amp;nbsp;I wouldn't mind drafting up a proposal if other felt it was worth the effort.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Happy Version Numbers:
&lt;br&gt;&amp;gt; from The Fine Manual page for mount.cifs(8)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; VERSION
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;This man page is correct for version 1.52 of the cifs vfs filesystem (roughly Linux kernel 2.6.24).
&lt;br&gt;&amp;gt; [1005 12:24 sun ~]#smbd -V
&lt;br&gt;&amp;gt; Version 3.0.33-3.7.el5
&lt;br&gt;&amp;gt; [1007 12:26 sun ~]#uname -a
&lt;br&gt;&amp;gt; Linux sanitized.network.tld 2.6.18-92.1.22.el5.centos.plusxen #1 SMP Wed Dec 17 11:22:13 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
&lt;/div&gt;&lt;br&gt;Consistency here would probably be a good thing. A proposal for
&lt;br&gt;cleaning it up would be welcome. Patches would be even better.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26025253&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26025253&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Manual-page-for-mount.cifs-credentials-option-tp26013415p26025253.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26024501</id>
	<title>Re: Question on current state of sec=krb5* integration in cifs.ko</title>
	<published>2009-10-23T04:17:31Z</published>
	<updated>2009-10-23T04:17:31Z</updated>
	<author>
		<name>Jeff Layton-3</name>
	</author>
	<content type="html">On Fri, 23 Oct 2009 13:12:14 +0200
&lt;br&gt;Holger Rauch &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26024501&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;holger.rauch@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Robert,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Robert Euhus schrieb am Friday, den 23. October 2009:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; [...]
&lt;br&gt;&amp;gt; &amp;gt; It works here on Lenny, although you might have to install the keyutils
&lt;br&gt;&amp;gt; &amp;gt; Package and add the following lines to /etc/request-key.conf :
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; create cifs.spnego * * /usr/sbin/cifs.upcall %k %d
&lt;br&gt;&amp;gt; &amp;gt; create dns_resolver * * /usr/sbin/cifs.upcall %k
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I just tried that. Mount options in /etc/fstab are
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; noauto,sec=krb5i,iocharset=iso8859-15
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; When I issue the mount cmd, it asks me for a password.
&lt;/div&gt;&lt;/div&gt;That probably means that you have a fairly old mount.cifs program. The
&lt;br&gt;more recent ones don't prompt for a password when sec=krb5* is
&lt;br&gt;specified. Try adding the &amp;quot;guest&amp;quot; option which will disable password
&lt;br&gt;prompting.
&lt;br&gt;&lt;br&gt;&amp;gt; Is there any
&lt;br&gt;&amp;gt; way to get more debugging info from the mount.cifs cmd and the CIFS
&lt;br&gt;&amp;gt; VFS kernel module? (I was checking /var/log/syslog, /var/log/messages,
&lt;br&gt;&amp;gt; /var/log/daemon.log, but found nothing that could be helpful).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;Yes, see:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://wiki.samba.org/index.php/LinuxCIFS_troubleshooting&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.samba.org/index.php/LinuxCIFS_troubleshooting&lt;/a&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Like I mentioned, kerberized smbclient sessions work as expected (i.e.
&lt;br&gt;&amp;gt; I'm *not* asked for a password; just as it's supposed to be). I do get
&lt;br&gt;&amp;gt; a valid Kerberos ticket for cifs, as shown in this output from &amp;quot;klist
&lt;br&gt;&amp;gt; -5f&amp;quot;:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ==========
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Ticket cache: FILE:/tmp/krb5cc_0
&lt;br&gt;&amp;gt; Default principal: user@MYREALM
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Valid starting &amp;nbsp; &amp;nbsp; Expires &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Service principal
&lt;br&gt;&amp;gt; 10/23/09 12:31:13 &amp;nbsp;10/24/09 04:31:13 &amp;nbsp;krbtgt/MYREALM@MYREALM
&lt;br&gt;&amp;gt; 	 renew until 10/24/09 12:30:51, Flags: FRIAT
&lt;br&gt;&amp;gt; 	 10/23/09 12:40:42 &amp;nbsp;10/24/09 04:31:13
&lt;br&gt;&amp;gt; cifs/sambaserver.mydomain@MYREALM
&lt;br&gt;&amp;gt; 					 renew until 10/24/09
&lt;br&gt;&amp;gt; 12:30:51, Flags: FRAT
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ==========
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I should perhaps also mention that my LDAP accounts were created using
&lt;br&gt;&amp;gt; Debian Lenny's ldapscripts package before I installed Samba and used
&lt;br&gt;&amp;gt; ldapsam:editposix. Samba's LDAP stuff was initialized using &amp;quot;net sam
&lt;br&gt;&amp;gt; provision&amp;quot;; as described in
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://wiki.samba.org/index.php/Ldapsam_Editposix&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.samba.org/index.php/Ldapsam_Editposix&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; So, the Kerberos user named &amp;quot;user&amp;quot; doesn't have the
&lt;br&gt;&amp;gt; samba* attributes set in the LDAP database yet. But since that didn't
&lt;br&gt;&amp;gt; seem to matter for smbclient sessions, it also shouldn't matter for
&lt;br&gt;&amp;gt; mount.cifs, should it? 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In addition, my Kerberos database is stored in the
&lt;br&gt;&amp;gt; same OpenLDAP database as the user accounts are, just below a
&lt;br&gt;&amp;gt; different ou. (But that shouldn't matter since smbclient works, so the
&lt;br&gt;&amp;gt; LDAP lookup itself shouldn't be the problem).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; You might also want to have a look at a small (and not quite finished
&lt;br&gt;&amp;gt; &amp;gt; yet) German HOWTO I wrote:
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://www.rrzn.uni-hannover.de/anl-linclient-ads.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.rrzn.uni-hannover.de/anl-linclient-ads.html&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks for mentioning this, but I have MIT Kerberos installed on a
&lt;br&gt;&amp;gt; Debian Lenny machine acting as KDC. Nevertheless, still helpful for AD
&lt;br&gt;&amp;gt; integration.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The main difference compared to your setup is that my server is
&lt;br&gt;&amp;gt; actually a Samba server running on a Debian Lenny system and I'm
&lt;br&gt;&amp;gt; trying to mount a cifs fs on a Linux client (i.e. a Linux machine
&lt;br&gt;&amp;gt; pretending to be a Windows client). Do I need the winbindd also on the
&lt;br&gt;&amp;gt; client machine in such a scenario (your HOWTO suggests running in on the
&lt;br&gt;&amp;gt; client, but you are authenticating against a &amp;quot;real&amp;quot; AD on a Windows
&lt;br&gt;&amp;gt; server; I'm authenticating against OpenLDAP+MIT Kerberos+Samba on a Debian
&lt;br&gt;&amp;gt; Lenny system)?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; (In case you need more info, I will of course try provide it).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks in advance for any hints &amp; kind regards,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Holger
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26024501&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26024501&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (205 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26024501/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-current-state-of-sec%3Dkrb5*-integration-in-cifs.ko-tp25998453p26024501.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26024450</id>
	<title>Re: Question on current state of sec=krb5* integration in cifs.ko</title>
	<published>2009-10-23T04:12:14Z</published>
	<updated>2009-10-23T04:12:14Z</updated>
	<author>
		<name>Holger Rauch-3</name>
	</author>
	<content type="html">Hi Robert,
&lt;br&gt;&lt;br&gt;Robert Euhus schrieb am Friday, den 23. October 2009:
&lt;br&gt;&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&amp;gt; It works here on Lenny, although you might have to install the keyutils
&lt;br&gt;&amp;gt; Package and add the following lines to /etc/request-key.conf :
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; create cifs.spnego * * /usr/sbin/cifs.upcall %k %d
&lt;br&gt;&amp;gt; create dns_resolver * * /usr/sbin/cifs.upcall %k
&lt;br&gt;&lt;br&gt;I just tried that. Mount options in /etc/fstab are
&lt;br&gt;&lt;br&gt;noauto,sec=krb5i,iocharset=iso8859-15
&lt;br&gt;&lt;br&gt;When I issue the mount cmd, it asks me for a password. Is there any
&lt;br&gt;way to get more debugging info from the mount.cifs cmd and the CIFS
&lt;br&gt;VFS kernel module? (I was checking /var/log/syslog, /var/log/messages,
&lt;br&gt;/var/log/daemon.log, but found nothing that could be helpful).
&lt;br&gt;&lt;br&gt;Like I mentioned, kerberized smbclient sessions work as expected (i.e.
&lt;br&gt;I'm *not* asked for a password; just as it's supposed to be). I do get
&lt;br&gt;a valid Kerberos ticket for cifs, as shown in this output from &amp;quot;klist
&lt;br&gt;-5f&amp;quot;:
&lt;br&gt;&lt;br&gt;==========
&lt;br&gt;&lt;br&gt;Ticket cache: FILE:/tmp/krb5cc_0
&lt;br&gt;Default principal: user@MYREALM
&lt;br&gt;&lt;br&gt;Valid starting &amp;nbsp; &amp;nbsp; Expires &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Service principal
&lt;br&gt;10/23/09 12:31:13 &amp;nbsp;10/24/09 04:31:13 &amp;nbsp;krbtgt/MYREALM@MYREALM
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;renew until 10/24/09 12:30:51, Flags: FRIAT
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10/23/09 12:40:42 &amp;nbsp;10/24/09 04:31:13
&lt;br&gt;cifs/sambaserver.mydomain@MYREALM
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;renew until 10/24/09
&lt;br&gt;12:30:51, Flags: FRAT
&lt;br&gt;&lt;br&gt;==========
&lt;br&gt;&lt;br&gt;I should perhaps also mention that my LDAP accounts were created using
&lt;br&gt;Debian Lenny's ldapscripts package before I installed Samba and used
&lt;br&gt;ldapsam:editposix. Samba's LDAP stuff was initialized using &amp;quot;net sam
&lt;br&gt;provision&amp;quot;; as described in
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://wiki.samba.org/index.php/Ldapsam_Editposix&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.samba.org/index.php/Ldapsam_Editposix&lt;/a&gt;&lt;br&gt;&lt;br&gt;So, the Kerberos user named &amp;quot;user&amp;quot; doesn't have the
&lt;br&gt;samba* attributes set in the LDAP database yet. But since that didn't
&lt;br&gt;seem to matter for smbclient sessions, it also shouldn't matter for
&lt;br&gt;mount.cifs, should it? 
&lt;br&gt;&lt;br&gt;In addition, my Kerberos database is stored in the
&lt;br&gt;same OpenLDAP database as the user accounts are, just below a
&lt;br&gt;different ou. (But that shouldn't matter since smbclient works, so the
&lt;br&gt;LDAP lookup itself shouldn't be the problem).
&lt;br&gt;&lt;br&gt;&amp;gt; You might also want to have a look at a small (and not quite finished
&lt;br&gt;&amp;gt; yet) German HOWTO I wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.rrzn.uni-hannover.de/anl-linclient-ads.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.rrzn.uni-hannover.de/anl-linclient-ads.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Thanks for mentioning this, but I have MIT Kerberos installed on a
&lt;br&gt;Debian Lenny machine acting as KDC. Nevertheless, still helpful for AD
&lt;br&gt;integration.
&lt;br&gt;&lt;br&gt;The main difference compared to your setup is that my server is
&lt;br&gt;actually a Samba server running on a Debian Lenny system and I'm
&lt;br&gt;trying to mount a cifs fs on a Linux client (i.e. a Linux machine
&lt;br&gt;pretending to be a Windows client). Do I need the winbindd also on the
&lt;br&gt;client machine in such a scenario (your HOWTO suggests running in on the
&lt;br&gt;client, but you are authenticating against a &amp;quot;real&amp;quot; AD on a Windows
&lt;br&gt;server; I'm authenticating against OpenLDAP+MIT Kerberos+Samba on a Debian
&lt;br&gt;Lenny system)?
&lt;br&gt;&lt;br&gt;(In case you need more info, I will of course try provide it).
&lt;br&gt;&lt;br&gt;Thanks in advance for any hints &amp; kind regards,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Holger
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26024450&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (204 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26024450/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-current-state-of-sec%3Dkrb5*-integration-in-cifs.ko-tp25998453p26024450.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26022386</id>
	<title>Re: Question on current state of sec=krb5*	integration in cifs.ko</title>
	<published>2009-10-23T01:00:46Z</published>
	<updated>2009-10-23T01:00:46Z</updated>
	<author>
		<name>Robert Euhus</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Holger Rauch wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi to everybody,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I came accross this link
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://fixunix.com/samba/140566-samba-mount-cifs-sec-krb5.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fixunix.com/samba/140566-samba-mount-cifs-sec-krb5.html&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; while trying to use sec=krb5 or sec=krb5i in conjunction with
&lt;br&gt;&amp;gt; mount.cifs. On a Debian Lenny system (includes version 1.53 of
&lt;br&gt;&amp;gt; cifs.ko), this doesn't seem to work. This thread is quite old
&lt;br&gt;&amp;gt; (10/2007) and I'm wondering whether what's been said in there is still
&lt;br&gt;&amp;gt; valid.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;quot;smbclient -L ... -k&amp;quot; or &amp;quot;smbclient ... -k&amp;quot; calls work without any
&lt;br&gt;&amp;gt; problems (provided that I run &amp;quot;kinit&amp;quot; in advance). In the interactive
&lt;br&gt;&amp;gt; smb shell, I can use e.g. mkdir and rmdir without any problem. So, my
&lt;br&gt;&amp;gt; Kerberos setup is working.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Installed kernel image on Debian Lenny is (&amp;quot;uname -r&amp;quot; output):
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 2.6.26-2-686-bigmem
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What's the current status regarding sec=krb5 and sec=krb5i mount
&lt;br&gt;&amp;gt; options?
&lt;br&gt;&amp;gt; 
&lt;/div&gt;It works here on Lenny, although you might have to install the keyutils
&lt;br&gt;Package and add the following lines to /etc/request-key.conf :
&lt;br&gt;&lt;br&gt;create cifs.spnego * * /usr/sbin/cifs.upcall %k %d
&lt;br&gt;create dns_resolver * * /usr/sbin/cifs.upcall %k
&lt;br&gt;&lt;br&gt;You might also want to have a look at a small (and not quite finished
&lt;br&gt;yet) German HOWTO I wrote:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.rrzn.uni-hannover.de/anl-linclient-ads.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.rrzn.uni-hannover.de/anl-linclient-ads.html&lt;/a&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Thanks in advance for any info!
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Kind regards,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;Holger
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; =========================================
&lt;br&gt;&amp;gt; Holger Rauch
&lt;br&gt;&amp;gt; Entwicklung Anwendungs-Software
&lt;br&gt;&amp;gt; Systemadministration UNIX
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Tel.: +49 / 9131 / 877 - 141
&lt;br&gt;&amp;gt; Fax: +49 / 9131 / 877 - 266
&lt;br&gt;&amp;gt; Email: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26022386&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Holger.Rauch@...&lt;/a&gt;
&lt;br&gt;&amp;gt; =========================================
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; linux-cifs-client mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26022386&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;/div&gt;&lt;br&gt;Yours,
&lt;br&gt;Robert
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26022386&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-current-state-of-sec%3Dkrb5*-integration-in-cifs.ko-tp25998453p26022386.html" />
</entry>

</feed>
