Symantec Management Platform (Notification Server)

 View Only

Creating a Collection Based on an Active Directory Group 

Feb 17, 2009 04:49 PM

Most organizations have Active Directory groups setup that identify users based by department or another logical grouping. However collections are typically based on computers in Altiris. Bridging this gap can be accomplished using the Active Directory Connector from Altiris.

This is especially useful when you have a new application to deploy to a large set of users that are at distributed locations. Typically the easiest way to get your target collection created has been to force the users to send their computer names or use the ASDK to gather this information based on usernames. However in most of these instances a group has already been created in Active Directory to target communications or shares for these users. Using this method allows you to leverage your existing infrastructure.

While typically the Active Directory connector is used to created collections based on OU structures in Active Directory, you can also create collections that dynamically change based upon group membership in AD.

The Active Directory Connector uses LDAP to sync your Active Directory with the Altiris Notification Server. During this process the computers are mated with known clients in the Notification server database using the computer name and domain. The Users to Machines collections are also creating based on the primary users of that computer based Altiris. While this isn't perfect, it should target all the computers where the specified users are the primary users. Understanding is the key making sure the collections get the computers you want.

Microsoft Active Directory Import

This article assumes you already have the Active Directory connector installed. First we need to find where we can create the Active Directory Import Rules. This is hidden in the configuration section. Using the Altiris 6.5 console, click View from the menu bar and then select Configuration. From there expand Configuration -> Server Settings -> Notification Server Infrastructure and then select "Microsoft Active Directory Import". From here we can create all the import rules that we need and it also displays any current rules you already have.

Creating your Active Directory Import Rule

Next we need to create a Resource Import Rule. Click the + Icon from displayed screen to create a blank rule. This now allows you to select the resource type, data source, column mappings and schedules.

We will begin by clicking on the "specified resource type" hyperlink. This displays the Resource Selection window that allows you to select your domain type, Resource type, source and domain. Choose your domain type, hopefully it is Windows 2000/2003 and not NT. The Resource Type is User and the Source will be a security or distribution group. Ensure that "Create security group collections" is checked and the "Match computers with primary users is checked. Click OK.

Next we need to select the group from our domain. We do this by clicking the (none) hyperlink. This brings up the "Select Security Groups" windows. From here we can search for our group in Active Directory based upon the domain that we just entered. You can use either the starts with or contains function. Both of these have a limit on the number of items it will return before listing a few and then giving you a "(Too many results. Refine your search.)" error message. Once you find your group or groups, select them and click Add. This moves them to the selected groups list box and then you can click OK.

The "Default column mappings" should be good for most environments, but may need to be adjusted depending on how much you have customized your AD Schema and your Altiris environment. It should be rare that you change these settings. However it still lets you change everything from pager numbers to their titles. The most important things are their UserId and Domain.

Next we can click on the "these resource associations" hyperlink. This displays the "Enable Resource Associations" window. We need to ensure that "Create one or more 'User' resources for the imported 'User' based on its 'directReports' attribute in Active Directory" and the "Create a 'User' resource for the imported 'User' based on its 'manager' attribute in Active Directory" options are checked. This pulls some basic info into your AD. While technically not needed for this, it does make troubleshooting easier. The imported user data is used to populate the contact information in the helpdesk and other Altiris products. Then it also creates the mapped collections, listed as Users to Machines.

The "specified schedule" is the next hyperlink we want to adjust. By clicking on this it opens the "Rule Scheduling" window. Here we can setup full imports and updates to that. The default Full Import schedule, which is a very intensive import, is for a monthly import. You might want to set this to longer depending on how much of a load this import puts on your Notification Server. The Update Schedule is a delta update and its default is Weekly, although you might want to bump this up depending on your needs. Once you have the schedule you like best selected Click OK.

Once you have everything setup click the enabled checkbox and click Apply. You will likely want this to run right-away and you can do this by selecting the rule and clicking the "Run the selected import rule now (Full Import)" icon.

So now you have your import rule setup and it is ready to run, but where are these great new collections? You can find this in the resources section. Using the Altiris 6.5 console, click View from the menu bar and then select Resources. From there expand Resource Management-> Collections -> Directory Collections -> yourdomain.com -> Security Groups - Users to Machine and then select the name of the group you specified in the earlier steps. You may notice that this collection cannot be modified.

Setting up filters for your Active Directory Import Rule Collection

Since this collection cannot be directory modified you will likely want to setup a filter to limit the machines in this collection. It may be that you do not want servers included, or test machines or any other subset. To filter create your collection wherever your favorite places is. I typically name this the same of the Directory collection and add Filtered (XP Computers or the name of the filter). In your collection Inclusions select the directory collection you created earlier. For your exclusions select the collections you already have created that you want to use as exclusions, such as Vista or servers.

