Database
The database is where all the Active Directory Objects are stored.
In Windows Active Directory, the database is stored at
C:\Windows\NTDS\ntds.dit
in the domain controller.
Classes
Schema that defines
ObjectClasses
like:User Class
Group Class
Computer Class
All classes in Active Directory is a subclass of the
Top
Class, that has properties likeObjectClass
andObjectGUID
.ObjectClass
: Lists the classes of an object. Current & ParentObjectGUID
: Object Global Unique Identifier.
classes can be attached to
auxiliary
classes. These are not visible in the ObjectClass Eg: User & Group class are attached to theSecurity-Principal
auxiliary class which defines properties likeSamAccountName
andSID
Properties
Each class have several properties such as:
SID
Name
UserAccountControl
These properties are readable by everyone except few like:
Password
Confidential Properties.
The password property can only be written, not read.
Confidential properties are read by only authorized users. These are marked by setting the 128 flag in
searchFlags
of the property definition.Some properties needs to be validated before being written to the object. This is achieved using
Validated Writes
.
SID
This property is used to identify principals.
DomainSID
: This is used to identify a domain
PrincipalSID
Used to Identify principals. Usually[DomainSID]-[RID]
.
Common SIDs for buildin objects:
Administrator
: S-1-5-21-domainSID-500Domain Admins
: S-1-5-21-domainSID-512Domain Users
: S-1-5-21-domainSID-513Enterprise Admins
: S-1-5-21-domainSID-519
There are some SID for special situations:
Authenticated Users
: S-1-5-11Principal Self
: S-1-5-10
Distinguished Names
Used to identify objects in AD, using paths/hierarchy of the object
Domain Components (DC)
: Identifies the domain. DC forit.doctor.local
would beDC=it,DC=doctor,DC=local
.Organizational Unit (OU)
: Identifies organisational units used to store objects.Common Name (CN)
: Identifies objects or containers.
Partitions
Active Directory database has the following partition
Domain
: Stores domain objects such as users, groups, computer, GPOs.Configuration
: Stores configuration data for the domain, such as well known objects SIDs.Schema
: Stores definition of the classes and objects.DomainDnsZones
: Stores DNS records.ForestDnsZones
: Stores DNS records for the forests.
Querying Database
LDAP
Lightweight Directory Access Protocol
Can retried each and every Active Directory object.
Access all the domain data using ports:
TCP: 380 - LDAP
TCP/SSL: 636 - LDAPS
LDAP can be queried using
ldapsearch
utility
ADWS
Active Directory Web Services.
Protocol to query and manipulate domain objects using SOAP messages.
Compatible with LDAP filterer.
Protocol used by Active Directory RSAT module.
Last updated