source: trunk/samba-3.0.25pre1/docs/htmldocs/Samba3-Developers-Guide/index.html @ 1

Last change on this file since 1 was 1, checked in by Paul Smedley, 14 years ago

Initial code import

File size: 16.4 KB
Line 
1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>SAMBA Developers Guide</title><link rel="stylesheet" href="samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.68.1"><meta name="description" content="
2Last Update : Fri Oct 10 00:59:58 CEST 2003
3 
4This book is a collection of documents that might be useful for
5people developing samba or those interested in doing so.
6It's nothing more than a collection of documents written by samba developers about
7the internals of various parts of samba and the SMB protocol. It's still (and will always be) incomplete.
8The most recent version of this document
9can be found at http://devel.samba.org/.
10 
11This documentation is distributed under the GNU General Public License (GPL)
12version 2.  A copy of the license is included with the Samba source
13distribution.  A copy can be found on-line at http://www.fsf.org/licenses/gpl.txt
14 This document is incomplete and unmaintained. It is merely a
15        collection of development-related notes."><link rel="start" href="index.html" title="SAMBA Developers Guide"><link rel="next" href="pt01.html" title="Part I. The protocol"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">SAMBA Developers Guide</th></tr><tr><td width="20%" align="left"> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="pt01.html">Next</a></td></tr></table><hr></div><div class="book" lang="en"><div class="titlepage"><div><div><h1 class="title"><a name="Samba-Developers-Guide"></a>SAMBA Developers Guide</h1></div><div><div class="authorgroup"><h4 class="editedby">Edited by</h4><h3 class="editor"><span class="firstname">Jelmer</span> <span class="othername">R.</span> <span class="surname">Vernooij</span></h3></div></div><div><div class="abstract"><p class="title"><b>Abstract</b></p><p>
16<span class="emphasis"><em>Last Update</em></span> : Fri Oct 10 00:59:58 CEST 2003
17</p><p>
18This book is a collection of documents that might be useful for
19people developing samba or those interested in doing so.
20It's nothing more than a collection of documents written by samba developers about
21the internals of various parts of samba and the SMB protocol. It's still (and will always be) incomplete.
22The most recent version of this document
23can be found at <a href="http://devel.samba.org/" target="_top">http://devel.samba.org/</a>.
24</p><p>
25This documentation is distributed under the GNU General Public License (GPL)
26version 2.  A copy of the license is included with the Samba source
27distribution.  A copy can be found on-line at <a href="http://www.fsf.org/licenses/gpl.txt" target="_top">http://www.fsf.org/licenses/gpl.txt</a>
28</p><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p>This document is incomplete and unmaintained. It is merely a
29        collection of development-related notes.</p></div></div></div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="part"><a href="pt01.html">I. The protocol</a></span></dt><dd><dl><dt><span class="chapter"><a href="unix-smb.html">1. NetBIOS in a Unix World</a></span></dt><dd><dl><dt><span class="sect1"><a href="unix-smb.html#id244973">Introduction</a></span></dt><dt><span class="sect1"><a href="unix-smb.html#id244990">Usernames</a></span></dt><dt><span class="sect1"><a href="unix-smb.html#id244608">File Ownership</a></span></dt><dt><span class="sect1"><a href="unix-smb.html#id244632">Passwords</a></span></dt><dt><span class="sect1"><a href="unix-smb.html#id245752">Locking</a></span></dt><dt><span class="sect1"><a href="unix-smb.html#id245793">Deny Modes</a></span></dt><dt><span class="sect1"><a href="unix-smb.html#id245812">Trapdoor UIDs</a></span></dt><dt><span class="sect1"><a href="unix-smb.html#id245472">Port numbers</a></span></dt><dt><span class="sect1"><a href="unix-smb.html#id245503">Protocol Complexity</a></span></dt></dl></dd><dt><span class="chapter"><a href="ntdomain.html">2. NT Domain RPC's</a></span></dt><dd><dl><dt><span class="sect1"><a href="ntdomain.html#id285756">Introduction</a></span></dt><dd><dl><dt><span class="sect2"><a href="ntdomain.html#id285896">Sources</a></span></dt><dt><span class="sect2"><a href="ntdomain.html#id285923">Credits</a></span></dt></dl></dd><dt><span class="sect1"><a href="ntdomain.html#id285952">Notes and Structures</a></span></dt><dd><dl><dt><span class="sect2"><a href="ntdomain.html#id285958">Notes</a></span></dt><dt><span class="sect2"><a href="ntdomain.html#id286014">Enumerations</a></span></dt><dt><span class="sect2"><a href="ntdomain.html#id286183">Structures</a></span></dt></dl></dd><dt><span class="sect1"><a href="ntdomain.html#id288480">MSRPC over Transact Named Pipe</a></span></dt><dd><dl><dt><span class="sect2"><a href="ntdomain.html#id288490">MSRPC Pipes</a></span></dt><dt><span class="sect2"><a href="ntdomain.html#id288559">Header</a></span></dt><dt><span class="sect2"><a href="ntdomain.html#id289234">Tail</a></span></dt><dt><span class="sect2"><a href="ntdomain.html#id289270">RPC Bind / Bind Ack</a></span></dt><dt><span class="sect2"><a href="ntdomain.html#id289407">NTLSA Transact Named Pipe</a></span></dt><dt><span class="sect2"><a href="ntdomain.html#id289535">LSA Open Policy</a></span></dt><dt><span class="sect2"><a href="ntdomain.html#id289634">LSA Query Info Policy</a></span></dt><dt><span class="sect2"><a href="ntdomain.html#id289716">LSA Enumerate Trusted Domains</a></span></dt><dt><span class="sect2"><a href="ntdomain.html#id289788">LSA Open Secret</a></span></dt><dt><span class="sect2"><a href="ntdomain.html#id289875">LSA Close</a></span></dt><dt><span class="sect2"><a href="ntdomain.html#id289926">LSA Lookup SIDS</a></span></dt><dt><span class="sect2"><a href="ntdomain.html#id290090">LSA Lookup Names</a></span></dt></dl></dd><dt><span class="sect1"><a href="ntdomain.html#id290267">NETLOGON rpc Transact Named Pipe</a></span></dt><dd><dl><dt><span class="sect2"><a href="ntdomain.html#id290392">LSA Request Challenge</a></span></dt><dt><span class="sect2"><a href="ntdomain.html#id290495">LSA Authenticate 2</a></span></dt><dt><span class="sect2"><a href="ntdomain.html#id290608">LSA Server Password Set</a></span></dt><dt><span class="sect2"><a href="ntdomain.html#id290695">LSA SAM Logon</a></span></dt><dt><span class="sect2"><a href="ntdomain.html#id290771">LSA SAM Logoff</a></span></dt></dl></dd><dt><span class="sect1"><a href="ntdomain.html#id290842">\\MAILSLOT\NET\NTLOGON</a></span></dt><dd><dl><dt><span class="sect2"><a href="ntdomain.html#id290854">Query for PDC</a></span></dt><dt><span class="sect2"><a href="ntdomain.html#id291059">SAM Logon</a></span></dt></dl></dd><dt><span class="sect1"><a href="ntdomain.html#id291315">SRVSVC Transact Named Pipe</a></span></dt><dd><dl><dt><span class="sect2"><a href="ntdomain.html#id291350">Net Share Enum</a></span></dt><dt><span class="sect2"><a href="ntdomain.html#id291522">Net Server Get Info</a></span></dt></dl></dd><dt><span class="sect1"><a href="ntdomain.html#id291613">Cryptographic side of NT Domain Authentication</a></span></dt><dd><dl><dt><span class="sect2"><a href="ntdomain.html#id291619">Definitions</a></span></dt><dt><span class="sect2"><a href="ntdomain.html#id291744">Protocol</a></span></dt><dt><span class="sect2"><a href="ntdomain.html#id291808">Comments</a></span></dt></dl></dd><dt><span class="sect1"><a href="ntdomain.html#id291841">SIDs and RIDs</a></span></dt><dd><dl><dt><span class="sect2"><a href="ntdomain.html#id291871">Well-known SIDs</a></span></dt><dt><span class="sect2"><a href="ntdomain.html#id292120">Well-known RIDS</a></span></dt></dl></dd></dl></dd></dl></dd><dt><span class="part"><a href="pt02.html">II. Samba Basics</a></span></dt><dd><dl><dt><span class="chapter"><a href="architecture.html">3. Samba Architecture</a></span></dt><dd><dl><dt><span class="sect1"><a href="architecture.html#id292357">Introduction</a></span></dt><dt><span class="sect1"><a href="architecture.html#id292396">Multithreading and Samba</a></span></dt><dt><span class="sect1"><a href="architecture.html#id292420">Threading smbd</a></span></dt><dt><span class="sect1"><a href="architecture.html#id292473">Threading nmbd</a></span></dt><dt><span class="sect1"><a href="architecture.html#id292512">nbmd Design</a></span></dt></dl></dd><dt><span class="chapter"><a href="debug.html">4. The samba DEBUG system</a></span></dt><dd><dl><dt><span class="sect1"><a href="debug.html#id292560">New Output Syntax</a></span></dt><dt><span class="sect1"><a href="debug.html#id292660">The DEBUG() Macro</a></span></dt><dt><span class="sect1"><a href="debug.html#id292752">The DEBUGADD() Macro</a></span></dt><dt><span class="sect1"><a href="debug.html#id292784">The DEBUGLVL() Macro</a></span></dt><dt><span class="sect1"><a href="debug.html#id292862">New Functions</a></span></dt><dd><dl><dt><span class="sect2"><a href="debug.html#id292867">dbgtext()</a></span></dt><dt><span class="sect2"><a href="debug.html#id292881">dbghdr()</a></span></dt><dt><span class="sect2"><a href="debug.html#id292897">format_debug_text()</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="internals.html">5. Samba Internals</a></span></dt><dd><dl><dt><span class="sect1"><a href="internals.html#id292948">Character Handling</a></span></dt><dt><span class="sect1"><a href="internals.html#id292965">The new functions</a></span></dt><dt><span class="sect1"><a href="internals.html#id293071">Macros in byteorder.h</a></span></dt><dd><dl><dt><span class="sect2"><a href="internals.html#id293081">CVAL(buf,pos)</a></span></dt><dt><span class="sect2"><a href="internals.html#id293092">PVAL(buf,pos)</a></span></dt><dt><span class="sect2"><a href="internals.html#id293102">SCVAL(buf,pos,val)</a></span></dt><dt><span class="sect2"><a href="internals.html#id293113">SVAL(buf,pos)</a></span></dt><dt><span class="sect2"><a href="internals.html#id293124">IVAL(buf,pos)</a></span></dt><dt><span class="sect2"><a href="internals.html#id293135">SVALS(buf,pos)</a></span></dt><dt><span class="sect2"><a href="internals.html#id293146">IVALS(buf,pos)</a></span></dt><dt><span class="sect2"><a href="internals.html#id293157">SSVAL(buf,pos,val)</a></span></dt><dt><span class="sect2"><a href="internals.html#id293168">SIVAL(buf,pos,val)</a></span></dt><dt><span class="sect2"><a href="internals.html#id293178">SSVALS(buf,pos,val)</a></span></dt><dt><span class="sect2"><a href="internals.html#id293189">SIVALS(buf,pos,val)</a></span></dt><dt><span class="sect2"><a href="internals.html#id293200">RSVAL(buf,pos)</a></span></dt><dt><span class="sect2"><a href="internals.html#id293211">RIVAL(buf,pos)</a></span></dt><dt><span class="sect2"><a href="internals.html#id293222">RSSVAL(buf,pos,val)</a></span></dt><dt><span class="sect2"><a href="internals.html#id293233">RSIVAL(buf,pos,val)</a></span></dt></dl></dd><dt><span class="sect1"><a href="internals.html#id293244">LAN Manager Samba API</a></span></dt><dd><dl><dt><span class="sect2"><a href="internals.html#id293269">Parameters</a></span></dt><dt><span class="sect2"><a href="internals.html#id293379">Return value</a></span></dt></dl></dd><dt><span class="sect1"><a href="internals.html#id293437">Code character table</a></span></dt></dl></dd><dt><span class="chapter"><a href="CodingSuggestions.html">6. Coding Suggestions</a></span></dt><dt><span class="chapter"><a href="contributing.html">7. Contributing code</a></span></dt><dt><span class="chapter"><a href="modules.html">8. Modules</a></span></dt><dd><dl><dt><span class="sect1"><a href="modules.html#id294031">Advantages</a></span></dt><dt><span class="sect1"><a href="modules.html#id294066">Loading modules</a></span></dt><dd><dl><dt><span class="sect2"><a href="modules.html#id294089">Static modules</a></span></dt><dt><span class="sect2"><a href="modules.html#id294118">Shared modules</a></span></dt></dl></dd><dt><span class="sect1"><a href="modules.html#id294138">Writing modules</a></span></dt><dd><dl><dt><span class="sect2"><a href="modules.html#id294181">Static/Shared selection in configure.in</a></span></dt></dl></dd></dl></dd></dl></dd><dt><span class="part"><a href="pt03.html">III. Samba Subsystems</a></span></dt><dd><dl><dt><span class="chapter"><a href="rpc-plugin.html">9. RPC Pluggable Modules</a></span></dt><dd><dl><dt><span class="sect1"><a href="rpc-plugin.html#id294340">About</a></span></dt><dt><span class="sect1"><a href="rpc-plugin.html#id294353">General Overview</a></span></dt></dl></dd><dt><span class="chapter"><a href="vfs.html">10. VFS Modules</a></span></dt><dd><dl><dt><span class="sect1"><a href="vfs.html#id294514">The Samba (Posix) VFS layer</a></span></dt><dd><dl><dt><span class="sect2"><a href="vfs.html#id294520">The general interface</a></span></dt><dt><span class="sect2"><a href="vfs.html#id294590">Possible VFS operation layers</a></span></dt></dl></dd><dt><span class="sect1"><a href="vfs.html#id294634">The Interaction between the Samba VFS subsystem and the modules</a></span></dt><dd><dl><dt><span class="sect2"><a href="vfs.html#id294640">Initialization and registration</a></span></dt><dt><span class="sect2"><a href="vfs.html#id294777">How the Modules handle per connection data</a></span></dt></dl></dd><dt><span class="sect1"><a href="vfs.html#id294935">Upgrading to the New VFS Interface</a></span></dt><dd><dl><dt><span class="sect2"><a href="vfs.html#id294941">Upgrading from 2.2.* and 3.0aplha modules</a></span></dt></dl></dd><dt><span class="sect1"><a href="vfs.html#id295375">Some Notes</a></span></dt><dd><dl><dt><span class="sect2"><a href="vfs.html#id295380">Implement TRANSPARENT functions</a></span></dt><dt><span class="sect2"><a href="vfs.html#id295398">Implement OPAQUE functions</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="parsing.html">11. The smb.conf file</a></span></dt><dd><dl><dt><span class="sect1"><a href="parsing.html#id295453">Lexical Analysis</a></span></dt><dd><dl><dt><span class="sect2"><a href="parsing.html#id295521">Handling of Whitespace</a></span></dt><dt><span class="sect2"><a href="parsing.html#id295562">Handling of Line Continuation</a></span></dt><dt><span class="sect2"><a href="parsing.html#id295606">Line Continuation Quirks</a></span></dt></dl></dd><dt><span class="sect1"><a href="parsing.html#id295680">Syntax</a></span></dt><dd><dl><dt><span class="sect2"><a href="parsing.html#id295732">About params.c</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="wins.html">12. Samba WINS Internals</a></span></dt><dd><dl><dt><span class="sect1"><a href="wins.html#id295771">WINS Failover</a></span></dt></dl></dd><dt><span class="chapter"><a href="pwencrypt.html">13. LanMan and NT Password Encryption</a></span></dt><dd><dl><dt><span class="sect1"><a href="pwencrypt.html#id295876">Introduction</a></span></dt><dt><span class="sect1"><a href="pwencrypt.html#id295893">How does it work?</a></span></dt><dt><span class="sect1"><a href="pwencrypt.html#id295954">The smbpasswd file</a></span></dt></dl></dd></dl></dd><dt><span class="part"><a href="pt04.html">IV. Debugging and tracing</a></span></dt><dd><dl><dt><span class="chapter"><a href="tracing.html">14. Tracing samba system calls</a></span></dt><dt><span class="chapter"><a href="devprinting.html">15. Samba Printing Internals</a></span></dt><dd><dl><dt><span class="sect1"><a href="devprinting.html#id296407">Abstract</a></span></dt><dt><span class="sect1"><a href="devprinting.html#id296419">
30Printing Interface to Various Back ends
31</a></span></dt><dt><span class="sect1"><a href="devprinting.html#id296493">
32Print Queue TDB's
33</a></span></dt><dt><span class="sect1"><a href="devprinting.html#id296631">
34ChangeID and Client Caching of Printer Information
35</a></span></dt><dt><span class="sect1"><a href="devprinting.html#id296642">
36Windows NT/2K Printer Change Notify
37</a></span></dt></dl></dd></dl></dd><dt><span class="part"><a href="pt05.html">V. Appendices</a></span></dt><dd><dl><dt><span class="chapter"><a href="Packaging.html">16. Notes to packagers</a></span></dt><dd><dl><dt><span class="sect1"><a href="Packaging.html#id296898">Versioning</a></span></dt><dt><span class="sect1"><a href="Packaging.html#id296924">Modules</a></span></dt></dl></dd></dl></dd></dl></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="pt01.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"> </td><td width="20%" align="center"> </td><td width="40%" align="right" valign="top"> Part I. The protocol</td></tr></table></div></body></html>
Note: See TracBrowser for help on using the repository browser.