Home > Store > Networking

larger cover

Add To My Wish List

Implementing CIFS: The Common Internet File System

Register your product to gain access to bonus material or receive a coupon.

  • Description
  • Downloads
  • Reviews
  • Sample Content

Product Author Bios

CHRISTOPHER R. HERTEL is a member of the Samba Team and a founding member of the jCIFS Team. He has worked with SMB/CIFS networks since the 1980s, when he designed and installed a large-scale network based on DEC Pathworks, using Microsoft and IBM® networking protocols. Hertel is Network Design Engineer at the University of Minnesota.

Series Editor BRUCE PERENS is an Open Source evangelist and developer whose software is a major component of most commercial Linux® offerings. He founded or co-founded Linux Standard Base, Open Source Initiative, and Software in the Public Interest. As Debian GNU/Linux Project Leader, he was instrumental in getting Linux on two U.S. Space Shuttle flights, bringing respect to Linux when few people were taking it seriously. He now consults with companies on Open Source policies and processes.

"The book that Microsoft should have written, but didn't."
—Jeremy Allison, Samba Team

"Your detailed explanations are clear and backed-up with source code—and the numerous bits of humor make a dry subject very enjoyable to read."
—J.D. Lindemann, network engineer, Adaptec, Inc.

The first developer's guide to Microsoft®'s Internet/Intranet file sharing standard

For years, developers and administrators have struggled to understand CIFS, Microsoft's poorly documented standard for Internet file sharing. Finally, there is an authoritative, cross-platform guide to CIFS capabilities and behavior. Implementing CIFS not only delivers the priceless knowledge of a Samba Team member dedicated to investigating the inner workings of CIFS, it also identifies and describes crucial specifications and supporting documents.

  • Provides essential information for designing and debugging large Windows® and/or Samba networks
  • Offers clear, in-depth introductions to Server Message Block (SMB), NetBIOS over TCP/IP (NBT), browser services, and authentication
  • Drills down into the internals of CIFS, exposing its behavior on the wire and at the desktop—and its strange quirks
  • Presents illustrative code examples throughout
  • Reflects years of work reviewing obscure documentation, packet traces, and sourcecode
  • Includes the SNIA CIFS Technical Reference

Implementing CIFS will be indispensable to every developer who wants to provide CIFS compatibility—and every administrator or security specialist who needs an in-depth understanding of how it really works.

Customer Reviews

22 of 23 people found the following review helpful
5.0 out of 5 stars Excellent technical reference, September 2, 2003
By 
Andrew Tridgell (Canberra, Australia) - See all my reviews
This review is from: Implementing CIFS: The Common Internet File System (Paperback)
I really like this book. The internals of the CIFS protocol is not a subject for the faint hearted, but Chris has really tackled it well. This is just the right book for people like me who want to understand what is going on on their network at the bits and bytes level.

In the Samba Team we have been working on implementing the protocols that Chris describes in this book for the last 12 years or so, but we've always been doing this from sniffer traces and incomplete specifications. It was quite an interesting experience to see all this information distilled into such a readable format.

This isn't the sort of book that one buys grandma for Christmas, but if you run a Windows network and have been curious about what is happening inside all those network packets, how your computers find each other and what that weird error message really means then do yourself a favor and have a read.

Andrew Tridgell
Samba Team

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


10 of 11 people found the following review helpful
5.0 out of 5 stars In-depth discussion of CIFS implementation., August 28, 2003
This review is from: Implementing CIFS: The Common Internet File System (Paperback)
If want to know CIFS/SAMBA/NetBIOS internals, this is the book to read. It goes into detail of CIFS implementation. You will find discussion on structures, functions, and architecture of CIFS. This is a very good book for programmers who are working in this area. Although the book is useful for general users of CIFS but the real audience are the programmers and people who want to go into in-depth knowledge of CIFS implementation. You should know C programming to really benefit from this book.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


1 of 1 people found the following review helpful
2.0 out of 5 stars Not a good book, August 14, 2012
This review is from: Implementing CIFS: The Common Internet File System (Paperback)
Yes it is true that there is a lot of mess in this protocol suite but it would be more helpful if there was more infomration on CIFs itself and less cynical remarks and private opinions. For example the description of the SMV commands and parameetrs is very sparse.
It would be faster to read the CIFS guide from microsoft or the SNIA reference (both can be downloaded freely)to understand the protocol. Maybe later this book may help in some few corner cases which have more details.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


Share your thoughts with other customers:
 See all 4 customer reviews...

Praise For Implementing CIFS: The Common Internet File System

Untitled Document "Implementing CIFS" provides an incredibly detailed explanation of Microsoft's file sharing system. Chris has a fanatical eye for detail and quite a sense of humor, making his book both authoritative and surprisingly readable." -- Martin Streicher, Editor-in-Chief, Linux Magazine

Online Sample Chapter

Protocol Negotiation in CIFS

Table of Contents



Foreword.


Introduction.

I. NBT: NETBIOS OVER TCP/IP.

1. A Short Bio of NetBIOS.

NetBIOS and DOS: The Early Years.

2. Speaking NetBIOS.

Emulating “NetBIOS LANs”. Scope: The Final Frontier. Thus Endeth the Overview.

