SlideShare a Scribd company logo
1 of 27
Active Directory and Group Policy
Blackhat Amsterdam
Raymond Forbes
Overview
 Active Directory Basics
– Structure
– Components
– Objects
– Roles
– Schema
– Sites
– Interop
Overview
 Group Policy
Active Directory
 What is Active Directory?
– LDAP Directory Service
– Works with and requires DNS
– Incorporated into Windows 2000 and XP
– Centrally Managed
– Extensible
– Interoperable
Active Directory
 Building blocks of Active Directory
– Objects
 Users
 Machines
– Sites
– Domains
– Trees
– Forests
– Trusts
 Transitive
 Non-Transitive
 Cross Link
Active Directory
 Building blocks cont’d
– Domain Controllers
– Groups
 Global Groups
 Universal Groups
 Domain Local Groups
Active Directory
Accounting
Marketing
Organizational Unit
Blackhat.com
Active Directory
Two way trust
Two way trust
Transitive Trust
Blackhat.com
east
west
Active Directory
Defcon.org Blackhat.com
One way trust
Cross link
Active Directory
 Sites
– Collection of IP addresses
– Information is stored by all domain controllers in
the forest
– Intra-site replication is instant
– Inter-site replication can be scheduled
– Used at logon to find closest Domain Controller
– Bridgehead Server
 Maintains link between sites.
Active Directory
 Sites cont’d
– Subnets
 Does not necessarily translate from actual subnets
– Knowledge Consistency Checker
 Automatically defines the replication topology and
bridgehead servers.
 These can be set manually
Active Directory
 FSMO Rules (Flexible Single-Master Operation)
– Domain Naming Master
 Domain specific tasks (addition, removal of domains)
– Infrastructure Master
 Maintains cross directory links
– PDC Emulator
 Support for NT4 domains. First server that takes password
changes
– Relative ID (RID) Master
 Makes sure all SIDs are unique. All object moves happen
through here.
– Schema Master
Active Directory
 Global Catalog
– Read Only
– Partial database. Subset of information in the
schema
– Used for fast searching and logons
 All universal group information is stored in the Global
Catalog.
Active Directory
 Schema
– Holds what type of information can be stored in
the Active Directory
– Each object is an instance of a class
– Attributes are defined for classes
 Optional or mandatory
– Tree like structure
– Classes are inherited
Active Directory
 Schema cont’d
– Schema Classes
 Abstract Classes
– Not actually used to make objects.
– Used to provide structure to the schema
 Structural Classes
– This is used to make directory objects
 Auxiliary Classes
– Provides add on information that can be applied to other
classes
Active Directory
 Schema Cont’d
– Schema is cached in memory
– Only one Schema for the entire forest
– Cannot actually delete anything from the Schema
after it has been extended.
 The only option you have is to deactivate any non used
classes
Active Directory
 DNS
– AD puts in a number of SRV records into your
DNS.
 _ldap._tcp. 600 IN SRV 0 100 389 server1
 _ldap._tcp.pdc IN SRV 0 100 389 server 1
 _kerberos._tcp.dc._msdcs IN SRV 0 100 88 server1
Active Directory
 Replication
– Multi Mastered
– Tracks meta-data
– Different based on whether intra-site or inter-site
 Intra-site is simple, and not very configurable
 Inter-site can use RPC or SMTP
– Not all data is replicated
 For instance, user last logon time
– Replicates attributes, not entire objects
Active Directory
 Replication cont’d
– Meta-Data
 Update Sequence Number (USN)
– Defines latest update on a paticular Domain Controller
 Property Version Number
– Version of attribute
 Attribute Timestamp
 IP address of Domain Controller
– Server stores the USN of each DC seperately
 Each USN is stored by the server’s GUID
Active Directory
 Replication Cont’d
– When a change is made on the Domain controller
the USN is changed. The other DCs are notified.
– The DC asks for all the changes post the USN it
has recorded.
– DC applies changes and stores new USN for that
DC.
Active Directory
 Replication cont’d
