SlideShare ist ein Scribd-Unternehmen logo
1 von 31
Downloaden Sie, um offline zu lesen
Andrea Mauro
CHI SONO
• Geek dagli anni 80
• Commodore 64
• Linuxaro dal 1995
• Distribuzione Slackware
• Professionista IT
• Virtualizzazione, Sistemi Operativi, Storage, …
•

VMware, Microsoft, Citrix, …

• Andrea Mauro
• Twitter: @Andrea_Mauro
PERCHÉ WINDOWS?
• Perché non esiste il mondo perfetto
• Client prevalentemente Windows
• Realtà eterogenee
• Protocolli Microsoft più usati di NIS/NFS
• Problema dei client
Source: HitsLink (desktop, May 2012), IDC (server, Q1 2012), Gartner (mobile, May 2012), and IDC (March 2012).
PERCHÉ ACTIVE
DIRECTORY?
• Standard «De Facto» per i domini
• Utile per diverse compliance
• Utile nelle fasi di acquisizioni/fusioni/trasformazioni
aziendali
• Altri tipi di domini
•
•
•
•
•

Domini NT4
Domini NIS
Directory Novell
Soluzioni basate su LDAP
…
ACTIVE DIRECTORY
Sistema integrato e distribuito di directory service
• rilasciata come beta nel 1996
• rilasciata per la prima volta con Windows 2000

Integrazione di diversi standard
• Domain Name Service
• sostituisce ai Domini NT i Domini DNS

• X.500
• Utilizzato per elencare gli oggetti

• Lightweight Directory Access Protocol
• Utilizzato la comunicazione

• Kerberos V5
• Utilizzato per l’autenticazione

• Active Directory Service Interfaces (ADSI)
ACTIVE DIRECTORY
STANDARD
DNS
SNTP
DHCP

Internet-Standard Technologies

LDAP
TCP/IP

LDIF
X.509
Kerberos
DIRECTORY
Repository contenente oggetti:
•
•
•
•

Utenti, gruppi e/o contatti
Stampanti condivise
Computer e/o Server
Unità disco condivise

Organizzato in modo gerarchico all’interno di
• Domini (Domain)
• Organization Unit (OU)

Simile ad un database
• informazioni tipicamente usate in lettura

Accesso non transazionale
Permesse inconsistenze temporanee
TERMINOLOGIA AD (1)
Dominio
• contenitore di oggetti
• deve includere almeno un controller di dominio (DC)
• può contenere dei computer client e/o stampanti e/o …

• Root Domain

Struttura (Albero – “Tree”)
• raggruppamento di uno o più domini Windows
• può essere costituita da un solo dominio più altri sottodomini
appartenenti allo stesso spazio dei nomi contiguo

Insieme di Strutture (Foresta – “Forest”)
• raggruppamento di una o più strutture

Organizational Unit (OU)
• contenitore di oggetti
• delimita il raggio d’azione delle policy
• permette la delega amministrativa
TERMINOLOGIA AD (2)
Sito
• rappresenta il raccordo tra la struttura logica di Active Directory e la
rete fisica che la ospita
• delimita il contesto di replica tra i vari Domain Controller

Schema
• definisce tutti gli elementi che appartengono all’Active Directory

NTDS (database di Active Directory)
• directory del nuovo dominio e contiene tutti gli oggetti memorizzati
nell'archivio di Active Directory
• il percorso predefinito del database è c:windowsntds
• il file che contiene il database di directory si chiama Ntds.dit

SYSVOL (Volume di sistema condiviso)
• struttura di cartelle che esiste in tutti i controller di dominio
• memorizza gli script e alcuni oggetti per il dominio
• il percorso predefinito del sistema condiviso è: c:windowssysvol
TERMINOLOGIA AD (3)
Tipo di server
• Domain Controller
• Domain Member

Tipi di DC
• Global Catalog
• Read Only Domain Controller (RODC)
• Ruoli FSMO (Flexible Single Master Operation)
• A livello di foresta
• Schema master
• Domain naming master
• A livello di dominio
• PDC emulator
• RID master
• Infrastructure master
RISOLUZIONE DEI
NOMI
Problemi
• Conversione nomi in indirizzi IP
• Service Discovery
Utilizzo del DNS
• A record
• Risoluzione dei nomi macchina
• Sostituisce il vecchio WINS

• Service (SRV) record
• Discovery dei server per i servizi di AD
• LDAP, GC, DC, Kerberos
NAMING CONVENTION
LDAP
• Distinguished name

CN=Jeff Smith, CN=Users, DC=contoso, DC=msft
• Relative distinguished name

Kerberos
• User Principal Name (UPN) e suffissi alternativi

JeffS@contoso.msft
Service Principal Name (SPN)
Globally Unique IDentifier (GUID)
Universal Naming Convention (UNC)
PROTOCOLLO SMB
Server Message Block
• It is a protocol by which a lot of PC-related machines
share files and printers and other information such as lists
of available files and printers
• Operating systems that support this natively include
Windows NT, OS/2, and Linux
What is CIFS?
• CIFS – Common Internet File System is a protocol that is
basically an updated SMB.
SMB – DA NT 4.0 A NT
6.2
Versioni esistenti
• CIFS
• Microsoft Windows NT 4.0 (1996)

• SMB 1.0 (o SMB1)
• Windows 2000, Windows XP, Windows Server 2003 e Windows
Server 2003 R2

• SMB 2.0 (o SMB2)
• Windows Vista (SP1 or later) e Windows Server 2008

