Skip to contentSkip to conversation

do not assume kerberos as default auth mech

PATCH In review [email protected] 4 participants 4 messages Sep 7, 2010 – Sep 8, 2010 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 do not assume kerberos as default auth mech

From: Shirish Pargaonkar <[email protected]>

---
 fs/cifs/cifssmb.c |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)
fs/cifs/cifssmb.c +9 -6
index c65c341..1f1b097 100644
@@ -604,12 +604,15 @@ CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses)
 			else
 				rc = -EINVAL;
 
-			if (server->sec_kerberos || server->sec_mskerberos)
-				server->secType = Kerberos;
-			else if (server->sec_ntlmssp)
-				server->secType = RawNTLMSSP;
-			else
-				rc = -EOPNOTSUPP;
+			if (server->secType == Kerberos) {
+				if (!server->sec_kerberos &&
+						!server->sec_mskerberos)
+					rc = -EOPNOTSUPP;
+			} else if (server->secType == RawNTLMSSP) {
+				if (!server->sec_ntlmssp)
+					rc = -EOPNOTSUPP;
+			} else
+					rc = -EOPNOTSUPP;
 		}
 	} else
 		server->capabilities &= ~CAP_EXTENDED_SECURITY;
Signature · 1 line
1.6.0.2

A message that is not in the archive (sent off-list or not yet received): 1283830375-25015-1-git-send-email-shirishpargaonkar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

Reviewed-by
#2 lore raw
Quoted 23 lines · On Mon, 6 Sep 2010 22:32:55 -0500 shirishpargaonkar-Re5JQEeQqe8AvxtiuMwx3w@pub…

From: Shirish Pargaonkar <[email protected]>

---
 fs/cifs/cifssmb.c |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)
fs/cifs/cifssmb.c +2 -6
index c65c341..1f1b097 100644
@@ -604,12 +604,15 @@ CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses)
 			else
 				rc = -EINVAL;
 
-			if (server->sec_kerberos || server->sec_mskerberos)
-				server->secType = Kerberos;
-			else if (server->sec_ntlmssp)
-				server->secType = RawNTLMSSP;
-			else
-				rc = -EOPNOTSUPP;
+			if (server->secType == Kerberos) {
+				if (!server->sec_kerberos &&

fs/cifs/cifssmb.c CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses) · line 618

Quoted 10 lines
fs/cifs/cifssmb.c +7 -0
+						!server->sec_mskerberos)
+					rc = -EOPNOTSUPP;
+			} else if (server->secType == RawNTLMSSP) {
+				if (!server->sec_ntlmssp)
+					rc = -EOPNOTSUPP;
+			} else
+					rc = -EOPNOTSUPP;
 		}
 	} else
 		server->capabilities &= ~CAP_EXTENDED_SECURITY;
#3 lore raw
In reply to a message not in the archive

This looks independent of the others - does this have dependencies on the rest of the series?

Quoted 37 lines · On Mon, Sep 6, 2010 at 10:32 PM, <shirishpargaonkar-Re5JQEeQqe8AvxtiuMwx3w@pub…

From: Shirish Pargaonkar <[email protected]>

---
 fs/cifs/cifssmb.c |   15 +++++++++------

 1 files changed, 9 insertions(+), 6 deletions(-)
fs/cifs/cifssmb.c +0 -0
index c65c341..1f1b097 100644
@@ -604,12 +604,15 @@ CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses)

                       else
                               rc = -EINVAL;

-                       if (server->sec_kerberos || server->sec_mskerberos)
-                               server->secType = Kerberos;
-                       else if (server->sec_ntlmssp)
-                               server->secType = RawNTLMSSP;
-                       else
-                               rc = -EOPNOTSUPP;
+                       if (server->secType == Kerberos) {
+                               if (!server->sec_kerberos &&
+                                               !server->sec_mskerberos)
+                                       rc = -EOPNOTSUPP;
+                       } else if (server->secType == RawNTLMSSP) {
+                               if (!server->sec_ntlmssp)
+                                       rc = -EOPNOTSUPP;
+                       } else
+                                       rc = -EOPNOTSUPP;
               }
       } else
               server->capabilities &= ~CAP_EXTENDED_SECURITY; --
1.6.0.2

Signature · 3 lines
Thanks,

Steve

A message that is not in the archive (sent off-list or not yet received): AANLkTi=x_m5nz2if4Wbd_gb+6-XaLgS1qBB26ZypE5VW-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#5 lore raw
Quoted 33 lines · On Tue, 7 Sep 2010 19:13:31 -0500 Steve French…

This looks independent of the others - does this have dependencies on the rest of the series?

Quoted 29 lines · On Mon, Sep 6, 2010 at 10:32 PM, <shirishpargaonkar-Re5JQEeQqe8AvxtiuMwx3w@pub…

From: Shirish Pargaonkar <[email protected]>

---
 fs/cifs/cifssmb.c |   15 +++++++++------

 1 files changed, 9 insertions(+), 6 deletions(-)
fs/cifs/cifssmb.c +0 -0
index c65c341..1f1b097 100644
@@ -604,12 +604,15 @@ CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses)

                       else
                               rc = -EINVAL;

-                       if (server->sec_kerberos || server->sec_mskerberos)
-                               server->secType = Kerberos;
-                       else if (server->sec_ntlmssp)
-                               server->secType = RawNTLMSSP;
-                       else
-                               rc = -EOPNOTSUPP;
+                       if (server->secType == Kerberos) {
+                               if (!server->sec_kerberos &&
+                                               !server->sec_mskerberos)
+                                       rc = -EOPNOTSUPP;
+                       } else if (server->secType == RawNTLMSSP) {
+                               if (!server->sec_ntlmssp)
+                                       rc = -EOPNOTSUPP;
+                       } else

Quoted 11 lines
Quoted 8 lines

+                                       rc = -EOPNOTSUPP; }
       } else
               server->capabilities &= ~CAP_EXTENDED_SECURITY; --
1.6.0.2

Agreed. The patch to remove CalcNTLMv2_partial_mac_key is also independent of the others too (at least, once it's fixed to remove the declaration from the header too).

Signature · 1 line
Jeff Layton <[email protected]>