How ceph/samba works
Samba provides SMB/CIFS file and print serving, domain-controller and domain-member roles, a Unix-side SMB client, and NetBIOS naming services. A common workflow is an SMB client requesting a share operation, the server handling it, and file or print services returning the result; domain authentication and directory services support the broader server roles. The graph also preserves the documented client, naming, and clustering branches. Relationships for unsampled subsystems are included only where the README documents the capability; source excerpts do not expose their full runtime wiring.
Main entry points: smbd/server.c SMB server · client.c SMB command client · smbd/server.c AD domain controller · gensec.c Security negotiation
Components 19
SMB services
- SMB server
source3/smbd/server.c - File and print
file_server/file_server.c - SMB command client
source3/client/client.c - SMB protocol
libcli/smb/smbXcli_base.c
Identity services
- Security negotiation
auth/gensec/gensec.c - NTLM authentication
auth/ntlmssp/ntlmssp.c - AD authentication
source4/auth/ntlm/auth_server_service.c - Domain integration
source3/winbindd/wb_queryuser.c
Directory and DNS
- AD domain controller
source4/smbd/server.c - Directory database
source4/dsdb/samdb/samdb.h - DNS service
source4/dns_server/dns_query.c - DNS queries
lib/addns/dnsquery.c
Network naming
- NetBIOS nameserver
source4/nbt_server/query.c - Name lookup
source3/libsmb/namequery.c
Cluster support
- CTDB client
ctdb/client/ctdb_client.c - Cluster daemon
ctdb/server/ctdbd.c
Other components
- SMB clients
- Shared resources
- Domain administrator
Connections 17
- SMB clients → SMB server: requests shares
README - SMB server → File and print: serves files
README - SMB server → Shared resources: provides file and print access
README - SMB command client → Shared resources: accesses remote resources
README - SMB command client → SMB protocol: uses SMB
source3/client/client.c - SMB server → Security negotiation: negotiates security
- Security negotiation → NTLM authentication: supports authentication
- AD domain controller → AD authentication: provides authentication
- AD domain controller → Directory database: uses directory data
source4/smbd/server.c - Domain administrator → AD domain controller: administers domain
README - AD domain controller → DNS service: provides DNS
- SMB server → Domain integration: joins domains
README - SMB command client → DNS queries: resolves names
- Name lookup → NetBIOS nameserver: queries names
- SMB server → CTDB client: handles cluster events
source3/smbd/server.c - CTDB client → Cluster daemon: communicates with
- SMB clients → SMB command client: initiates access
README