3. The Basics of NBT Implementation.

You Got the Name, Look Up the Number. Interlude.

4. The Name Service in Detail.

NBT Names: Once More with Feeling. NBT Name Service Packets. Conversations with the Name Service. Enough Already.

5. The Datagram Service in Detail.

Datagram Distribution over Routed IP Internetworks. The NBDD and the Damage Done. Implementing a Workable Datagram Service.

6. The Session Service in Detail.

Session Service Header. Creating an NBT Session. Maintaining an NBT Session. Closing an NBT Session.

7. Where It All Went Wrong.

The 0x1Dirty Little Secret. Twenty-five IPs or Less. Special Handling Required for 0x1B Names. Alternate Name Resolution. The Awful Truth.

II. SMB: THE SERVER MESSAGE BLOCK PROTOCOL.

8. A Little Background on SMB.

Getting Started. NBT or Not NBT.

9. An Introductory Tour of SMB.

The Server Identifier. The Directory Path. The File. The SMB URL. Was That Trip Really Necessary?

10. First Contact: Reaching the Server.

Interpreting the Server Identifier. The Destination Port. Transport Discovery. Connecting to the Server.

11. SMB in Its Natural Habitat.

Our Very First Live SMBs. SMB Message Structure. Case in Point: NEGOTIATE PROTOCOL. The AndX Mutation. The Flow of Conversation. A Little More Code. Take a Break.

12. The SMB Header in Detail.

The SMB_HEADER.STATUS Field Exposed. The FLAGS and FLAGS2 Fields Tell All. EXTRA! EXTRA! Read All About It! TID and UID: Separated at Birth? PID and MID Revealed. SMB Header Final Report.

13. Protocol Negotiation.

A Smattering of SMB Dialects. Greetings: The NEGOTIATE PROTOCOL REQUEST. Gesundheit: The NEGOTIATE PROTOCOL RESPONSE. Are We There Yet?

14. Session Setup.

SESSION SETUP ANDX REQUEST Parameters. SESSION SETUP ANDX REQUEST Data. The SESSION SETUP ANDX RESPONSE SMB.

15. Authentication.

Anonymous and Guest Login. Plaintext Passwords. LM Challenge/Response. NTLM Challenge/Response. NTLM Version 2. Extended Security: That Light at the End of the Tunnel. Kerberos. Random Notes on W2K and NT Domain Authentication. Random Notes on Message Authentication Codes. Non Sequitur Time. Further Study.

16. Building Your SMB Vocabulary.

That TREE CONNECT Thingy. SMB Echo. Readin', Writin', and 'Rithmatic. Transaction SMBs.

17. The Remaining Oddities.

Opportunistic Locks (OpLocks). Distributed File System (DFS). DOS Attributes, Extended File Attributes, Long Filenames, and Suchlike.

18. That Just about Wraps Things Up for SMB.

III. THE BROWSE SERVICE.

19. A Beautiful Day in the Network Neighborhood.

History: From Frontier Town to Bustling Metropolis. Sociology. Politics.

20. Meet the Neighbors.

Browse Service Clientele. The Local Master Browser. Becoming a Backup Browser. Crossing the Street with the DMB. Elections.

21. Infrastructure: The Mailslot and Named Pipe Abstractions.

Meet the Plumbing: Named Pipes. The Mailslot Metaphor.

22. The Talk on the Street.

Making Sense of SMBtrans. Browse Service Mailslot Messages. RAPture.

23. The Better Browser Bureau.

Running an Election. Timing Is Everything.

24. Samba Browse Service Enhancements.

Automatic LANMAN. UnBrowsable. NBNS Wildcard DMB Queries and Enhanced Browsing. Remote Announce. Remote Browse Sync. DMB != PDC.

25. It Can't Happen Here.

Misconfigured Hosts. Misconfigured Networks. Implementation Bugs. Troublemakers. Design Flaws.

26. At Home in the Network Neighborhood.

IV. APPENDICES.

Appendix A: Making a Good Cup of Tea.

Basics of Making Tea. About Tea. Nasty Habits. Decaffeinating Tea.

Appendix B: Known NetBIOS Suffix Values.

NetBIOS Name Suffix Bytes. Special Handling of NetBIOS Names in WINS.

Appendix C: The SMB URL.

The Origins of the SMB URL. Of Round Pegs, Square Holes, and Big Mallets. Form Versus Function. Additional Parts. A Simple SMB URL Parser.

Appendix D: CIFS Technical Reference.

Glossary.

References.

Index.

Downloadable Sample Chapter

Download the Sample Chapter related to this title.

Index

Download the Index file related to this title.

 
Buy

Book  $44.99  $35.99

Usually ships in 24 hours.

This book includes free shipping!

Purchase Reward: One Month Free Subscription
By completing any purchase on InformIT, you become eligible for an unlimited access one-month subscription to Safari Books Online.

Get access to thousands of books and training videos about technology, professional development and digital media from more than 40 leading publishers, including Addison-Wesley, Prentice Hall, Cisco Press, IBM Press, O'Reilly Media, Wrox, Apress, and many more. If you continue your subscription after your 30-day trial, you can receive 30% off a monthly subscription to the Safari Library for up to 12 months. That's a total savings of $199.