– Conflict Resolution
 A conflict is detected by the DC comparing the PVN on
the local store with the one in the change.
 If a conflict is detected it is resolved with these values
– Highest PVN
– Timestamp
– IP address
Active Directory
 Inter-site replication
– By default, this is done by a schedule
– Very configurable. Can define what servers replicate to
what servers.
– Can use RPC or SMTP
 SMTP doesn’t support file replication (e.g. logon scripts)
– Compressed by up to 15%
– You CAN turn on inter-site notification
 This has the effect of making inter-site communication just like
intra-site.
Active Directory
 Password Replication
– Password changes can happen on any DC
– When a password is changed on a DC it pushes
that change immediately to the PDC Emulator
– Before a server actually rejects a bad password, it
contacts the PDC Emulator and verifies it there
– This makes sure that a password change does
not deny access
Active Directory
 Other replication issues
– Multiple Values
 Some attributes have multiple values (i.e. Groups)
– This can be a problem as it could lead to two valid changes but
both with the same PVN
– Only the latest change will be kept. The previous ones will be
dropped
 Inherited permissions
– Inherited permissions are actually stored on each object
– However, the DC only replicates the inheritable permission and
let’s the receiving server actually do the work.
Active Directory
 Other Replication Issues cont’d
– Tombstone
 When an object is deleted it isn’t removed at first
 This would cause the other DCs to not know the object should
be deleted.
 Instead, when an object is deleted it has a “tombstone” placed
on it.
 This object is moved to a hidden Deleted Objects container.
This is hidden even from ADSI
 The tombstone is replicated to all controllers
 Garbage collection goes through and removes tombstoned
objects that have expired
Active Directory
 Other Replication Issues cont’d
– LostAndFound
 The LostAndFound container holds objects that tried to
replicate but could not for some reason
 Suppose somebody adds a user to an OU on one server
but then deletes the OU on another server
Active Directory
 Other Replication Issues cont’d
– Urgent Replication
 Standard replication happens every 5 minutes intra-site and
upon schedule for inter-site
 Certain circumstances demand immediate replication
 RID Master change
– If another server has been given the role as RID Master
 LSA Secret Change
 Account lock-outs
 Urgent Replication doesn’t happen inter-site unless notification
is turned on.

More Related Content

What's hot

Zero Downtime Schema Changes - Galera Cluster - Best Practices
Zero Downtime Schema Changes - Galera Cluster - Best PracticesZero Downtime Schema Changes - Galera Cluster - Best Practices
Zero Downtime Schema Changes - Galera Cluster - Best PracticesSeveralnines
 
How oracle 12c flexes its muscles against oracle 11g r2 final
How oracle 12c flexes its muscles against oracle 11g r2 finalHow oracle 12c flexes its muscles against oracle 11g r2 final
How oracle 12c flexes its muscles against oracle 11g r2 finalAjith Narayanan
 
OpenStack Keystone with LDAP
OpenStack Keystone with LDAPOpenStack Keystone with LDAP
OpenStack Keystone with LDAPJesse Pretorius
 
Oracle Real Application Cluster ( RAC )
Oracle Real Application Cluster ( RAC )Oracle Real Application Cluster ( RAC )
Oracle Real Application Cluster ( RAC )varasteh65
 
PDB Provisioning with Oracle Multitenant Self Service Application
PDB Provisioning with Oracle Multitenant Self Service ApplicationPDB Provisioning with Oracle Multitenant Self Service Application
PDB Provisioning with Oracle Multitenant Self Service ApplicationLeighton Nelson
 
OpenStack London Meetup, 18 Nov 2015
OpenStack London Meetup, 18 Nov 2015OpenStack London Meetup, 18 Nov 2015
OpenStack London Meetup, 18 Nov 2015Jesse Pretorius
 
Making MySQL highly available using Oracle Grid Infrastructure
Making MySQL highly available using Oracle Grid InfrastructureMaking MySQL highly available using Oracle Grid Infrastructure
Making MySQL highly available using Oracle Grid InfrastructureIlmar Kerm
 
