Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

December 06, 2006 12:00 AM

Defining an AD Object's Default Security Descriptor

Windows IT Pro
InstantDoc ID #94478
Rating: (1)
Q: When I create a new user object in Active Directory (AD), it's automatically assigned a default set of permissions known as the default security descriptor. How can I retrieve the default security descriptor of a particular object class? How can I change it? Are there any changes in how to do this in Windows Server 2003 compared with Windows 2000?

A: For every AD object class (e.g., user, group), Microsoft has defined a default security descriptor that describes the default permissions that are set when an AD object instance of a particular object class is created. Windows 2003 includes some important changes related to the management of the default security descriptor for AD objects. Windows 2003 includes changes to the way you define the content of this security descriptor and the way that you can apply and re-apply to it a particular object instance.

You can set the default security descriptor from the properties of an AD object class. The easiest way to do this is by using the Microsoft Management Console (MMC) Active Directory Schema snap-in. Before you can use this snap-in, you must register the schmmgmt.dll. To do so type the following at a command line:

    

Regsvr32 schmmgmt.dll

For example, to set the default security descriptor for the user object class, open the Active Directory Schema snap-in, locate the user object in the classes container, then open the class properties: To change the default security descriptor, go to the default security tab, as Figure 1 shows. In Win2K, this tab was simply named Security, which was a bit confusing.

You can also use other tools to retrieve the content of the default security descriptor attribute of an AD object class. For example, you can use ldp.exe, ldifde.exe, or the MMC Adsiedit snap-in. In that case, look for the defaultSecurityDescriptor attribute of the AD object class. When using these tools, you must decipher the content of the attribute. The three tools display the content of the attribute in a Security Descriptor Definition Language (SDDL) format.

SDDL is the native format Windows uses to store security descriptor information in AD. The SDDL syntax is explained in greater detail at the following MSDN URL: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauthz/security/security_descriptor_definition_language.asp. An SDDL string can contain four tokens to indicate each of the four main components of a security descriptor: owner (O:), primary group (G:), DACL (D:), and SACL (S:). Here's an example of an SDDL string and its meaning.

    

O:BA G:SY D: (D;;0xf0007;;;BG) (A;;0x3;;;SU)

O:BA Object owner is the built-in administrator (BA); G:SY Primary group is the system (SY); D: Start of the DACL portion; (D;;0xf0007;;;BG) Deny built-in guests (BG) all access; (A;;0x3;;;SU) Allow service accounts read and write permission.

To retrieve all default security descriptors stored in the AD schema, you could also use the following Ldifde command:

    

Ldifde - f ADdefaults.txt -d cn=schema,cn=configuration,dc= -r (objectCategory=classSchema) -l defaultsecuritydescriptor

Related Content:

ARTICLE TOOLS

Comments
  • j
    5 years ago
    Jan 10, 2007

    s

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.