On May 8, 2008, a couple of samba developers came together in a sambaXP followup meeting in Göttingen at SerNet, and the idea was born to combine the best parts of Samba3 and Samba4 to form a complete Samba Active Directory server that is also a performant file server and a print server.
The Samba4 and Samba3 daemons should run in parallel and the tasks should be distributed among the processes. The various deamons should communicate via unix domain sockets.
One essential part for the feasibility of the project is Volker Lendecke's recent work on Samba 3 on adding the ability to delegate named pipes (dcerpc services) to external programs over unix domain sockets.
The plumbing design
This is the basic idea of how to distribute the tasks:
- The main daemon to be run is the Samba4 smbd.
- It listens on the Kerberos, LDAP, CLDAP, GC, Endpoint mapper and WINS ports.
- smbd4 offers the named pipes samr, lsa, netlogon, epm, and drsuapi
- smbd4 forks smbd3 (and other samba3 daemons)
- smbd3 listens on the smb ports (139/445)
- smbd3 offers the named pipes spoolss and possibly winreg
- nmbd3 offes browsing (138)
- samba3 winbindd talks to trusted domains
The daemons have to talk to each other in order for the scenario to work.
See the notes from the meeting for more details.
Name of the game
The codename Franky was coined for the combined Samba release.
- Named pipe forwarding in Samba 3: s3-merge34 @ git://git.samba.org/vl/samba.git
- Named pipe connection accepting in Samba 4: s4-merge34 @ git://git.samba.org/vl/samba.git
- S3+S4 Build integration: "franky" @ git://git.samba.org/jelmer/samba3.git