[Previous] [Next]
Lesson 4: Controlling Access to Active Directory Objects
Every object in Active Directory directory services has a security
descriptor that defines who has the permissions to gain access to the
object and what type of access is allowed. Windows 2000 uses these security descriptors to
control access to objects. To reduce administrative overhead, you can
group objects with identical security requirements into one OU. You can
then assign access permissions to the entire OU and all of the objects
within it.
Introducing Active Directory Permissions
Active Directory permissions provide security for resources by
allowing you to control who can gain access to individual objects or
object attributes, and the type of access that you will allow. You can
use permissions to assign administrative privileges—for an OU, a
hierarchy of OUs, or a single object—to a specific user or
group.
An administrator or the object owner must assign permissions to the
object before users can gain access to the object. Windows 2000 stores a list
of user access permissions called the discretionary access control list (DACL),
for every object in Active Directory directory services. The DACL for an
object lists who can access the object and the specific actions that each user
can perform on the object.
The object type determines which permissions you can select.
Permissions vary for different object types. For example, you can
assign the Reset Password permission for a user object, but not for a
printer object.
Effective Permissions
A user can be a member of multiple groups, each with different
permissions that provide different levels of access to objects. When
you assign a permission to a user for access to an object, and that
user is a member of a group to which you assigned a different
permission, the user's effective permissions are the combination of
the user and the group permissions. For example, if a user has the Read
permission and is a member of a group with the Write permission, the
user's effective permissions are Read and Write.
Allow and Deny Permissions
You can allow or deny permissions. Denied permissions take
precedence over any permissions that you otherwise allow for user
accounts and groups. If you deny permission for a user to gain access
to an object, the user will not have that permission, even if you allow
the permission for a group of which the user is a member. You should
deny permissions only when it is necessary to do so for a specific user
who is a member of a group with allowed permissions.
NOTE
Always ensure that all objects have at least one
user with the Full Control permission. Failure to do so can result in
some objects being inaccessible, even to an administrator when he or
she uses the Active Directory Users and Computers tool for
administrations.
Standard and Special Permissions
You can set standard and special permissions on objects. Standard
permissions are the most frequently assigned permissions and are
composed of special permissions. Special permissions provide you with a
finer degree of control for assigning access to objects.
For example, the standard Write permission is composed of the
special permissions Write All Properties, Add/Remove Self As Member,
and Read Permissions.
Table 5.4 lists standard object permissions that are available for
most objects (some object types have additional permissions that are
available) and the type of access that each permission allows.
Table 5.4 Standard Object Permissions
| Object permission |
Allows the user to |
| Full Control |
Change permissions and take ownership, plus perform the tasks that are allowed by all other standard permissions. |
| Read |
View objects and object attributes, the object owner, and the Active Directory permissions. |
| Write |
Change object attributes. |
| Create All Child Objects |
Add any type of child object to an OU. |
| Delete All Child Objects |
Remove any type of object from an OU. |
Using Permission Inheritance
Permission inheritance in Active Directory directory services
minimizes the number of times that you need to assign permissions for
objects.
Applying Permissions to Child Objects
When you assign permissions, you can select to apply the permissions
to subobjects (child objects), which propagates the permissions to all
of the subobjects for a given object. To indicate that permissions are
inherited, the check boxes for inherited permissions are unavailable in
the user interface.
For example, you can assign the Full Control permission to a group
for an OU that contains printers, and then apply this permission for
all subobjects. The result is that all group members can administer all printers in the
OU.
Preventing Permission Inheritance
You can prevent permission inheritance so that a child object does
not inherit permissions from its parent object. When you prevent
inheritance, only the permissions that you explicitly assign to the
object will apply.
Use the Security tab in the Properties dialog box to prevent
permission inheritance.
When you prevent permission inheritance, Windows 2000 allows you to
do the following:
- Copy previously inherited permissions to the object.
The new explicit permissions for the object are a copy of the permissions that it
previously inherited from its parent object. Then, according to your needs,
you can make any necessary changes to the permissions.
- Remove previously inherited permissions from the
object. By removing these permissions, you will eliminate all
permissions for the object. Then, according to your needs, you can assign any new permission for the
object that you want.
Assigning Active Directory Permissions
Windows 2000 determines a user's authorization to use an object
by checking the DACL for permissions granted to the user on that
object. To add or change permissions for an object, you would do the
following:
- In the Active Directory Users And Computers window, on the View
menu, click Advanced Features.
- Right-click the object, click Properties, and then in the
Properties dialog box, click the Security tab.
- Perform either or both of the following steps:
- To add a new permission, click Add, click the user account or
group to which you want to assign permissions, click Add, and then
click OK.
- To change an existing permission, click the user account or
group.
- In the Permissions box, select the Allow check box or the Deny
check box for each permission that you want to add or remove.
Standard permissions are sufficient for most administrative tasks.
However, you might need to view the special permissions that constitute
a standard permission. To view special permissions, you would do the
following:
- On the Security tab in the Properties dialog box for the object,
click the Advanced button.
- In the Access Control Settings dialog box, on the Permissions
tab, click the entry that you want to view, and then click
View/Edit.
- To view the permissions for specific attributes, click the
Properties tab.
NOTE
Avoid assigning permissions for specific
attributes of objects because this can complicate system
administration—errors can result, such as objects in Active Directory directory services not being visible, which could
prevent users from completing tasks.
To modify inheritance of the permission, you would do the
following:
- On the Security tab in the Properties dialog box for the object,
click the Advanced button.
- In the Access Control Settings dialog box, on the Permissions
tab, click the entry that you want to view, and then click
View/Edit.
- In the Apply Onto box, select the desired option from the
menu.
Changing Object Ownership
Every object has an owner. The person who creates the object
automatically becomes the owner. The owner controls the permissions assigned for an
object and to whom permissions are assigned.
As an administrator, you can take ownership of any object and then
change the permissions for the object. If a member of the
Administrators group creates an object or takes ownership, the
Administrators group is the owner, rather than the individual member of
the group.
Ownership for an object changes when either of the following
occurs:
- The current owner, or any user with the Full Control
permission, grants the Modify Owner permission to another user who
takes ownership of the object.
For example, if an employee who owns an object leaves the company,
you can let another user take ownership of that object, thereby
reassigning responsibility for the object.
- A member of the Administrators group takes ownership of any
object.
NOTE
Although members of the Administrators group can
take ownership of any object, members of the Administrators group
cannot transfer ownership. This restriction assures accountability.
To take ownership of an object, you would do the following:
- In the Properties dialog box for an object, on the Security tab,
click the Advanced button.
- Click the Owner tab, and then click your user account. (If you
are a member of the Administrators group, you can also click
Administrators. This will make the Administrators group the
owner.)
- Click OK, and then click OK again to take ownership.
Delegating Administrative Control of Active Directory Objects
The structure of Active Directory directory services lends itself to
more efficient management through the delegation of administrative
control over objects. You can use the Delegation Of Control wizard and
customized Microsoft Management Consoles to give specific users the
rights to perform various administrative and management tasks, thus
decreasing your workload and reflecting your business's hierarchy
by placing the responsibility for network resources on the appropriate
individuals.
You delegate administrative control of objects by assigning tasks at
the OU level, thus allowing users or groups of users to administer the
following types of control:
- Assigning to a user the permissions to create or modify
objects in a specific OU.
- Assigning to a user the permissions to modify specific
permissions for the attributes of an object, such as assigning the
permission to reset passwords on a user account.
Because tracking tasks (or permission to perform specific tasks) at
the OU level is easier than tracking tasks on objects or object
attributes, the most common method of delegating administrative control
is to assign tasks (or permission to perform specific tasks) at the OU
level. Assigning tasks at the OU level allows you to delegate
administrative control for the objects that are contained within the
OU.
For example, you can delegate administrative control for an OU to
the appropriate manager. By delegating control of the OU to the
manager, you can decentralize administrative operations and issues.
This reduces your administration time and costs by distributing
administrative control closer to its point of service.
You can use the Delegation Of Control wizard to assign permissions
at the OU level. For more specialized permissions, you must manually
assign permissions at the object level.
Using the Active Directory Users and Computers tool, right-click the
OU for which you want to delegate control, and then click Delegate
Control to start the wizard.
Table 5.5 describes the Delegation Of Control wizard options.
Table 5.5 Delegation Of Control Wizard Options
| Option |
Allows the user to set |
| Users Or Groups |
The user accounts or groups to which you want to delegate control |
| Tasks To Delegate |
The tasks to assign to the object or objects. |
Creating Customized Administrative Tools
One of the new features in Windows 2000 is the ability to create
custom administrative tools using the Microsoft Management Console
(MMC). Once you have delegated administrative control of a portion of
Active Directory directory services, you can create your own unique set
of administrative tools and distribute them to the delegated
administrators. Saved as .MSC files, these custom administrative tools
can be sent by e-mail, stored in a shared folder, or posted on the Web.
They can also be assigned to users, groups, or computers with Group Policy settings.
Creating Customized Consoles
You can create custom MMC consoles to meet your administrative
requirements by combining snap-ins that you use to perform common
administrative tasks into a single console. To open MMC with an empty
console, click the Start button, click Run, type mmc in the Open
box, and then click OK. Click New on the MMC Console menu, add the
desired snap-ins and extensions, name the console, and then save
it.
Table 5.6 describes when to use the different commands on the MMC
Console menu.
Table 5.6 MMC Console Menu Commands
| Use this command |
When |
| New |
You want to create a new custom MMC console. |
| Open |
You want to use a saved MMC console. |
| Save or Save As |
You want to use the MMC console later. |
| Add/Remove Snap-In |
You want to add or remove one or more snap-ins
and their associated extensions to or from an MMC console. |
| Options |
You want to configure the console mode and create a custom MMC console. |
Saving a Console in Author Mode
When you create an MMC console, you can set the mode in which it
will open. To set the mode, on the Console menu, select Options. You
can select Author Mode or User Mode.
When you save an MMC console in Author mode, you enable full access
to all MMC functionality, which includes modifying the MMC console. By
default, all new MMC consoles are saved in Author mode. You can use
Author mode to do the following:
- Add or remove snap-ins
- Create new windows
- View all portions of the console tree
- Save MMC consoles
Saving a Console in User Mode
If you plan to distribute an MMC console to other administrators and
you do not want them to be able to modify the MMC console, save the MMC
console in User mode. When you set an MMC console to User mode, users
cannot add snap-ins to, remove snap-ins from, or save the MMC console.
There are three types of User modes, which allow different levels of
access and functionality.
Table 5.7 describes the three types of User modes.
Table 5.7 User Mode Types
| Use this |
When |
| Full Access |
You want to allow users to navigate between snap-ins,
open new windows, and gain access to all portions of the console tree. |
| Limited Access, Multiple Window |
You do not want to allow users to open new windows
or gain access to a portion of the console tree. You do want to
allow users to view multiple windows in the console. |
| Limited Access, Single Window |
You do not want to allow users to open new windows
or gain access to a portion of the console tree. You want to
allow users to view only one window in the console. |

Practice: Delegating Control
In this practice, you will review the default security settings on
Active Directory components. Then you will delegate to a user control
over objects in an OU.
Exercise 1: Reviewing Active Directory Permissions
In this exercise, you will review the default security settings on
Active Directory components.
NOTE
Do not change any security settings in Active
Directory directory services unless you are specifically instructed to
do so in this exercise. Making changes could result in losing access to
portions of Active Directory directory services.
To create objects in Active Directory directory
services
- Log on as Administrator.
- Open the Active Directory Users and Computers tool.
- Expand domain.com
- Right-click domain.com, point to New, and then click
Organizational Unit.
- In the Name box, type Security, and then click OK.
- In the Security OU, create a user account with the first name
Assistant and user logon name Assistant@domain.com. Assign a password
of password and accept the defaults for all other options.
- In the same OU, create another user account with the first name
Secretary and user logon name Secretary@domain.com. Assign a password of
password and accept the defaults for all other options.
To view default Active Directory permissions for an OU
- On the View menu, ensure that the Advanced Features option is
selected.
- In the console tree, right-click Security, and then click
Properties.
- Click the Security tab.
- In the following table, list the groups that have permissions
for the Security OU. If an account has special permissions, just record
Special Permissions in the table. You will need to refer to these
permissions in the next exercise.
| User account or group |
Assigned permissions |
| Account Operators |
|
| Administrators |
|
| Authenticated Users |
|
| Domain Admins |
|
| Enterprise Admins |
|
| Pre-Windows 2000 Aceess |
|
| Print Operators |
|
| System Operators |
|
Why are all permission check boxes for some groups blank?
Are any of the default permissions inherited from the domain, which
is the parent object? How can you tell?
Answers
To view special permissions for an OU
- In the Security Properties dialog box, on the Security tab,
click the Advanced button.
The Access Control Settings For Security dialog box appears.
- To view the permissions for Account Operators, in the Permission
Entries box, click each entry for Account Operators, and then click
View/Edit.
The Permission Entry For Security dialog box appears.
What object permissions are assigned to Account Operators? What
can Account Operators do in this OU?
Do any objects within this OU inherit the permissions assigned to
the Account Operators group? Why or why not?
- Close all open dialog boxes, and then log off.
Answers
Exercise 2: Delegating Control
In this exercise, you will delegate to a user control over objects
in an OU. Refer to the table you completed in the previous exercise to
answer the questions below.
To test current permissions
- Log on to your domain as Assistant using a password of
password.
Windows 2000 displays a message that the local policy of your system
does not permit you to interactively log on Assistant to your
server,
- Log on as Administrator, add your Assistant account to the Print
Operators group, log off as Administrator, and then log on as Assistant
again.
- Open the Active Directory Users and Computers tool.
- In the console tree, expand your domain, and then click
Security.
What user objects are visible in the Security OU?
Which permissions allow you to see these objects? (Hint: refer to
your answers in the preceding exercise.)
Attempt to change the logon hours for Secretary. Were you
successful? Why or why not?
Attempt to change the logon hours for Assistant. Were you
successful? Why or why not?
- Close the Active Directory Users and Computers tool and log
off.
Answer
To use the Delegation Of Control wizard to assign Active
Directory permissions
- Log on to your domain as Administrator with a password of
password.
- Open the Active Directory Users and Computers tool.
- In the console tree, expand your domain.
- Right-click Security, and then click Delegate Control.
- In the Delegation Of Control wizard, click Next.
The Delegation Of Control wizard displays the Users Or Groups
page.
- Click Add.
- In the Select Users, Computers, Or Groups dialog box, click
Assistant, click Add, and then click OK.
- Click Next.
The Delegation Of Control wizard displays the Tasks To Delegate
page. If you only want to delegate control for certain types of tasks,
such as managing printers, you can select one or more predefined
tasks.
- Click the Create, Delete, And Manage User Accounts option, and
then click Next.
- Click Finish.
- Close the Active Directory Users And Computers window and log
off.
To test delegated permissions
- Log on to your domain as Assistant, using a password of
password.
- Open the Active Directory Users And Computers tool.
- In the console tree, expand your domain, and then click
Security.
- Attempt to change the logon hours for both user accounts in the
Security OU.
Were you successful? Why or why not?
- Attempt to change the logon hours for a user account in the
Users container.
Were you successful? Why or why not?
- Close the Active Directory Users And Computers window and log
off.
Answers
Lesson Summary
Active Directory permissions provide security for resources by
allowing you to control who can gain access to individual objects or
object attributes, and the type of access that you will allow. Windows
2000 stores a list of user access permissions, called the discretionary
access control list (DACL), for every object in Active Directory
directory services. The DACL for an object lists who can access the
object and the specific actions that each user can perform on the
object.
You can allow or deny permissions. Denied permissions take
precedence over any permissions that you otherwise allow for user
accounts and groups. If you deny permission for a user to gain access
to an object, the user will not have that permission, even if you allow
the permission for a group of which the user is a member. You should
deny permissions only when it is necessary to do so for a specific user
who is a member of a group with allowed permissions.
When you assign permissions, you can select to apply the permissions
to subobjects (child objects), which propagates the permissions to all
of the subobjects for a given object. To indicate that permissions are
inherited, the check boxes for inherited permissions are dimmed in the
user interface. You can prevent permission inheritance so that a child
object does not inherit permissions from its parent object. When you
prevent inheritance, only the permissions that you explicitly assign to
the object will apply.
|