• SMB 2.1 (or SMB2.1)
• Windows 7 e Windows Server 2008 R2

• SMB 3.0 (or SMB3) – Anche noto come SMB 2.2
• Windows 8 e Windows Server 2012

Verificare la versione
• PowerShell: Get-SmbConnection
COSA È SAMBA?
• Samba is a suite of programs which work together to allow
clients to access to a server's filespace and printers via
the SMB (Server Message Block) and CIFS (Common
Internet Filesystem) protocols
• Samba is freely available and is an OpenSource project
• With Samba, you can share a Linux filesystem with
Windows 95, 98, 2000 and NT and vice versa
• You can also share printers connected to either Linux or a
system with Windows 95, 98, 2000 or NT
• Samba enables a Linux or Unix server to function as a file
server for client PCs running Windows software
• Andrew Tridgell developed the first version of Samba Unix
in December 1991 and January 1992
SAMBA 4
Version 4.x (12/11/12) brings AD compatible Domain
Controller or join to existing DC
• Samba Active Directory Domain
• LDAP Server
• Heimdal Kerberos Authentication
• Dynamic DNS
• Group policy
• Roaming profiles
• SMB 2.1 / 3
SAMBA 4.1
• October 11, 2013
• Più funzioni e compatibilità
• http://www.samba.org/samba/history/samba-4.1.0.html
SAMBA4 AD
PROBLEMA DELLA
DISTRIBUZIONE
• Samba3 è ancora il default
• Poche includono versioni (vecchie) di Samba4
• (Nessuna) include Samba 4.1
• Sorgenti esterni
• Spesso incompleti
• Oppure ricompilazione dai sorgenti
FUNZIONALITÀ E
COMPATIBILITÀ
• “Officially" supported in 4.0:
• forests: 1, domains: 1, domain controllers: 1*
• Trusts:
• Samba can be trusted
• Samba can not trust (yet)
• Replication:
• directory replication works
• sysvol replication not implemented yet
•

*multiple Samba DCs possible (sysvol replicated externally)

• SMB 3.0 TODO:
• multi channel
• RDMA
• cluster concepts (scale-out/continuous availability)
COMPONENTI DI
SAMBA (1)
• smb.conf: This is the configuration file for smbd
• smbd daemon: This provides the file and print services to
SMB clients such as Windows NT or other Linux or Unix
clients
• nmbd daemon: This daemon provides NetBIOS
nameserving and browsing support
• smbclient: This is an smb client program that implement a
simple FTP-like client on a Linux or Unix box
• smbmount: This mounting program enables mounting of
server directories on a Linux or Unix box
• smbstatus: This programs lists the current Samba
connections
COMPONENTI DI
SAMBA (2)
• testparm: This utility is used to test the smb.conf
configuration file
• SWAT: Swat allows a Samba administrator to configure the
smb.conf file via a Web browser
• smbpasswd: This allows the user to change the password
used for their SMB sessions
• NTVFS file server: This file server is what was used prior
to the beta2 release of Samba 4.0; expect to move smbd to
in the longer term
• CTDB: Samba4 Clustered Filesystem
• samba-tool: Provision of a new AD domain
COMPILARE SAMBA
git clone git://git.samba.org/samba.git samba-master
cd samba-master
./configure
make
make install
I PARAMETRI DI BASE
File smb.conf
Definizione del Workgroup/Dominio
• direttiva workgroup
Definizione delle reti autorizzate
• SMB su TCP/IP funziona anche su Internet!
Definizione dell’autenticazione
• direttiva security
• nel caso di security=user è importante definire le password
degli utenti SAMBA
• Microsoft e Unix hanno password cifrate diverse!

Definizione delle share
SAMBA COME AD DC
http://wiki.samba.org/index.php/Samba_AD_DC_HOWTO
samba-tool domain provision
Scelta del back-end DNS
DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE,
BIND9_DLZ, NONE)
Kerberos e problemi con alcune distro
SAMBA COME DC
AGGIUNTIVO
https://wiki.samba.org/index.php/Samba4/HOWTO/Join_a_do
main_as_a_DC
samba-tool domain join
DC | RODC | MEMBER
Migrare i ruoli FSMO
samba-tool fsmo seize --role=....
Global Catalog
Sysvol
Problemi con Windows Server 2012
“ESTENDERE” SAMBA
Stackable VFS modules
• Included Modules
•
•
•
•
•
•

audit
extd_audit
fake_perms
recycle
netatalk
shadow_copy

• VFS Modules Available Elsewhere
• DatabaseFS
• Vscan

Per saperne di più
• http://www.samba.org/samba/docs/man/Samba-HOWTOCollection/VFS.html
FILE SYSTEM PER
SAMBA
• Problema dei permessi
• Unix utilizza i bit dei permessi
• Windows le ACL
• Filesystem con opzione acl
• Nota
• If you are using an ext3 or ext4 filesystem on Linux, you
should ensure that the filesystem is mounted with the
options:
• user_xattr,acl,barrier=1
• LVM per il supporto alle snapshot
CONSIDERAZIONI
FINALI
• Interoperabilità
• Compatibilità
• Non tutte le funzioni sono implementate
• Disponibilità
• AD è già progettata per alta disponibilità
• Con Linux vi sono poi interessanti opzioni
• Sicurezza
• AD non è una soluzione multi-tenant
• Adatta solo in reti locali
• http://www.golinuxhub.com/2013/09/iptable-rules-forsamba-4-in-red-hat.html
SAMBA EXPERIENCE
• The Samba eXPerience is the international Samba
conference for users and developers
• May 13th - 16th, 2014
• the 13th international Samba conference
• Hotel Freizeit In Göttingen, Germany
• http://www.sambaxp.org

Weitere ähnliche Inhalte

Was ist angesagt?

LinuxArena 2007 - Introduzione alle Distribuzioni Linux
LinuxArena 2007 - Introduzione alle Distribuzioni LinuxLinuxArena 2007 - Introduzione alle Distribuzioni Linux
LinuxArena 2007 - Introduzione alle Distribuzioni LinuxManuel Dalla Lana
 
Licensing di windows server 2016 Yashi Italia
Licensing di windows server 2016 Yashi ItaliaLicensing di windows server 2016 Yashi Italia
Licensing di windows server 2016 Yashi ItaliaYashi Italia
 
DDive2011 - Performance on Lotus Domino
DDive2011 - Performance on Lotus DominoDDive2011 - Performance on Lotus Domino
DDive2011 - Performance on Lotus DominoGTTech
 
Homemade Linux Server
Homemade Linux ServerHomemade Linux Server
Homemade Linux ServerNaLUG
 
Windows Server 2016 Essentials Yashi Italia
Windows Server 2016 Essentials Yashi ItaliaWindows Server 2016 Essentials Yashi Italia
Windows Server 2016 Essentials Yashi ItaliaYashi Italia
 
Nagios in alta affidabilità con strumenti open source
Nagios in alta affidabilità con strumenti open sourceNagios in alta affidabilità con strumenti open source
Nagios in alta affidabilità con strumenti open sourceBabel
 
Server aziendali con Linux
Server aziendali con LinuxServer aziendali con Linux
Server aziendali con LinuxTruelite
 
Dp3 Marianna Tomasatti
Dp3 Marianna TomasattiDp3 Marianna Tomasatti
Dp3 Marianna TomasattiGTTech
 
Nslu2 how to unslung
Nslu2 how to unslungNslu2 how to unslung
Nslu2 how to unslungMarcello Viti
 
RDX e Windows Backup: semplice ed economica protezione dei dati
RDX e Windows Backup: semplice ed economica protezione dei datiRDX e Windows Backup: semplice ed economica protezione dei dati
RDX e Windows Backup: semplice ed economica protezione dei datiPaolo Rossi
 
Monitorare Lotus Domino con Nagios e Centreon - Dominopoint Days 2012
Monitorare Lotus Domino con Nagios e Centreon - Dominopoint Days 2012Monitorare Lotus Domino con Nagios e Centreon - Dominopoint Days 2012
Monitorare Lotus Domino con Nagios e Centreon - Dominopoint Days 2012Fabio Grasso
 
Glusterfs: un filesystem altamente versatile
Glusterfs: un filesystem altamente versatileGlusterfs: un filesystem altamente versatile
Glusterfs: un filesystem altamente versatileIvan Rossi
 

Was ist angesagt? (19)

LinuxArena 2007 - Introduzione alle Distribuzioni Linux
LinuxArena 2007 - Introduzione alle Distribuzioni LinuxLinuxArena 2007 - Introduzione alle Distribuzioni Linux
LinuxArena 2007 - Introduzione alle Distribuzioni Linux
 
Linuxdesk
LinuxdeskLinuxdesk
Linuxdesk
 
Open@BNCF
Open@BNCFOpen@BNCF
Open@BNCF
 
Licensing di windows server 2016 Yashi Italia
Licensing di windows server 2016 Yashi ItaliaLicensing di windows server 2016 Yashi Italia
Licensing di windows server 2016 Yashi Italia
 
DDive2011 - Performance on Lotus Domino
DDive2011 - Performance on Lotus DominoDDive2011 - Performance on Lotus Domino
DDive2011 - Performance on Lotus Domino
 
Bazaar vs Git
Bazaar vs GitBazaar vs Git
Bazaar vs Git
 
Homemade Linux Server
Homemade Linux ServerHomemade Linux Server
Homemade Linux Server
 
Sametime 8.x configurarlo ed installarlo
Sametime 8.x configurarlo ed installarloSametime 8.x configurarlo ed installarlo
Sametime 8.x configurarlo ed installarlo
 
Windows Server 2016 Essentials Yashi Italia
Windows Server 2016 Essentials Yashi ItaliaWindows Server 2016 Essentials Yashi Italia
Windows Server 2016 Essentials Yashi Italia
 
Nagios in alta affidabilità con strumenti open source
Nagios in alta affidabilità con strumenti open sourceNagios in alta affidabilità con strumenti open source
Nagios in alta affidabilità con strumenti open source
 
Server aziendali con Linux
Server aziendali con LinuxServer aziendali con Linux
Server aziendali con Linux
 
Da 0 all'open per PA e PMI
Da 0 all'open per PA e PMIDa 0 all'open per PA e PMI
Da 0 all'open per PA e PMI
 
Dp3 Marianna Tomasatti
Dp3 Marianna TomasattiDp3 Marianna Tomasatti
Dp3 Marianna Tomasatti
 
Nslu2 how to unslung
Nslu2 how to unslungNslu2 how to unslung
Nslu2 how to unslung
 
RDX e Windows Backup: semplice ed economica protezione dei dati
RDX e Windows Backup: semplice ed economica protezione dei datiRDX e Windows Backup: semplice ed economica protezione dei dati
RDX e Windows Backup: semplice ed economica protezione dei dati
 
Linux
LinuxLinux
Linux
 
debian gnu linux
debian gnu linuxdebian gnu linux
debian gnu linux
 
Monitorare Lotus Domino con Nagios e Centreon - Dominopoint Days 2012
Monitorare Lotus Domino con Nagios e Centreon - Dominopoint Days 2012Monitorare Lotus Domino con Nagios e Centreon - Dominopoint Days 2012
Monitorare Lotus Domino con Nagios e Centreon - Dominopoint Days 2012
 
Glusterfs: un filesystem altamente versatile
Glusterfs: un filesystem altamente versatileGlusterfs: un filesystem altamente versatile
Glusterfs: un filesystem altamente versatile
 

Ähnlich wie Realizzare una rete aziendale con linux e samba

Condivisione di dischi - NFS - Reti miste Windows/Linux - SMB e NetBIOS - Sam...
Condivisione di dischi - NFS - Reti miste Windows/Linux - SMB e NetBIOS - Sam...Condivisione di dischi - NFS - Reti miste Windows/Linux - SMB e NetBIOS - Sam...
Condivisione di dischi - NFS - Reti miste Windows/Linux - SMB e NetBIOS - Sam...Fulvio Corno
 
Introduzione a Drupal 7 - 14/03/2013
Introduzione a Drupal 7 - 14/03/2013Introduzione a Drupal 7 - 14/03/2013
Introduzione a Drupal 7 - 14/03/2013Alessandro del Gobbo
 
Introduzione a Drupal e componenti del core - SIDCamp 2015
Introduzione a Drupal e componenti del core - SIDCamp 2015Introduzione a Drupal e componenti del core - SIDCamp 2015
Introduzione a Drupal e componenti del core - SIDCamp 2015Kelyon Srl
 
Solo un server domino può sopportare così tanto carico e continuare a funzionare
Solo un server domino può sopportare così tanto carico e continuare a funzionareSolo un server domino può sopportare così tanto carico e continuare a funzionare
Solo un server domino può sopportare così tanto carico e continuare a funzionareAndreas Ponte
 
SQL Server Failover Cluster Instances con Amazon FSx in AWS
SQL Server Failover Cluster Instances con Amazon FSx in AWSSQL Server Failover Cluster Instances con Amazon FSx in AWS
SQL Server Failover Cluster Instances con Amazon FSx in AWSGianluca Hotz
 
SQL Server Failover Cluster Instances con Azure Managed Disks
SQL Server Failover Cluster Instances con Azure Managed DisksSQL Server Failover Cluster Instances con Azure Managed Disks
SQL Server Failover Cluster Instances con Azure Managed DisksGianluca Hotz
 
MySQL Tech Tour 2016 - Database-as-a-Service con MySQL e Oracle Openstack
MySQL Tech Tour 2016 - Database-as-a-Service con MySQL e Oracle OpenstackMySQL Tech Tour 2016 - Database-as-a-Service con MySQL e Oracle Openstack
MySQL Tech Tour 2016 - Database-as-a-Service con MySQL e Oracle OpenstackPar-Tec S.p.A.
 
Da Zero all'open per PA e PMI
Da Zero all'open per PA e PMIDa Zero all'open per PA e PMI
Da Zero all'open per PA e PMINaLUG
 
20160402_mlraviol_mariadb_TorinoWordCamp
20160402_mlraviol_mariadb_TorinoWordCamp20160402_mlraviol_mariadb_TorinoWordCamp
20160402_mlraviol_mariadb_TorinoWordCampmlraviol
 
Come l’Open Source può essere alla base di un business di successo: il caso H...
Come l’Open Source può essere alla base di un business di successo: il caso H...Come l’Open Source può essere alla base di un business di successo: il caso H...
Come l’Open Source può essere alla base di un business di successo: il caso H...MariaDB plc
 
Integrazione di rete Windows Linux con SAMBA
Integrazione di rete Windows Linux con SAMBAIntegrazione di rete Windows Linux con SAMBA
Integrazione di rete Windows Linux con SAMBAClaudio Cardinali
 
festival ICT 2013: Windows Server 2012 R2: Ottimizzare l’infrastruttura con H...
festival ICT 2013: Windows Server 2012 R2: Ottimizzare l’infrastruttura con H...festival ICT 2013: Windows Server 2012 R2: Ottimizzare l’infrastruttura con H...
festival ICT 2013: Windows Server 2012 R2: Ottimizzare l’infrastruttura con H...festival ICT 2016
 
Network configuration - IPTables firewall
 Network configuration - IPTables firewall Network configuration - IPTables firewall
Network configuration - IPTables firewallFulvio Corno
 

Ähnlich wie Realizzare una rete aziendale con linux e samba (20)

Condivisione di dischi - NFS - Reti miste Windows/Linux - SMB e NetBIOS - Sam...
Condivisione di dischi - NFS - Reti miste Windows/Linux - SMB e NetBIOS - Sam...Condivisione di dischi - NFS - Reti miste Windows/Linux - SMB e NetBIOS - Sam...
Condivisione di dischi - NFS - Reti miste Windows/Linux - SMB e NetBIOS - Sam...
 
Introduzione a Drupal 7 - 14/03/2013
Introduzione a Drupal 7 - 14/03/2013Introduzione a Drupal 7 - 14/03/2013
Introduzione a Drupal 7 - 14/03/2013
 
SQL Server in AWS
SQL Server in AWSSQL Server in AWS
SQL Server in AWS
 
SQL Server in AWS
SQL Server in AWSSQL Server in AWS
SQL Server in AWS
 
Introduzione a Drupal e componenti del core - SIDCamp 2015
Introduzione a Drupal e componenti del core - SIDCamp 2015Introduzione a Drupal e componenti del core - SIDCamp 2015
Introduzione a Drupal e componenti del core - SIDCamp 2015
 
Solo un server domino può sopportare così tanto carico e continuare a funzionare
Solo un server domino può sopportare così tanto carico e continuare a funzionareSolo un server domino può sopportare così tanto carico e continuare a funzionare
Solo un server domino può sopportare così tanto carico e continuare a funzionare
 
SQL Server Failover Cluster Instances con Amazon FSx in AWS
SQL Server Failover Cluster Instances con Amazon FSx in AWSSQL Server Failover Cluster Instances con Amazon FSx in AWS
SQL Server Failover Cluster Instances con Amazon FSx in AWS
 
SQL Server Failover Cluster Instances con Azure Managed Disks
SQL Server Failover Cluster Instances con Azure Managed DisksSQL Server Failover Cluster Instances con Azure Managed Disks
SQL Server Failover Cluster Instances con Azure Managed Disks
 
Introduzione a Docker
Introduzione a DockerIntroduzione a Docker
Introduzione a Docker
 
Dominopoint meet the experts 2015 - XPages
Dominopoint   meet the experts 2015 - XPagesDominopoint   meet the experts 2015 - XPages
Dominopoint meet the experts 2015 - XPages
 
Microsoft Outlook for Domino (IMSMO)
Microsoft Outlook for Domino (IMSMO)Microsoft Outlook for Domino (IMSMO)
Microsoft Outlook for Domino (IMSMO)
 
MySQL Tech Tour 2016 - Database-as-a-Service con MySQL e Oracle Openstack
MySQL Tech Tour 2016 - Database-as-a-Service con MySQL e Oracle OpenstackMySQL Tech Tour 2016 - Database-as-a-Service con MySQL e Oracle Openstack
MySQL Tech Tour 2016 - Database-as-a-Service con MySQL e Oracle Openstack
 
Da Zero all'open per PA e PMI
Da Zero all'open per PA e PMIDa Zero all'open per PA e PMI
Da Zero all'open per PA e PMI
 
20160402_mlraviol_mariadb_TorinoWordCamp
20160402_mlraviol_mariadb_TorinoWordCamp20160402_mlraviol_mariadb_TorinoWordCamp
20160402_mlraviol_mariadb_TorinoWordCamp
 
DDive - Le novità della release 8.5.2 di Lotus Domino e Notes
DDive - Le novità della release 8.5.2 di Lotus Domino e NotesDDive - Le novità della release 8.5.2 di Lotus Domino e Notes
DDive - Le novità della release 8.5.2 di Lotus Domino e Notes
 
Come l’Open Source può essere alla base di un business di successo: il caso H...
Come l’Open Source può essere alla base di un business di successo: il caso H...Come l’Open Source può essere alla base di un business di successo: il caso H...
Come l’Open Source può essere alla base di un business di successo: il caso H...
 
Integrazione di rete Windows Linux con SAMBA
Integrazione di rete Windows Linux con SAMBAIntegrazione di rete Windows Linux con SAMBA
Integrazione di rete Windows Linux con SAMBA
 
festival ICT 2013: Windows Server 2012 R2: Ottimizzare l’infrastruttura con H...
festival ICT 2013: Windows Server 2012 R2: Ottimizzare l’infrastruttura con H...festival ICT 2013: Windows Server 2012 R2: Ottimizzare l’infrastruttura con H...
festival ICT 2013: Windows Server 2012 R2: Ottimizzare l’infrastruttura con H...
 
NSFDB2 - Domino e DB2 e....integrazione AS/400
NSFDB2 - Domino e DB2 e....integrazione AS/400NSFDB2 - Domino e DB2 e....integrazione AS/400
NSFDB2 - Domino e DB2 e....integrazione AS/400
 
Network configuration - IPTables firewall
 Network configuration - IPTables firewall Network configuration - IPTables firewall
Network configuration - IPTables firewall
 

Mehr von Andrea Mauro

The dark side of stretched cluster
The dark side of stretched clusterThe dark side of stretched cluster
The dark side of stretched clusterAndrea Mauro
 
Storage user cases
Storage user casesStorage user cases
Storage user casesAndrea Mauro
 
Business Continuity & Storage
Business Continuity & StorageBusiness Continuity & Storage
Business Continuity & StorageAndrea Mauro
 
Dell vision and solutions
Dell vision and solutionsDell vision and solutions
Dell vision and solutionsAndrea Mauro
 
Evoluzione dello storage
Evoluzione dello storageEvoluzione dello storage
Evoluzione dello storageAndrea Mauro
 
Si fa presto a dire SDDC: come, quando e perché?
Si fa presto a dire SDDC: come, quando e perché?Si fa presto a dire SDDC: come, quando e perché?
Si fa presto a dire SDDC: come, quando e perché?Andrea Mauro
 
VMUG.IT Meeting Napoli - Opening
VMUG.IT Meeting Napoli - OpeningVMUG.IT Meeting Napoli - Opening
VMUG.IT Meeting Napoli - OpeningAndrea Mauro
 
Evento Veeam & Assyrus - 2 Novità di Veeam Backup & Replication v9
Evento Veeam & Assyrus - 2 Novità di Veeam Backup & Replication v9Evento Veeam & Assyrus - 2 Novità di Veeam Backup & Replication v9
Evento Veeam & Assyrus - 2 Novità di Veeam Backup & Replication v9Andrea Mauro
 
Evento Veeam & Assyrus - 6 Pianificare lato sorgente
Evento Veeam & Assyrus - 6 Pianificare lato sorgenteEvento Veeam & Assyrus - 6 Pianificare lato sorgente
Evento Veeam & Assyrus - 6 Pianificare lato sorgenteAndrea Mauro
 
Kemp LoadMaster & VMware vSphere
Kemp LoadMaster & VMware vSphereKemp LoadMaster & VMware vSphere
Kemp LoadMaster & VMware vSphereAndrea Mauro
 
Debunking VMware NSX
Debunking VMware NSXDebunking VMware NSX
Debunking VMware NSXAndrea Mauro
 
APAC #vBrownbag – VMware Mirage overview
APAC #vBrownbag – VMware Mirage overviewAPAC #vBrownbag – VMware Mirage overview
APAC #vBrownbag – VMware Mirage overviewAndrea Mauro
 
Nordic VMUG User Conference 2014 - Design VMware vCenter Server
Nordic VMUG User Conference 2014 - Design VMware vCenter ServerNordic VMUG User Conference 2014 - Design VMware vCenter Server
Nordic VMUG User Conference 2014 - Design VMware vCenter ServerAndrea Mauro
 
VMware vCSA pro and cons
VMware vCSA pro and consVMware vCSA pro and cons
VMware vCSA pro and consAndrea Mauro
 
Presentazione al VMUGIT UC 2014 - Virtualizzare con i piedi per terra
Presentazione al VMUGIT UC 2014 - Virtualizzare con i piedi per terraPresentazione al VMUGIT UC 2014 - Virtualizzare con i piedi per terra
Presentazione al VMUGIT UC 2014 - Virtualizzare con i piedi per terraAndrea Mauro
 
VMUG.IT @ ITway Campus 2014
VMUG.IT @ ITway Campus 2014VMUG.IT @ ITway Campus 2014
VMUG.IT @ ITway Campus 2014Andrea Mauro
 
vBrownBagIT-Session3
vBrownBagIT-Session3vBrownBagIT-Session3
vBrownBagIT-Session3Andrea Mauro
 
#vBrownBag.IT - Session 2
#vBrownBag.IT - Session 2#vBrownBag.IT - Session 2
#vBrownBag.IT - Session 2Andrea Mauro
 
#vBrownBag.IT - Session 1
#vBrownBag.IT - Session 1#vBrownBag.IT - Session 1
#vBrownBag.IT - Session 1Andrea Mauro
 

Mehr von Andrea Mauro (20)

The dark side of stretched cluster
The dark side of stretched clusterThe dark side of stretched cluster
The dark side of stretched cluster
 
Storage user cases
Storage user casesStorage user cases
Storage user cases
 
Business Continuity & Storage
Business Continuity & StorageBusiness Continuity & Storage
Business Continuity & Storage
 
Dell vision and solutions
Dell vision and solutionsDell vision and solutions
Dell vision and solutions
 
Evoluzione dello storage
Evoluzione dello storageEvoluzione dello storage
Evoluzione dello storage
 
Si fa presto a dire SDDC: come, quando e perché?
Si fa presto a dire SDDC: come, quando e perché?Si fa presto a dire SDDC: come, quando e perché?
Si fa presto a dire SDDC: come, quando e perché?
 
VMUG.IT Meeting Napoli - Opening
VMUG.IT Meeting Napoli - OpeningVMUG.IT Meeting Napoli - Opening
VMUG.IT Meeting Napoli - Opening
 
Evento Veeam & Assyrus - 2 Novità di Veeam Backup & Replication v9
Evento Veeam & Assyrus - 2 Novità di Veeam Backup & Replication v9Evento Veeam & Assyrus - 2 Novità di Veeam Backup & Replication v9
Evento Veeam & Assyrus - 2 Novità di Veeam Backup & Replication v9
 
Evento Veeam & Assyrus - 6 Pianificare lato sorgente
Evento Veeam & Assyrus - 6 Pianificare lato sorgenteEvento Veeam & Assyrus - 6 Pianificare lato sorgente
Evento Veeam & Assyrus - 6 Pianificare lato sorgente
 
Kemp LoadMaster & VMware vSphere
Kemp LoadMaster & VMware vSphereKemp LoadMaster & VMware vSphere
Kemp LoadMaster & VMware vSphere
 
Debunking VMware NSX
Debunking VMware NSXDebunking VMware NSX
Debunking VMware NSX
 
APAC #vBrownbag – VMware Mirage overview
APAC #vBrownbag – VMware Mirage overviewAPAC #vBrownbag – VMware Mirage overview
APAC #vBrownbag – VMware Mirage overview
 
Nordic VMUG User Conference 2014 - Design VMware vCenter Server
Nordic VMUG User Conference 2014 - Design VMware vCenter ServerNordic VMUG User Conference 2014 - Design VMware vCenter Server
Nordic VMUG User Conference 2014 - Design VMware vCenter Server
 
VMware vCSA pro and cons
VMware vCSA pro and consVMware vCSA pro and cons
VMware vCSA pro and cons
 
Presentazione al VMUGIT UC 2014 - Virtualizzare con i piedi per terra
Presentazione al VMUGIT UC 2014 - Virtualizzare con i piedi per terraPresentazione al VMUGIT UC 2014 - Virtualizzare con i piedi per terra
Presentazione al VMUGIT UC 2014 - Virtualizzare con i piedi per terra
 
VMUG.IT @ ITway Campus 2014
VMUG.IT @ ITway Campus 2014VMUG.IT @ ITway Campus 2014
VMUG.IT @ ITway Campus 2014
 
vBrownBagIT-VCDX
vBrownBagIT-VCDXvBrownBagIT-VCDX
vBrownBagIT-VCDX
 
vBrownBagIT-Session3
vBrownBagIT-Session3vBrownBagIT-Session3
vBrownBagIT-Session3
 
#vBrownBag.IT - Session 2
#vBrownBag.IT - Session 2#vBrownBag.IT - Session 2
#vBrownBag.IT - Session 2
 
#vBrownBag.IT - Session 1
#vBrownBag.IT - Session 1#vBrownBag.IT - Session 1
#vBrownBag.IT - Session 1
 

Realizzare una rete aziendale con linux e samba

  • 2. CHI SONO • Geek dagli anni 80 • Commodore 64 • Linuxaro dal 1995 • Distribuzione Slackware • Professionista IT • Virtualizzazione, Sistemi Operativi, Storage, … • VMware, Microsoft, Citrix, … • Andrea Mauro • Twitter: @Andrea_Mauro
  • 3. PERCHÉ WINDOWS? • Perché non esiste il mondo perfetto • Client prevalentemente Windows • Realtà eterogenee • Protocolli Microsoft più usati di NIS/NFS • Problema dei client
  • 4. Source: HitsLink (desktop, May 2012), IDC (server, Q1 2012), Gartner (mobile, May 2012), and IDC (March 2012).
  • 5. PERCHÉ ACTIVE DIRECTORY? • Standard «De Facto» per i domini • Utile per diverse compliance • Utile nelle fasi di acquisizioni/fusioni/trasformazioni aziendali • Altri tipi di domini • • • • • Domini NT4 Domini NIS Directory Novell Soluzioni basate su LDAP …
  • 6. ACTIVE DIRECTORY Sistema integrato e distribuito di directory service • rilasciata come beta nel 1996 • rilasciata per la prima volta con Windows 2000 Integrazione di diversi standard • Domain Name Service • sostituisce ai Domini NT i Domini DNS • X.500 • Utilizzato per elencare gli oggetti • Lightweight Directory Access Protocol • Utilizzato la comunicazione • Kerberos V5 • Utilizzato per l’autenticazione • Active Directory Service Interfaces (ADSI)
  • 8. DIRECTORY Repository contenente oggetti: • • • • Utenti, gruppi e/o contatti Stampanti condivise Computer e/o Server Unità disco condivise Organizzato in modo gerarchico all’interno di • Domini (Domain) • Organization Unit (OU) Simile ad un database • informazioni tipicamente usate in lettura Accesso non transazionale Permesse inconsistenze temporanee
  • 9. TERMINOLOGIA AD (1) Dominio • contenitore di oggetti • deve includere almeno un controller di dominio (DC) • può contenere dei computer client e/o stampanti e/o … • Root Domain Struttura (Albero – “Tree”) • raggruppamento di uno o più domini Windows • può essere costituita da un solo dominio più altri sottodomini appartenenti allo stesso spazio dei nomi contiguo Insieme di Strutture (Foresta – “Forest”) • raggruppamento di una o più strutture Organizational Unit (OU) • contenitore di oggetti • delimita il raggio d’azione delle policy • permette la delega amministrativa
  • 10. TERMINOLOGIA AD (2) Sito • rappresenta il raccordo tra la struttura logica di Active Directory e la rete fisica che la ospita • delimita il contesto di replica tra i vari Domain Controller Schema • definisce tutti gli elementi che appartengono all’Active Directory NTDS (database di Active Directory) • directory del nuovo dominio e contiene tutti gli oggetti memorizzati nell'archivio di Active Directory • il percorso predefinito del database è c:windowsntds • il file che contiene il database di directory si chiama Ntds.dit SYSVOL (Volume di sistema condiviso) • struttura di cartelle che esiste in tutti i controller di dominio • memorizza gli script e alcuni oggetti per il dominio • il percorso predefinito del sistema condiviso è: c:windowssysvol
  • 11. TERMINOLOGIA AD (3) Tipo di server • Domain Controller • Domain Member Tipi di DC • Global Catalog • Read Only Domain Controller (RODC) • Ruoli FSMO (Flexible Single Master Operation) • A livello di foresta • Schema master • Domain naming master • A livello di dominio • PDC emulator • RID master • Infrastructure master
  • 12. RISOLUZIONE DEI NOMI Problemi • Conversione nomi in indirizzi IP • Service Discovery Utilizzo del DNS • A record • Risoluzione dei nomi macchina • Sostituisce il vecchio WINS • Service (SRV) record • Discovery dei server per i servizi di AD • LDAP, GC, DC, Kerberos
  • 13. NAMING CONVENTION LDAP • Distinguished name CN=Jeff Smith, CN=Users, DC=contoso, DC=msft • Relative distinguished name Kerberos • User Principal Name (UPN) e suffissi alternativi JeffS@contoso.msft Service Principal Name (SPN) Globally Unique IDentifier (GUID) Universal Naming Convention (UNC)
  • 14. PROTOCOLLO SMB Server Message Block • It is a protocol by which a lot of PC-related machines share files and printers and other information such as lists of available files and printers • Operating systems that support this natively include Windows NT, OS/2, and Linux What is CIFS? • CIFS – Common Internet File System is a protocol that is basically an updated SMB.
  • 15. SMB – DA NT 4.0 A NT 6.2 Versioni esistenti • CIFS • Microsoft Windows NT 4.0 (1996) • SMB 1.0 (o SMB1) • Windows 2000, Windows XP, Windows Server 2003 e Windows Server 2003 R2 • SMB 2.0 (o SMB2) • Windows Vista (SP1 or later) e Windows Server 2008 • SMB 2.1 (or SMB2.1) • Windows 7 e Windows Server 2008 R2 • SMB 3.0 (or SMB3) – Anche noto come SMB 2.2 • Windows 8 e Windows Server 2012 Verificare la versione • PowerShell: Get-SmbConnection
  • 16. COSA È SAMBA? • Samba is a suite of programs which work together to allow clients to access to a server's filespace and printers via the SMB (Server Message Block) and CIFS (Common Internet Filesystem) protocols • Samba is freely available and is an OpenSource project • With Samba, you can share a Linux filesystem with Windows 95, 98, 2000 and NT and vice versa • You can also share printers connected to either Linux or a system with Windows 95, 98, 2000 or NT • Samba enables a Linux or Unix server to function as a file server for client PCs running Windows software • Andrew Tridgell developed the first version of Samba Unix in December 1991 and January 1992
  • 17. SAMBA 4 Version 4.x (12/11/12) brings AD compatible Domain Controller or join to existing DC • Samba Active Directory Domain • LDAP Server • Heimdal Kerberos Authentication • Dynamic DNS • Group policy • Roaming profiles • SMB 2.1 / 3
  • 18. SAMBA 4.1 • October 11, 2013 • Più funzioni e compatibilità • http://www.samba.org/samba/history/samba-4.1.0.html
  • 20. PROBLEMA DELLA DISTRIBUZIONE • Samba3 è ancora il default • Poche includono versioni (vecchie) di Samba4 • (Nessuna) include Samba 4.1 • Sorgenti esterni • Spesso incompleti • Oppure ricompilazione dai sorgenti
  • 21. FUNZIONALITÀ E COMPATIBILITÀ • “Officially" supported in 4.0: • forests: 1, domains: 1, domain controllers: 1* • Trusts: • Samba can be trusted • Samba can not trust (yet) • Replication: • directory replication works • sysvol replication not implemented yet • *multiple Samba DCs possible (sysvol replicated externally) • SMB 3.0 TODO: • multi channel • RDMA • cluster concepts (scale-out/continuous availability)
  • 22. COMPONENTI DI SAMBA (1) • smb.conf: This is the configuration file for smbd • smbd daemon: This provides the file and print services to SMB clients such as Windows NT or other Linux or Unix clients • nmbd daemon: This daemon provides NetBIOS nameserving and browsing support • smbclient: This is an smb client program that implement a simple FTP-like client on a Linux or Unix box • smbmount: This mounting program enables mounting of server directories on a Linux or Unix box • smbstatus: This programs lists the current Samba connections
  • 23. COMPONENTI DI SAMBA (2) • testparm: This utility is used to test the smb.conf configuration file • SWAT: Swat allows a Samba administrator to configure the smb.conf file via a Web browser • smbpasswd: This allows the user to change the password used for their SMB sessions • NTVFS file server: This file server is what was used prior to the beta2 release of Samba 4.0; expect to move smbd to in the longer term • CTDB: Samba4 Clustered Filesystem • samba-tool: Provision of a new AD domain
  • 24. COMPILARE SAMBA git clone git://git.samba.org/samba.git samba-master cd samba-master ./configure make make install
  • 25. I PARAMETRI DI BASE File smb.conf Definizione del Workgroup/Dominio • direttiva workgroup Definizione delle reti autorizzate • SMB su TCP/IP funziona anche su Internet! Definizione dell’autenticazione • direttiva security • nel caso di security=user è importante definire le password degli utenti SAMBA • Microsoft e Unix hanno password cifrate diverse! Definizione delle share
  • 26. SAMBA COME AD DC http://wiki.samba.org/index.php/Samba_AD_DC_HOWTO samba-tool domain provision Scelta del back-end DNS DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) Kerberos e problemi con alcune distro
  • 27. SAMBA COME DC AGGIUNTIVO https://wiki.samba.org/index.php/Samba4/HOWTO/Join_a_do main_as_a_DC samba-tool domain join DC | RODC | MEMBER Migrare i ruoli FSMO samba-tool fsmo seize --role=.... Global Catalog Sysvol Problemi con Windows Server 2012
  • 28. “ESTENDERE” SAMBA Stackable VFS modules • Included Modules • • • • • • audit extd_audit fake_perms recycle netatalk shadow_copy • VFS Modules Available Elsewhere • DatabaseFS • Vscan Per saperne di più • http://www.samba.org/samba/docs/man/Samba-HOWTOCollection/VFS.html
  • 29. FILE SYSTEM PER SAMBA • Problema dei permessi • Unix utilizza i bit dei permessi • Windows le ACL • Filesystem con opzione acl • Nota • If you are using an ext3 or ext4 filesystem on Linux, you should ensure that the filesystem is mounted with the options: • user_xattr,acl,barrier=1 • LVM per il supporto alle snapshot
  • 30. CONSIDERAZIONI FINALI • Interoperabilità • Compatibilità • Non tutte le funzioni sono implementate • Disponibilità • AD è già progettata per alta disponibilità • Con Linux vi sono poi interessanti opzioni • Sicurezza • AD non è una soluzione multi-tenant • Adatta solo in reti locali • http://www.golinuxhub.com/2013/09/iptable-rules-forsamba-4-in-red-hat.html
  • 31. SAMBA EXPERIENCE • The Samba eXPerience is the international Samba conference for users and developers • May 13th - 16th, 2014 • the 13th international Samba conference • Hotel Freizeit In Göttingen, Germany • http://www.sambaxp.org