Managing Objects and Data in Apache Cassandra
Managing Objects and Data in Apache CassandraManaging Objects and Data in Apache Cassandra
Managing Objects and Data in Apache CassandraDataStax
 
Simplifying EBS 12.2 ADOP - Collaborate 2019
Simplifying EBS 12.2 ADOP - Collaborate 2019   Simplifying EBS 12.2 ADOP - Collaborate 2019
Simplifying EBS 12.2 ADOP - Collaborate 2019 Alfredo Krieg
 
Collaborate 2019 - How to Understand an AWR Report
Collaborate 2019 - How to Understand an AWR ReportCollaborate 2019 - How to Understand an AWR Report
Collaborate 2019 - How to Understand an AWR ReportAlfredo Krieg
 
Python SQite3 database Tutorial | SQlite Database
Python SQite3 database Tutorial | SQlite DatabasePython SQite3 database Tutorial | SQlite Database
Python SQite3 database Tutorial | SQlite DatabaseElangovanTechNotesET
 
Oracle flex asm & flex cluster
Oracle flex asm & flex clusterOracle flex asm & flex cluster
Oracle flex asm & flex clusterGhanshyam Khetan
 
Oracle database 12.2 new features
Oracle database 12.2 new featuresOracle database 12.2 new features
Oracle database 12.2 new featuresAlfredo Krieg
 
Understand oracle real application cluster
Understand oracle real application clusterUnderstand oracle real application cluster
Understand oracle real application clusterSatishbabu Gunukula
 
Running MariaDB in multiple data centers
Running MariaDB in multiple data centersRunning MariaDB in multiple data centers
Running MariaDB in multiple data centersMariaDB plc
 

What's hot (20)

Zero Downtime Schema Changes - Galera Cluster - Best Practices
Zero Downtime Schema Changes - Galera Cluster - Best PracticesZero Downtime Schema Changes - Galera Cluster - Best Practices
Zero Downtime Schema Changes - Galera Cluster - Best Practices
 
How oracle 12c flexes its muscles against oracle 11g r2 final
How oracle 12c flexes its muscles against oracle 11g r2 finalHow oracle 12c flexes its muscles against oracle 11g r2 final
How oracle 12c flexes its muscles against oracle 11g r2 final
 
OpenStack Keystone with LDAP
OpenStack Keystone with LDAPOpenStack Keystone with LDAP
OpenStack Keystone with LDAP
 
Oracle Real Application Cluster ( RAC )
Oracle Real Application Cluster ( RAC )Oracle Real Application Cluster ( RAC )
Oracle Real Application Cluster ( RAC )
 
PDB Provisioning with Oracle Multitenant Self Service Application
PDB Provisioning with Oracle Multitenant Self Service ApplicationPDB Provisioning with Oracle Multitenant Self Service Application
PDB Provisioning with Oracle Multitenant Self Service Application
 
OpenStack London Meetup, 18 Nov 2015
OpenStack London Meetup, 18 Nov 2015OpenStack London Meetup, 18 Nov 2015
OpenStack London Meetup, 18 Nov 2015
 
Rapid Home Provisioning
Rapid Home ProvisioningRapid Home Provisioning
Rapid Home Provisioning
 
1.0 vs2.0
1.0 vs2.01.0 vs2.0
1.0 vs2.0
 
Convert single instance to RAC
Convert single instance to RACConvert single instance to RAC
Convert single instance to RAC
 
Making MySQL highly available using Oracle Grid Infrastructure
Making MySQL highly available using Oracle Grid InfrastructureMaking MySQL highly available using Oracle Grid Infrastructure
Making MySQL highly available using Oracle Grid Infrastructure
 
Managing Objects and Data in Apache Cassandra
Managing Objects and Data in Apache CassandraManaging Objects and Data in Apache Cassandra
Managing Objects and Data in Apache Cassandra
 
Simplifying EBS 12.2 ADOP - Collaborate 2019
Simplifying EBS 12.2 ADOP - Collaborate 2019   Simplifying EBS 12.2 ADOP - Collaborate 2019
Simplifying EBS 12.2 ADOP - Collaborate 2019
 
Collaborate 2019 - How to Understand an AWR Report
Collaborate 2019 - How to Understand an AWR ReportCollaborate 2019 - How to Understand an AWR Report
Collaborate 2019 - How to Understand an AWR Report
 
Rac questions
Rac questionsRac questions
Rac questions
 
Python SQite3 database Tutorial | SQlite Database
Python SQite3 database Tutorial | SQlite DatabasePython SQite3 database Tutorial | SQlite Database
Python SQite3 database Tutorial | SQlite Database
 
Oracle flex asm & flex cluster
Oracle flex asm & flex clusterOracle flex asm & flex cluster
Oracle flex asm & flex cluster
 
Oracle database 12.2 new features
Oracle database 12.2 new featuresOracle database 12.2 new features
Oracle database 12.2 new features
 
Understand oracle real application cluster
Understand oracle real application clusterUnderstand oracle real application cluster
Understand oracle real application cluster
 
Running MariaDB in multiple data centers
Running MariaDB in multiple data centersRunning MariaDB in multiple data centers
Running MariaDB in multiple data centers
 
SQL Server Clustering Part1
SQL Server Clustering Part1SQL Server Clustering Part1
SQL Server Clustering Part1
 

Similar to Bh europe-01-forbes

What is active directory
What is active directoryWhat is active directory
What is active directoryrajasekar1712
 
Oracle Instance Architecture.ppt
Oracle Instance Architecture.pptOracle Instance Architecture.ppt
Oracle Instance Architecture.pptHODCA1
 
Ads Overview En
Ads Overview EnAds Overview En
Ads Overview Enraj240969
 
Ads Overview En
Ads Overview EnAds Overview En
Ads Overview Enraj240969
 
HDFS_architecture.ppt
HDFS_architecture.pptHDFS_architecture.ppt
HDFS_architecture.pptvijayapraba1
 
Solving Hadoop Replication Challenges with an Active-Active Paxos Algorithm
Solving Hadoop Replication Challenges with an Active-Active Paxos AlgorithmSolving Hadoop Replication Challenges with an Active-Active Paxos Algorithm
Solving Hadoop Replication Challenges with an Active-Active Paxos AlgorithmDataWorks Summit
 
Migrating to XtraDB Cluster
Migrating to XtraDB ClusterMigrating to XtraDB Cluster
Migrating to XtraDB Clusterpercona2013
 
Active directory interview_questions
Active directory interview_questionsActive directory interview_questions
Active directory interview_questionssubhashmr
 
Active directory interview_questions
Active directory interview_questionsActive directory interview_questions
Active directory interview_questionsUmesh Sawant
 
Active Directory Ii
Active Directory   IiActive Directory   Ii
Active Directory Iideshvikas
 
Active directory ii
Active directory   iiActive directory   ii
Active directory iideshvikas
 
NonStop SQL/MX DBS Explained
NonStop SQL/MX DBS ExplainedNonStop SQL/MX DBS Explained
NonStop SQL/MX DBS ExplainedFrans Jongma
 
Glusterfs session #9 index xlator
Glusterfs session #9   index xlatorGlusterfs session #9   index xlator
Glusterfs session #9 index xlatorPranith Karampuri
 
AWS Cloud SAA Relational Database presentation
AWS Cloud SAA Relational Database presentationAWS Cloud SAA Relational Database presentation
AWS Cloud SAA Relational Database presentationTATA LILIAN SHULIKA
 

Similar to Bh europe-01-forbes (20)

DC
DCDC
DC
 
What is active directory
What is active directoryWhat is active directory
What is active directory
 
Oracle Instance Architecture.ppt
Oracle Instance Architecture.pptOracle Instance Architecture.ppt
Oracle Instance Architecture.ppt
 
Ads Overview En
Ads Overview EnAds Overview En
Ads Overview En
 
Ads Overview En
Ads Overview EnAds Overview En
Ads Overview En
 
HDFS_architecture.ppt
HDFS_architecture.pptHDFS_architecture.ppt
HDFS_architecture.ppt
 
Solving Hadoop Replication Challenges with an Active-Active Paxos Algorithm
Solving Hadoop Replication Challenges with an Active-Active Paxos AlgorithmSolving Hadoop Replication Challenges with an Active-Active Paxos Algorithm
Solving Hadoop Replication Challenges with an Active-Active Paxos Algorithm
 
Migrating to XtraDB Cluster
Migrating to XtraDB ClusterMigrating to XtraDB Cluster
Migrating to XtraDB Cluster
 
Sql Server
Sql ServerSql Server
Sql Server
 
Active directory interview_questions
Active directory interview_questionsActive directory interview_questions
Active directory interview_questions
 
Active directory interview_questions
Active directory interview_questionsActive directory interview_questions
Active directory interview_questions
 
Active Directory
Active DirectoryActive Directory
Active Directory
 
final_rac
final_racfinal_rac
final_rac
 
Active Directory Ii
Active Directory   IiActive Directory   Ii
Active Directory Ii
 
Active directory ii
Active directory   iiActive directory   ii
Active directory ii
 
NonStop SQL/MX DBS Explained
NonStop SQL/MX DBS ExplainedNonStop SQL/MX DBS Explained
NonStop SQL/MX DBS Explained
 
Glusterfs session #9 index xlator
Glusterfs session #9   index xlatorGlusterfs session #9   index xlator
Glusterfs session #9 index xlator
 
AWS Cloud SAA Relational Database presentation
AWS Cloud SAA Relational Database presentationAWS Cloud SAA Relational Database presentation
AWS Cloud SAA Relational Database presentation
 
les12.pdf
les12.pdfles12.pdf
les12.pdf
 
Hadoop admin
Hadoop adminHadoop admin
Hadoop admin
 

Recently uploaded

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 

Recently uploaded (20)

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 

Bh europe-01-forbes

  • 1. Active Directory and Group Policy Blackhat Amsterdam Raymond Forbes
  • 2. Overview  Active Directory Basics – Structure – Components – Objects – Roles – Schema – Sites – Interop
  • 4. Active Directory  What is Active Directory? – LDAP Directory Service – Works with and requires DNS – Incorporated into Windows 2000 and XP – Centrally Managed – Extensible – Interoperable
  • 5. Active Directory  Building blocks of Active Directory – Objects  Users  Machines – Sites – Domains – Trees – Forests – Trusts  Transitive  Non-Transitive  Cross Link
  • 6. Active Directory  Building blocks cont’d – Domain Controllers – Groups  Global Groups  Universal Groups  Domain Local Groups
  • 8. Active Directory Two way trust Two way trust Transitive Trust Blackhat.com east west
  • 10. Active Directory  Sites – Collection of IP addresses – Information is stored by all domain controllers in the forest – Intra-site replication is instant – Inter-site replication can be scheduled – Used at logon to find closest Domain Controller – Bridgehead Server  Maintains link between sites.
  • 11. Active Directory  Sites cont’d – Subnets  Does not necessarily translate from actual subnets – Knowledge Consistency Checker  Automatically defines the replication topology and bridgehead servers.  These can be set manually
  • 12. Active Directory  FSMO Rules (Flexible Single-Master Operation) – Domain Naming Master  Domain specific tasks (addition, removal of domains) – Infrastructure Master  Maintains cross directory links – PDC Emulator  Support for NT4 domains. First server that takes password changes – Relative ID (RID) Master  Makes sure all SIDs are unique. All object moves happen through here. – Schema Master
  • 13. Active Directory  Global Catalog – Read Only – Partial database. Subset of information in the schema – Used for fast searching and logons  All universal group information is stored in the Global Catalog.
  • 14. Active Directory  Schema – Holds what type of information can be stored in the Active Directory – Each object is an instance of a class – Attributes are defined for classes  Optional or mandatory – Tree like structure – Classes are inherited
  • 15. Active Directory  Schema cont’d – Schema Classes  Abstract Classes – Not actually used to make objects. – Used to provide structure to the schema  Structural Classes – This is used to make directory objects  Auxiliary Classes – Provides add on information that can be applied to other classes
  • 16. Active Directory  Schema Cont’d – Schema is cached in memory – Only one Schema for the entire forest – Cannot actually delete anything from the Schema after it has been extended.  The only option you have is to deactivate any non used classes
  • 17. Active Directory  DNS – AD puts in a number of SRV records into your DNS.  _ldap._tcp. 600 IN SRV 0 100 389 server1  _ldap._tcp.pdc IN SRV 0 100 389 server 1  _kerberos._tcp.dc._msdcs IN SRV 0 100 88 server1
  • 18. Active Directory  Replication – Multi Mastered – Tracks meta-data – Different based on whether intra-site or inter-site  Intra-site is simple, and not very configurable  Inter-site can use RPC or SMTP – Not all data is replicated  For instance, user last logon time – Replicates attributes, not entire objects
  • 19. Active Directory  Replication cont’d – Meta-Data  Update Sequence Number (USN) – Defines latest update on a paticular Domain Controller  Property Version Number – Version of attribute  Attribute Timestamp  IP address of Domain Controller – Server stores the USN of each DC seperately  Each USN is stored by the server’s GUID
  • 20. Active Directory  Replication Cont’d – When a change is made on the Domain controller the USN is changed. The other DCs are notified. – The DC asks for all the changes post the USN it has recorded. – DC applies changes and stores new USN for that DC.
  • 21. Active Directory  Replication cont’d – Conflict Resolution  A conflict is detected by the DC comparing the PVN on the local store with the one in the change.  If a conflict is detected it is resolved with these values – Highest PVN – Timestamp – IP address
  • 22. Active Directory  Inter-site replication – By default, this is done by a schedule – Very configurable. Can define what servers replicate to what servers. – Can use RPC or SMTP  SMTP doesn’t support file replication (e.g. logon scripts) – Compressed by up to 15% – You CAN turn on inter-site notification  This has the effect of making inter-site communication just like intra-site.
  • 23. Active Directory  Password Replication – Password changes can happen on any DC – When a password is changed on a DC it pushes that change immediately to the PDC Emulator – Before a server actually rejects a bad password, it contacts the PDC Emulator and verifies it there – This makes sure that a password change does not deny access
  • 24. Active Directory  Other replication issues – Multiple Values  Some attributes have multiple values (i.e. Groups) – This can be a problem as it could lead to two valid changes but both with the same PVN – Only the latest change will be kept. The previous ones will be dropped  Inherited permissions – Inherited permissions are actually stored on each object – However, the DC only replicates the inheritable permission and let’s the receiving server actually do the work.
  • 25. Active Directory  Other Replication Issues cont’d – Tombstone  When an object is deleted it isn’t removed at first  This would cause the other DCs to not know the object should be deleted.  Instead, when an object is deleted it has a “tombstone” placed on it.  This object is moved to a hidden Deleted Objects container. This is hidden even from ADSI  The tombstone is replicated to all controllers  Garbage collection goes through and removes tombstoned objects that have expired
  • 26. Active Directory  Other Replication Issues cont’d – LostAndFound  The LostAndFound container holds objects that tried to replicate but could not for some reason  Suppose somebody adds a user to an OU on one server but then deletes the OU on another server
  • 27. Active Directory  Other Replication Issues cont’d – Urgent Replication  Standard replication happens every 5 minutes intra-site and upon schedule for inter-site  Certain circumstances demand immediate replication  RID Master change – If another server has been given the role as RID Master  LSA Secret Change  Account lock-outs  Urgent Replication doesn’t happen inter-site unless notification is turned on.