[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cifs-protocol
Subject:    [cifs-protocol] SMB CREATE Request
From:       Yoni Kibrik <yoni122 () gmail ! com>
Date:       2015-11-29 15:10:58
Message-ID: CAA1of3k6cV28LMCUr_5=oFfp1+Nbqc5mW1_MYgaqiXTfeOOVig () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello,
In https://msdn.microsoft.com/en-us/library/cc246502.aspx it states that
the file name passed in the CREATE Request message *can* be prefixed
with Distributed
File System (DFS) link
<https://msdn.microsoft.com/en-us/library/cc246484.aspx#gt_0611e93d-f0e7-42ee-a591-d77ebcbb6619>
information
that will be removed during DFS name normalization  if the
SMB2_FLAGS_DFS_OPERATIONS  is set.

What is the use of that prefix? From my testing (using python impacket) the
prefix can be any random string in the format "nameA\nameB\filepath"

And how dose the server knows if the prefix exists? From my testing it
assumes it is *always *exists.

What am I missing?

I also posted the question on stackoverflow
http://stackoverflow.com/questions/33981089/smb-dfs-file-name-prefix
But I think it is likelier I will get an answer here.

Thanks
Yoni.

[Attachment #5 (text/html)]

<div dir="ltr">Hello,<div>In <a \
href="https://msdn.microsoft.com/en-us/library/cc246502.aspx">https://msdn.microsoft.com/en-us/library/cc246502.aspx</a> \
it states that the file name passed in the CREATE Request message <b>can</b>  be  \
<span style="font-size:13px;color:rgb(42,42,42);font-family:&#39;Segoe \
UI&#39;,&#39;Lucida Grande&#39;,Verdana,Arial,Helvetica,sans-serif;line-height:18px">prefixed \
with  </span><a href="https://msdn.microsoft.com/en-us/library/cc246484.aspx#gt_0611e93d-f0e7-42ee-a591-d77ebcbb6619" \
style="font-size:13px;text-decoration:none;color:rgb(3,105,122);font-family:&#39;Segoe \
UI&#39;,&#39;Lucida Grande&#39;,Verdana,Arial,Helvetica,sans-serif;line-height:18px">Distributed \
File System (DFS) link</a><span \
style="font-size:13px;color:rgb(42,42,42);font-family:&#39;Segoe UI&#39;,&#39;Lucida \
Grande&#39;,Verdana,Arial,Helvetica,sans-serif;line-height:18px">  information that \
will be removed during DFS name normalization   if the  </span><span \
style="color:rgb(42,42,42);font-family:&#39;Segoe UI&#39;,&#39;Lucida \
Grande&#39;,Verdana,Arial,Helvetica,sans-serif;font-size:13px;line-height:18px">SMB2_FLAGS_DFS_OPERATIONS</span><span \
style="color:rgb(42,42,42);font-family:&#39;Segoe UI&#39;,&#39;Lucida \
Grande&#39;,Verdana,Arial,Helvetica,sans-serif;font-size:13px;line-height:18px">   is \
set.</span></div><div><span style="color:rgb(42,42,42);font-family:&#39;Segoe \
UI&#39;,&#39;Lucida Grande&#39;,Verdana,Arial,Helvetica,sans-serif;font-size:13px;line-height:18px"><br></span></div><div><font \
color="#2a2a2a" face="Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, \
sans-serif"><span style="line-height:18px">What is the use of that prefix? From my \
testing (using python impacket) the prefix can be any random string in the format \
&quot;nameA\nameB\filepath&quot;<br><br></span></font></div><div><font \
color="#2a2a2a" face="Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, \
sans-serif"><span style="line-height:18px">And how dose the server knows if the \
prefix  exists?  From my testing it assumes it is </span><b \
style="line-height:18px">always  </b><span \
style="line-height:18px">exists.</span></font></div><div><font color="#2a2a2a" \
face="Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif"><span \
style="line-height:18px"><br></span></font></div><div><font color="#2a2a2a" \
face="Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif"><span \
style="line-height:18px">What am I missing?</span></font></div><div><font \
color="#2a2a2a" face="Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, \
sans-serif"><span style="line-height:18px"><br></span></font></div><div><font \
color="#2a2a2a" face="Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, \
sans-serif"><span style="line-height:18px">I also posted the question on \
stackoverflow  <a href="http://stackoverflow.com/questions/33981089/smb-dfs-file-name-prefix">http://stackoverflow.com/questions/33981089/smb-dfs-file-name-prefix</a> \
</span></font></div><div><font color="#2a2a2a" face="Segoe UI, Lucida Grande, \
Verdana, Arial, Helvetica, sans-serif"><span style="line-height:18px">But I think it \
is  likelier  I will get an  answer  here.</span></font></div><div><font \
color="#2a2a2a" face="Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, \
sans-serif"><span style="line-height:18px"><br></span></font></div><div><span \
style="line-height:18px;color:rgb(42,42,42);font-family:&#39;Segoe \
UI&#39;,&#39;Lucida Grande&#39;,Verdana,Arial,Helvetica,sans-serif">Thanks</span><br></div><div><font \
color="#2a2a2a" face="Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, \
sans-serif"><span style="line-height:18px">Yoni.</span></font></div></div>



_______________________________________________
cifs-protocol mailing list
cifs-protocol@lists.samba.org
https://lists.samba.org/mailman/listinfo/cifs-protocol


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic