SlideShare a Scribd company logo
LAVORARE CON ACTIVE DIRECTORY INDICE Introduzione ad Active Directory 1.1 Il concetto di Directory  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 1.2 Servizio di Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8 1.3 Servizio di Directory vs DB relazionale . . . . . . . . . . . . . . . . . . . . .9 1.4 Windows 2000 Active Directory  . . . . . . . . . . . . . . . . . . . . . . . . .10 Domini di Windows 2000 e AD 2.1 Domini e Workgroup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 2.2 I domini di Windows 2000  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14 2.3 Le Organizational Unit  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16 2.4 Lo schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17 Global catalog, FSMO 3.1 Le partizioni di Active Directory . . . . . . . . . . . . . . . . . . . . . . . . . .23 3.2 Il Global Catalog  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 3.3 Replicazione Single Master vs Multiple Master  . . . . . . . . . . . . . .26 3.4 I ruoli FSMO di Windows 2000  . . . . . . . . . . . . . . . . . . . . . . . . . .27 3.5 Active Directory Tools  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31 Scaricalo gratis su  http://www.punto-informatico.it/ PILibri
LAVORARE CON ACTIVE DIRECTORY LDAP: comunicare con AD 4.1 La gestione delle informazioni . . . . . . . . . . . . . . . . . . . . . . .35 4.2 I Common Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37 4.3 Active Directory Service Interfaces . . . . . . . . . . . . . . . . . . .40 4.4 ADSI . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . .40 4.5 Il binding in pratica . . . . . . . . . . . . . . . . .  . . . . . . . . . . . . . .43 4.6 La stringa ADSPath . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45 4.7 Server-Less binding . . . . . . . . . . . . . . . . .  . . . . . . . . . . . . .46 4.8 L’oggetto RootDSE  . . . . . . . . . . . . . . . . .  . . . . . . . . . . . . .46 4.9 Proprietà dell’oggetto RootDSE . . . . . . . . .  . . . . . . . . . . . .47 4.10 Il binding al Global Catalog  . . . . . . . . . . . . . . . . . . . . . . .52 4.11 Il Binding tramite GUID . . . . . . . . . . . . . . . . . . . . . . . . . . .53 4.12 Well known object binding . . . . . . . . . . . .  . . . . . . . . . . . .55 Manipolare gli oggetti di AD 5.1 L’interfaccia IADs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61 5.2 Il metodo Get . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64 5.3 Attributi multivalori: il metodo GetEx . . . . . . . . . . . . . . . . . . .66 Scaricalo gratis su  http://www.punto-informatico.it/ PILibri
LAVORARE CON ACTIVE DIRECTORY 5.4 Il metodo Put . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . .68 5.5 La Local Property Cache . . . . . . . . . . . . . . . . . . . . . . . .. . . . .69 5.6 Getinfo, GetInfoEx e SetInfo . . . . . . . . . . . . . . . . . . . . . . . .  .70 5.7 Il metodo PutEx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 5.8 I Containers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 5.9 Proprietà di una classe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .80 5.10 Le property Cache Interfaces . . . . . . . . . . . . . . . . . . . . . . . . 83 5.11 Ricerche con ADO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 5.12 Query verso AD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 5.13 Consultare i risultati . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 5.14 ADO LDAP Dialect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .100 5.15 L’oggetto command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 5.16 Alcuni consigli . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .110 Scaricalo gratis su  http://www.punto-informatico.it/ PILibri
LAVORARE CON ACTIVE DIRECTORY INTRODUZIONE AD ACTIVE DIRECTORY   Active Directory, come molti sapranno, è l’implementazione Microsoft di un servizio di directory. Nelle prossime pagine, in particolare, spiegheremo proprio cosa s’intenda per directory e servizi di directory, concentrando la nostra attenzione sugli aspetti essenziali ed utili ad affrontare l’argomento in maniera molto più sicura.  Premessa   Probabilmente il concetto di directory e di servizio di directory è un concetto poco conosciuto o, addirittura per alcuni, del tutto nuovo. Tuttavia, per poter comprendere a fondo cosa sia realmente Active Directory, è necessario avere chiari questi due concetti che risultano essere alla base di tutto il discorso che faremo in seguito.  Scaricalo gratis su  http://www.punto-informatico.it/ PILibri

More Related Content

Viewers also liked

Sicurezza E Policy
Sicurezza E PolicySicurezza E Policy
Sicurezza E Policy
pigghi77
 
Basi di Dati - A2 - Tecnologia dei sistemi informativi
Basi di Dati - A2 - Tecnologia dei sistemi informativiBasi di Dati - A2 - Tecnologia dei sistemi informativi
Basi di Dati - A2 - Tecnologia dei sistemi informativiMajong DevJfu
 
Windows Server 2012 Active Directory Rights Management Services
Windows Server 2012 Active Directory Rights Management ServicesWindows Server 2012 Active Directory Rights Management Services
Windows Server 2012 Active Directory Rights Management Services
Serhad MAKBULOĞLU, MBA
 
Active Directory Domain Services Installation & Configuration - Windows Ser...
Active Directory Domain Services  Installation & Configuration  - Windows Ser...Active Directory Domain Services  Installation & Configuration  - Windows Ser...
Active Directory Domain Services Installation & Configuration - Windows Ser...
Adel Alghamdi
 
Active directory
Active directory Active directory
Active directory deshvikas
 
Forbidden fruits of Active Directory – Cloning, snapshotting, virtualization
Forbidden fruits of Active Directory  –  Cloning, snapshotting, virtualization Forbidden fruits of Active Directory  –  Cloning, snapshotting, virtualization
Forbidden fruits of Active Directory – Cloning, snapshotting, virtualization
Microsoft TechNet - Belgium and Luxembourg
 
Active Directory
Active Directory Active Directory
Active Directory
Sandeep Kapadane
 

Viewers also liked (7)

Sicurezza E Policy
Sicurezza E PolicySicurezza E Policy
Sicurezza E Policy
 
Basi di Dati - A2 - Tecnologia dei sistemi informativi
Basi di Dati - A2 - Tecnologia dei sistemi informativiBasi di Dati - A2 - Tecnologia dei sistemi informativi
Basi di Dati - A2 - Tecnologia dei sistemi informativi
 
Windows Server 2012 Active Directory Rights Management Services
Windows Server 2012 Active Directory Rights Management ServicesWindows Server 2012 Active Directory Rights Management Services
Windows Server 2012 Active Directory Rights Management Services
 
Active Directory Domain Services Installation & Configuration - Windows Ser...
Active Directory Domain Services  Installation & Configuration  - Windows Ser...Active Directory Domain Services  Installation & Configuration  - Windows Ser...
Active Directory Domain Services Installation & Configuration - Windows Ser...
 
Active directory
Active directory Active directory
Active directory
 
Forbidden fruits of Active Directory – Cloning, snapshotting, virtualization
Forbidden fruits of Active Directory  –  Cloning, snapshotting, virtualization Forbidden fruits of Active Directory  –  Cloning, snapshotting, virtualization
Forbidden fruits of Active Directory – Cloning, snapshotting, virtualization
 
Active Directory
Active Directory Active Directory
Active Directory
 

Lavorare con active directory n 105

  • 1. LAVORARE CON ACTIVE DIRECTORY INDICE Introduzione ad Active Directory 1.1 Il concetto di Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 1.2 Servizio di Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8 1.3 Servizio di Directory vs DB relazionale . . . . . . . . . . . . . . . . . . . . .9 1.4 Windows 2000 Active Directory . . . . . . . . . . . . . . . . . . . . . . . . .10 Domini di Windows 2000 e AD 2.1 Domini e Workgroup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 2.2 I domini di Windows 2000 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14 2.3 Le Organizational Unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16 2.4 Lo schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17 Global catalog, FSMO 3.1 Le partizioni di Active Directory . . . . . . . . . . . . . . . . . . . . . . . . . .23 3.2 Il Global Catalog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 3.3 Replicazione Single Master vs Multiple Master . . . . . . . . . . . . . .26 3.4 I ruoli FSMO di Windows 2000 . . . . . . . . . . . . . . . . . . . . . . . . . .27 3.5 Active Directory Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31 Scaricalo gratis su http://www.punto-informatico.it/ PILibri
  • 2. LAVORARE CON ACTIVE DIRECTORY LDAP: comunicare con AD 4.1 La gestione delle informazioni . . . . . . . . . . . . . . . . . . . . . . .35 4.2 I Common Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37 4.3 Active Directory Service Interfaces . . . . . . . . . . . . . . . . . . .40 4.4 ADSI . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . .40 4.5 Il binding in pratica . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43 4.6 La stringa ADSPath . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45 4.7 Server-Less binding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46 4.8 L’oggetto RootDSE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46 4.9 Proprietà dell’oggetto RootDSE . . . . . . . . . . . . . . . . . . . . .47 4.10 Il binding al Global Catalog . . . . . . . . . . . . . . . . . . . . . . .52 4.11 Il Binding tramite GUID . . . . . . . . . . . . . . . . . . . . . . . . . . .53 4.12 Well known object binding . . . . . . . . . . . . . . . . . . . . . . . .55 Manipolare gli oggetti di AD 5.1 L’interfaccia IADs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61 5.2 Il metodo Get . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64 5.3 Attributi multivalori: il metodo GetEx . . . . . . . . . . . . . . . . . . .66 Scaricalo gratis su http://www.punto-informatico.it/ PILibri
  • 3. LAVORARE CON ACTIVE DIRECTORY 5.4 Il metodo Put . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . .68 5.5 La Local Property Cache . . . . . . . . . . . . . . . . . . . . . . . .. . . . .69 5.6 Getinfo, GetInfoEx e SetInfo . . . . . . . . . . . . . . . . . . . . . . . . .70 5.7 Il metodo PutEx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 5.8 I Containers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 5.9 Proprietà di una classe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .80 5.10 Le property Cache Interfaces . . . . . . . . . . . . . . . . . . . . . . . . 83 5.11 Ricerche con ADO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 5.12 Query verso AD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 5.13 Consultare i risultati . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 5.14 ADO LDAP Dialect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .100 5.15 L’oggetto command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 5.16 Alcuni consigli . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .110 Scaricalo gratis su http://www.punto-informatico.it/ PILibri
  • 4. LAVORARE CON ACTIVE DIRECTORY INTRODUZIONE AD ACTIVE DIRECTORY Active Directory, come molti sapranno, è l’implementazione Microsoft di un servizio di directory. Nelle prossime pagine, in particolare, spiegheremo proprio cosa s’intenda per directory e servizi di directory, concentrando la nostra attenzione sugli aspetti essenziali ed utili ad affrontare l’argomento in maniera molto più sicura. Premessa Probabilmente il concetto di directory e di servizio di directory è un concetto poco conosciuto o, addirittura per alcuni, del tutto nuovo. Tuttavia, per poter comprendere a fondo cosa sia realmente Active Directory, è necessario avere chiari questi due concetti che risultano essere alla base di tutto il discorso che faremo in seguito. Scaricalo gratis su http://www.punto-informatico.it/ PILibri