You could also select another directory exclusion to remove a set of users from the master collection. For instance you might include the directory collection called HR that has all HR users, but then include another directory collection called "HR Compensation" that would exclude a specific set of HR users from your master collection. Now you have your dynamic group created.

Info on choosing Domain or Server to import from

When specifying a domain you have the option of specifying a specific Active Directory server or the domain. By entering your Active directory domain you allow for redundancy if a specific server in the domain is down. However when you specify the domain instead of a server, your probably will not connect to the same domain controller every time. When the Update Import Rule runs for the Delta update and the domain controller returned is different from the last time it ran it has to force a complete update because it cannot tell what resources have changed since last time. In short, specify domain for redundancy and server for speed.

Viewing the Database tables on imported data

It is likely that you will need to write some reports based on the imported Data. If so the tables that you will want to look at are:

  • DirectoryItemImportDetails
  • DirectoryItemMap
  • Evt_Directory_Import_Status
  • Evt_Directory_Resource_Import
  • Inv_Import_Rule_Imported_Items
  • Inv_Global_Active_Directory_Details
  • Inv_OU_Membership
  • Inv_Global_Network_Printer_Details
  • Inv_Distribution_Groups
  • Inv_Security_Groups
  • Inv_Windows_User_Groups

Between that list you should be able to find all the info you need.

Wrap-up

Using this information you should be able to create collections based on groups in Active Directory. This will make it easier to target specific groups for new software rollouts and targeted application metering events. Once it is setup you will want to monitor the performance of your Notification Server while the AD imports run because depending on your selections and the size of your environment it can put a significant load on your Notification Server. Also it is a good practice to check your event logs to verify imports are successful and do a spot check just to make sure your groups look correct and that you have selected the correct settings.

Statistics
0 Favorited
4 Views
17 Files
0 Shares
17 Downloads
Attachment(s)
jpg file
1.jpg   30 KB   1 version
Uploaded - Feb 25, 2020
jpg file
12781.jpg   3 KB   1 version
Uploaded - Feb 25, 2020
jpg file
12781_1_13.jpg   27 KB   1 version
Uploaded - Feb 25, 2020
jpg file
12781_2_9.jpg   4 KB   1 version
Uploaded - Feb 25, 2020
jpg file
12781_3_8.jpg   11 KB   1 version
Uploaded - Feb 25, 2020
jpg file
12781_4_8.jpg   5 KB   1 version
Uploaded - Feb 25, 2020
jpg file
12781_5_6.jpg   9 KB   1 version
Uploaded - Feb 25, 2020
jpg file
12781_6_6.jpg   6 KB   1 version
Uploaded - Feb 25, 2020
jpg file
12781_7_4.jpg   6 KB   1 version
Uploaded - Feb 25, 2020
jpg file
12781_8_3.jpg   14 KB   1 version
Uploaded - Feb 25, 2020
jpg file
2.jpg   37 KB   1 version
Uploaded - Feb 25, 2020
jpg file
3.jpg   43 KB   1 version
Uploaded - Feb 25, 2020
jpg file
4.jpg   35 KB   1 version
Uploaded - Feb 25, 2020
jpg file
5.jpg   97 KB   1 version
Uploaded - Feb 25, 2020
jpg file
6.jpg   50 KB   1 version
Uploaded - Feb 25, 2020
jpg file
7.jpg   34 KB   1 version
Uploaded - Feb 25, 2020
jpg file
8.jpg   16 KB   1 version
Uploaded - Feb 25, 2020

Tags and Keywords

Comments

Nov 06, 2009 04:53 PM

It should show up in Add/Remove Programs, or in the Upgrade/Install Additional Solutions > Currently Installed tab listing as "Altiris Integrated Component for Microsoft Active Directory 6.1 Update (KB34704)"

Nov 06, 2009 04:39 PM

Quick question where on NS 6.5 can I verify if this hotfix has been installed on the NS or not?

 Thanks

Oct 28, 2009 11:34 AM

Hi noodleNT:
There is a hotfix that will resolve that issue (combined with updating a .config file).  AKB 34704

I would highly recommend anyone using AD Import to apply this hotfix.  It is the 3rd or so hotfix for AD Import and fixes several issues (the ones listed in the above KB as well as issues in a few others as well).

Oct 27, 2009 03:09 PM

Is this to replace the OU Structures import or to be used in conjuction? I followed your steps but my import failes to run with the following error in the log:

Source: Altiris.DirectoryServices.DirectoryImport.DirectoryItemImporter.ImportSecurityGroups
Description: System.ArgumentException caught in ImportSecurityGroups. Reason: Item has already been added.  Key in dictionary: "Administrators"  Key being added: "Administrators" ( Unhandled exception.  Type=System.ArgumentException Msg=Item has already been added.  Key in dictionary: "Administrators"  Key being added: "Administrators" Src=mscorlib




NOTE:
Figured it out. We had two Administrators groups in AD. Just renamed the one that was manually created.

Mar 19, 2009 04:24 PM

What about DN (distinguishedName) size limits for impoted AD objects?

For example Active Directory Import cant import objects in Active Directory from OUs like this:

OU=sib-mts.local/Accounts/Макро-регион Сибирь/Филиал ОАО МТС Макро-регион Сибирь/Департамент эксплуатации информационных технологий/Отдел технического администрирования/Группа администрирования NT и AD

 

We opening incident with Altiris Support but they dont have ideas when this bug is being fixed. Only recommedations - "please wait our new major release of Altiris " :-)

This problem not resolved 3+ years!!

P.S.:

1) Log file-------------------

 

 Log File Name: C:\Program Files\Altiris\Notification Server\Logs\a.log

Priority: 1
Date: 2/19/2008 8:57:01 PM
Tick Count: 40226359
Host Name: ALT-NS-SIB-01
Process: aexsvc.exe (1468)
Thread ID: 1672
Module: AltirisNativeHelper.dll
Source: Altiris.NS.ClientMessaging.FileDispatcher.ProcessFileCallback
Description: Unable to process the file "C:\Program Files\Altiris\Notification Server\NSCap\EvtQSlow\Process\f88787ea-25e0-42b6-a8c9-a07117cda75b.tmp" Moving to "C:\Program Files\Altiris\Notification Server\NSCap\EvtQSlow\Bad\AeXException\nse38E1.tmp". Reason: Failed to process NSE System.ArgumentException: Should be shorter than 128 chars
Parameter name: Value
at Altiris.NS.ResourceManagement.ResourceImporter.LoadResources(XmlReader reader)
at Altiris.NS.StandardItems.Messaging.InventoryCaptureItem.OnMessage_Impl(String message, Boolean useFilename) at Altiris.NS.ResourceManagement.ResourceImporter.LoadResources(XmlReader reader)
at Altiris.NS.StandardItems.Messaging.InventoryCaptureItem.OnMessage_Impl(String message, Boolean useFilename)

 

2)Link to Problem Description------------

 

 

 

https://kb.altiris.com/article.asp?article=19754&p=1

 

 

 

Resolution - This will be fixed in version 7 of the Active Directory Connector

Feb 18, 2009 03:07 PM

Well you have no choice do you. :-)
You either do an upgrade import and don't get all the changes, or a full import and do get all the changes to the group.
I've seen around 9,000 and 6,000 assets doing just this.
Pointing to a specific DC doesn't help either. As users making changes to a group elsewhere in the network aren't using that same DC. Unless you tell everyone to use that one DC. But good luck getting that one done.
But as I said. Any well architected NS shouldn't have a problem. Usually the import only takes a couple of minutes. It's the collection update schedule which has the potential to be a problem - Even on an NS with 15,000 clients and no AD import.
Breaking the AD Import into multiple imports also helps if you are concerned about load on the NS and the DC.
In the past our updates have been done on the hour, every hour but your article suggests a much shorter time requirement so if you scheduled it once a week I wouldn't really be concerned at all. But in experience, users usually want applications delivered much sooner than this.

Feb 18, 2009 09:40 AM

Did your full import work great for hundreds of groups when your NS server hosts over 15K clients?

Feb 18, 2009 05:09 AM

i recently started to use collection by AD groups and also discover that the update is not working....
i also discover that it's better to use specific domain controller rather then domain name.
(but you have to make sure that it always available )

Feb 17, 2009 05:32 PM

In my experience the Update import has never worked. Every update needs to be a full update.
The problem with this is that the Update import only queries a single domain controller for any updates to a group. However for this to work, these updates need to be made to groups ONLY on that domain controller which the AD Import is requesting data from. If a change is made on another domain controller then the Update import doesn't pick this up.
This works great for a domain with a single domain controller. However the real world usually dictates this isn't the case.
I made the developers aware of this a few years ago but gathered that no changes were being made till NS7.
As a note, I've run Full imports, every hour, on the hour for hundreds of groups to work around this. Any suitably architected Notification Server should be able to handle this fine.

Related Entries and Links

No Related Resource entered.