[OpenAFS-win32-devel] Queries to understand OpenAFS as a Remote File System
Bharat Kulkarni
bharat.pict@gmail.com
Thu, 21 Jun 2007 11:27:25 +0530
------=_Part_97900_20209022.1182405445735
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi,
As the name suggests the function "smb_ReceiveNegotiate" looks like to
choose a dialect for communication between SMB client/server.
>From the snippet as follows
if (strcmp("PC NETWORK PROGRAM 1.0", namep+1) == 0) {
coreProtoIndex = tcounter;
}
else if (smb_useV3 && strcmp("LM1.2X002", namep+1) == 0) {
v3ProtoIndex = tcounter;
}
else if (smb_useV3 && strcmp("NT LM 0.12", namep+1) == 0) {
NTProtoIndex = tcounter;
}
else if (smb_useV3 && strcmp("SMB 2.001", namep+1) == 0) {
VistaProtoIndex = tcounter;
}
Because I have read in CIFS documents that some of the dialects are "PC
NETWORK PROGRAM 1.0", "MICROSOFT NETWORKS 3.0", "DOS LM1.2X002", "DOS
LANMAN2.1", "Windows for Workgroups 3.1a", "NT LM 0.12".
So is SMB 2.001 is a new dialect necessary for VISTA?
Also could you kindly tell me what is the role of 'kVista_WLA_MAC' and
'kWLA_MAC'?
Thanks and Regards,
Bharat.
On 6/6/07, Jeffrey Altman <jaltman@secure-endpoints.com> wrote:
>
> The entire SMB/CIFS server is located in the src/WINNT/afs/smb*.[ch]
> files. Searching the files for keywords such as "receive", "register",
> "listen", etc. should point you in the right direction.
>
> Jeffrey Altman
> Secure Endpoints Inc.
>
>
> Bharat Kulkarni wrote:
> > Hi,
> >
> > Thanks for your reply,
> >
> > I was going through the OpenAFS code, but I am unable to figure out
> > where exactly in the code ( which function of ) OpenAFS is receiving
> > SMB packets from the CIFS client.?
> >
> > Is OpenAFS listening on any port ?? relatively I was unable to locate
> > any listening on ports like 138 or 139.
> >
> > Can you kindly help me with these queries.
> >
> > Thanks and Regards,
> > Bharat.
> >
> > On 6/4/07, *Jeffrey Altman* <jaltman@secure-endpoints.com
> > <mailto: jaltman@secure-endpoints.com>> wrote:
> >
> > OpenAFS is a user mode service that registers its own NetBIOS name.
> > It is not a kernel service and is not a Windows remote file system.
> > The CIFS client talks to OpenAFS exactly the same way it talks to a
> > Windows file share or Samba server.
> >
> > Jeffrey Altman
> > Secure Endpoints Inc.
> >
> > Bharat Kulkarni wrote:
> > > Hi,
> > >
> > > Thanks a lot your responses.
> > >
> > > I have some further queries,
> > >
> > > Can you kindly tell me, how does the Windows CIFS client using
> > SMB, talk
> > > to OpenAFS? Have you registered any DLL or is the entry put in the
>
> > > registry. How does OpenAFS accept the SMB packets from Windows and
> > carry
> > > on further tasks. What role does NetBios play?
> > >
> > > Does MPR.DLL and MUP.sys come into the picture to make OpenAFS
> > work as a
> > > n/w redirector when operations are carried out on the drive
> mapped? As
> > > per Vista WDK Docs, MUP.sys is now used even when a mapped drive
> (Not
> > > local) is accessed.. Have you also made OpenAFS changes to work
> > > according to Vista guidelines?
> > >
> > > I also have a query regarding the way in which command prompt
> > executes a
> > > request as compared to windows explorer. What i mean is, does it
> > follow
> > > the same path when we access OpenAFS drive using explorer and when
> we
> > > access the drive from command prompt? Is it the code path for both
>
> > ways
> > > of accessing the drive? Does MUP.sys play any role in this? Are
> you
> > > registering OpenAFS with MUP.sys to work as per the Vista Docs?
> > >
> > > Can you also kindly guide me as to how I can further understand
> the
> > > working of OpenAFS in terms of the SMB protocol, and communication
> > > between OpenAFS and windows
> > >
> > > Thanks and Regards,
> > > Bharat.
> >
> >
>
>
------=_Part_97900_20209022.1182405445735
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
<span class="gmail_quote"><br></span>Hi,<br><br>As the name suggests the function "smb_ReceiveNegotiate" looks like to choose a dialect for communication between SMB client/server.<br>From the snippet as follows
<br><br>if (strcmp("PC NETWORK PROGRAM
1.0", namep+1) == 0) {<br> coreProtoIndex = tcounter;<br> } <br> else if (smb_useV3 && strcmp("LM1.2X002", namep+1) == 0) {<br> v3ProtoIndex = tcounter;<br> }
<br> else if (smb_useV3 && strcmp("NT LM 0.12", namep+1) == 0) {<br> NTProtoIndex = tcounter;<br> }<br> else if (smb_useV3 && strcmp("SMB 2.001", namep+1) == 0) {
<br> VistaProtoIndex = tcounter;<br> }<br><br>Because I have read in CIFS documents that some of the dialects are "PC NETWORK PROGRAM 1.0", "MICROSOFT NETWORKS 3.0", "DOS LM1.2X002
", "DOS LANMAN2.1", "Windows for Workgroups
3.1a", "NT LM 0.12".<br> <br>So is SMB 2.001 is a new dialect necessary for VISTA? <br><br>Also could you kindly tell me what is the role of 'kVista_WLA_MAC' and 'kWLA_MAC'?<br><br>Thanks and Regards,
<br><span class="sg">
Bharat.</span><div><span class="e" id="q_1134404c1e44a712_2"><br> <br><div><span class="gmail_quote">On 6/6/07, <b class="gmail_sendername">Jeffrey Altman</b> <<a href="mailto:jaltman@secure-endpoints.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
jaltman@secure-endpoints.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The entire SMB/CIFS server is located in the src/WINNT/afs/smb*.[ch]<br>files. Searching the files for keywords such as "receive", "register",<br>"listen", etc. should point you in the right direction.
<br><br>Jeffrey Altman<br>Secure Endpoints Inc.<br><br><br>Bharat Kulkarni wrote:<br>> Hi,<br>><br>> Thanks for your reply,<br>><br>> I was going through the OpenAFS code, but I am unable to figure out<br>
> where exactly in the code ( which function of ) OpenAFS is receiving
<br>> SMB packets from the CIFS client.?<br>><br>> Is OpenAFS listening on any port ?? relatively I was unable to locate<br>> any listening on ports like 138 or 139.<br>><br>> Can you kindly help me with these queries.
<br>><br>> Thanks and Regards,<br>> Bharat.<br>><br>> On 6/4/07, *Jeffrey Altman* <<a href="mailto:jaltman@secure-endpoints.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jaltman@secure-endpoints.com
</a><br>> <mailto:<a href="mailto:jaltman@secure-endpoints.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
jaltman@secure-endpoints.com</a>>> wrote:<br>><br>> OpenAFS is a user mode service that registers its own NetBIOS name.<br>> It is not a kernel service and is not a Windows remote file system.<br>> The CIFS client talks to OpenAFS exactly the same way it talks to a
<br>> Windows file share or Samba server.<br>><br>> Jeffrey Altman<br>> Secure Endpoints Inc.<br>><br>> Bharat Kulkarni wrote:<br>> > Hi,<br>> ><br>> > Thanks a lot your responses.
<br>> ><br>> > I have some further queries,<br>> ><br>> > Can you kindly tell me, how does the Windows CIFS client using<br>> SMB, talk<br>> > to OpenAFS? Have you registered any DLL or is the entry put in the
<br>> > registry. How does OpenAFS accept the SMB packets from Windows and<br>> carry<br>> > on further tasks. What role does NetBios play?<br>> ><br>> > Does MPR.DLL and MUP.sys
come into the picture to make OpenAFS<br>> work as a<br>> > n/w redirector when operations are carried out on the drive mapped? As<br>> > per Vista WDK Docs, MUP.sys is now used even when a mapped drive (Not
<br>> > local) is accessed.. Have you also made OpenAFS changes to work<br>> > according to Vista guidelines?<br>> ><br>> > I also have a query regarding the way in which command prompt
<br>> executes a<br>> > request as compared to windows explorer. What i mean is, does it<br>> follow<br>> > the same path when we access OpenAFS drive using explorer and when we<br>> > access the drive from command prompt? Is it the code path for both
<br>> ways<br>> > of accessing the drive? Does MUP.sys play any role in this? Are you<br>> > registering OpenAFS with MUP.sys to work as per the Vista Docs?<br>> ><br>> > Can you also kindly guide me as to how I can further understand the
<br>> > working of OpenAFS in terms of the SMB protocol, and communication<br>> > between OpenAFS and windows<br>> ><br>> > Thanks and Regards,<br>> > Bharat.<br>><br>
>
<br><br></blockquote></div><br>
</span></div>
------=_Part_97900_20209022.1182405445735--