RFC 3647 Certification Practice Statement (CPS) template

April 16, 2009 · Filed Under PKI & Certificate Services · Comment 

Are you implementing a  Public Key Infrastructure solution?  If so, do you want to fully comply with RFC 3647 and ensure maximum credibility for your PKI solution?

If you answered yes to both of these questions then you’re going to be spending a lot (A LOT) of time working on the writing and approval of a Certification Practice Statement (CPS) and possibly also a Certificate Policy.  Per RFC 3647, there is a specific template should should be followed in most, if not all, cases.

Download a template here and don’t forget to also get your organization a Private Enterprise Number (PEN) from IANA…you’ll want that PEN to create your OID tree and assign a globally unique OID to your CPS.

Disclaimer:  The template is provided with no warranty or guarantee to suitabiltiy in your orgniazation.  The template was created using Microsoft Word 2007 and may open or appear differently in other versions.

Get the template: 

  CPS_Template.zip (23.8 KiB, 191 hits)

  • Share/Save/Bookmark

ADAM/AD LDS import fails with error 0×20e7

April 13, 2009 · Filed Under Active Directory · Comment 

We’ve got an ADAM instance setup that provide proxy authentication for an application.  In one partition of the ADAM instance are the userProxy objects and in another partition objects exist specific to the application that contain security and role information, thus determining what permissions each user has in that application.  I use a scheduled VBScript to synchronize the contents of the “ADUSERS” partition with those of the application container.  The application support personnel use the built-in vendor provided security management tools to manage the data in the “application” partition, including adding new user entries.  My VBScript just created the required userProxy objects when needed in the “ADUSERS” partition…without a corresponding entry in both partitions, i.e. without the userProxy object, there can be no proxy authentication for the user to that application.  Simple, standard ADAM usage.

Anyhow, I had been alerted by the applications teams that a certain user that was provisioned within the application security tools hadn’t had a userProxy object created accordingly.  Upon further investigation, I found that the scheduled synchronization process, which relies on an ADAM LDIFDE import to create the new userProxy objects had been failing for several days.  Running the scripted LDIFDE import command manually, so I could see the exact error, yielded the following output:

C:\WINDOWS\ADAM>ldifde -b <account, domain and password> -s <server> -t <port> -i -k -f <import.ldif file>
Connecting to “<server>”
Logging in as “<user>” in domain “<domain>” using SSPI
Importing directory from file “<import.ldif file>”
Loading entries..
Add error on line 7: Unwilling To Perform
The server side error is: 0×20e7 The modification was not permitted for security reasons.
The extended server error is:
000020E7: SvcErr: DSID-03152AA9, problem 5003 (WILL_NOT_PERFORM), data 8471

0 entries modified successfully.
An error has occurred in the program

When looking at the import file, there were no issues noted…nothing out of the normal.

dn: CN=adusers,CN=application,CN=adam,DC=company,DC=local
changetype: add
objectclass: container
objectclass: top
cn: adusers

dn: cn=someuser,CN=adusers,CN=application,CN=adam,DC=company,DC=local
changetype: add
objectSID: S-1-5-21-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx-xxxxx
objectclass: userProxy
cn: someuser

The key part of that error is actually the data field, 8471.  A check of that error code on the System Error Codes (Windows) site of MSDN reveals the following information:

ERROR_DS_NAME_ERROR_NOT_UNIQUE
8471 (0×2117)

Name translation: Input name mapped to more than one output name.

So, a duplicate SID exists (the SID is the unique identifier and I’d already verified that this specific CN did not exist in the “ADUSERS” partition of the ADAM instance.  Now knowing that this userProxy cannot be created due to a duplicate SID problem, things are getting clearer…but how to determine what existing userProxy object has that SID?  And how did another userProxy object get the same SID? 

First things first, to determine what existing userProxy object has that SID already, an export of the ADAM “ADUSERS” partition is required.  Use a command similar to the following to get it:

C:\WINDOWS\ADAM>ldifde -s <server> -t <port> -d CN=adusers,CN=application,
CN=adam,DC=company,DC=local -f e:\output.ldif

Now that you have the ldif file, the next step is to find the Base64 value of the SID for the user account in question.  The easiest way is to look up the objectSID value in ADSIEDIT, targeted at Active Directory (not the ADAM instance) and get the Hexadecimal value of the objectSID attribute for the user account in question.  Then convert that Hex value into Base64 using your favorite converter.  A really nice one can be found here at TRANSLATOR, BINARY.  Simply copy the Hex value into the Hex input box and click Decode.  Your Base64 value appears below.  Copy this Base64 value and use it to search the exported ldif file.  You’ll find the userProxy object with the duplicated SID in no time.

In my case, the problem tracked back to a name change on the user object, changing the first name.  The userProxy object had previously been created for the user account before the name change (and with the same SID obviously), but the application administrators had not deleted the old (incorrect) userProxy object manually as they needed to.  Thus when the LDIFDE import process tried to create a new userProxy object for the newly renamed user account, the import process failed.  Once the incorrect userProxy object was deleted, the import process was able to complete again successfully.

  • Share/Save/Bookmark

AD Powershell cmdlets!

March 23, 2009 · Filed Under Active Directory, Powershell, Windows Server 2008 · Comment 

With the release of Windows Server 2008 R2, there will finally be native support for Active Directory management in Powershell.  For those of us (myself included) who don’t/won’t use the third-party add-ins for AD, this is great news!

Check out the AD Powershell team’s blog:  Active Directory Powershell Blog (easy enough name to remember) for more information and a downloadable cmdlet reference chart.

Thanks AD Powershell Team!

  • Share/Save/Bookmark

Exchange Server 2007 SP1 Update Rollup 7!

March 23, 2009 · Filed Under Exchange Server 2007 · Comment 

Wow, that was quick!  (I just got SP1 UR6 installed on all my servers a week ago).

Update Rollup 7 for Exchange Server 2007 SP1 has been released.  The full list of fixes and updates is documented in MS KB 960384, but I think a lot of people will be happy to see this one specific item corrected:

  • 961281- An error is returned when you enable SCR from any source in a child domain after you install Exchange Server 2007 Service Pack 1 Rollup 5

You can get the update here and get to updating! :)

  • Share/Save/Bookmark

Data Protection Manager 2007 error ID 998

March 16, 2009 · Filed Under Data Protection Manager 2007, Exchange Server 2007 · Comment 

I’m currently doing some testing with Exchange Server 2007 and Data Protection Manager 2007 on Hyper-V.  As I needed several VMs for the testing, I just installed one and then used NewSID to change the VM SID and name before joining each one to my test domain.  Later, upon attempting to configure a new protection group on DPM for one of the Exchange servers I got this error: 

The operation failed because of a protection agent failure.

Retry the operation.

ID: 998
Details: Unknown error (0×80042318) (0×80042318)

dpm_vss_errors_newsid_01

After checking the usual suspects, including the required VSS patch on the Exchange server to be protected and examining the Event Logs on the Exchange Server I found lots of VSS errors with Event ID 12302 on the Exchange server.

dpm_vss_errors_newsid_02

Tt turns out the problem is actually with using NewSID…it doesn’t play well with VSS.  The solution’s pretty simple once you find it–here’s one place it resides.  The steps are as follows:

  1. Stop the Microsoft Shadow Copy Provider & Volume Shadow Copy Service.
  2. Export the contents of the HKLM\Software\Microsoft\EventSystem key to a .reg file (as a backup).
  3. Delete the HKLM\Software\Microsoft\EventSystem\{26c409cc-ae86-11d1-b616-00805fc79216}\Subscriptions key. (Just delete the Subscriptions subkey; leave the EventClasses key.)
  4. Restart the server.
  5. Run the “VSSADMIN LIST WRITERS” command, which should procude output similar to that shown below.

dpm_vss_errors_newsid_03

This causes the VSS entries in the HKLM\Software\Microsoft\EventSystem\{26c409cc-ae86-11d1-b616-00805fc79216}\Subscriptions key to be rebuilt when the writers initialize.

If that does not resolve the problem, check the Sysinternals forum link mentioned above for more steps.

  • Share/Save/Bookmark

Activate SCR Target via EMS script

March 15, 2009 · Filed Under Exchange Server 2007, Powershell · 2 Comments 

If you’ve got SCR installed and are using the Database Portability model described in “Standby Continuous Replication: Database Portability“, here’s a useful Exchange Management Shell that scripts the entire activation process.  Just change all of the noted fields to match your source and target servers and even add additional storage groups/databases to the script if you like. 

Be sure to triple check your entries and TEST IN A LAB ENVIRONMENT before unleashing this production!

  Activate-SCRTarget.zip (1.6 KiB, 235 hits)

  • Share/Save/Bookmark

Exchange Server 2007 SP1 UR6 = No problems

March 14, 2009 · Filed Under Exchange Server 2007 · Comment 

I finally had the chance to update the rest of our Exchange Server 2007 SP1 servers to UR6 tonight and there were no problems at all.  Even the .NET native image portion went fairly quickly.  WIN!  :)

  • Share/Save/Bookmark

Adding Exchange Administrators fails with error 00000525

March 6, 2009 · Filed Under Active Directory, Exchange Server 2007 · Comment 

Just as a quick reminder (because, oh…I forgot myself), if you have Exchange Server 2007 installed in a child domain in a parent/child domain forest then your Exchange security groups are going to be located in the parent (root) domain.  So, if you want to add new Exchange Administrators using the Add Exchange Administrators wizard from the EMC or the Add-ExchangeAdministrator cmdlet in the EMS, you need to be an Enterprise Administrator if you’re trying to perform the add from the child domain.  If not, you’ll get this error:

Summary: 1 item(s). 0 succeeded, 1 failed.
Elapsed time: 00:00:00

Add-ExchangeAdministrator
Failed

Error:
Active Directory operation failed on dc21.root.local. This error is not retriable. Additional information: The specified user does not exist.
Active directory response: 00000525: NameErr: DSID-031A0F80, problem 2001 (NO_OBJECT), data 0, best match of:
 ”

The object does not exist.

Exchange Management Shell command attempted:
Add-ExchangeAdministrator -Identity ‘company.local/SystemUsers/Service Accounts/ServiceAccount42′ -Role ‘ServerAdmin’ -Scope ‘XHT10A’

Elapsed Time: 00:00:00

Here’s one newsgroup post with this error, I’m sure there are others as well.

  • Share/Save/Bookmark

Problems with Exchange 2007 SP1 UR6? Not here…

February 13, 2009 · Filed Under Exchange Server 2007 · Comment 

It seems like a good number of folks are saying they’re having issues with UR6 within their Exchange environments (pay no attention to the one who said it wouldn’t install on Exchange Server 2003…).

There are quite a few discussions going on currently about the effects of UR6, both at the MS Exchange team’s blog and on the TechNet forums.

All I can say, is that so far I’ve seen no issues.  I do make it habit to run the updates using an account with Exchange Organization Administrator privileges though, so that explains away several of the complaints people have made (you’ve got to have that level of access for the scripts to run properly…).

I’ve put the update on 1 HT, 1 CAS and 2 SCR target nodes as well as a DPM 2007 SP1 server.  I’ll be updating an additional 2 HT, 2 CAS and 4 CCR nodes shortly.  So far, I wasn’t asked to perform any reboots and I had no issues.  Yes, the update does take a long time to apply, but that’s been normal for the recent UR packages.  As a general rule, even though a reboot was not requested, I ALWAYS make it a rule to reboot Exchange after applying any Update Rollup or Service Pack…consider that good advice that will go along way towards services that don’t start properly after an update.

Have you had any issues?  I’ll post the results of my next round of updates after I complete them.

  • Share/Save/Bookmark

Exchange 2007 SP1 Update Rollup 6 arrives

February 11, 2009 · Filed Under Exchange Server 2007 · Comment 

Patch Tuesday this month brought an usual update:  Update Rollup 6.  That’s unusual for an UR to appear on Patch Tuesday…but in this case there are two security fixes that are rated as Critical, so the timing makes sense.

Get the UR here and install it as soon as possible.  No mention of whether or not this UR fixes the bug identified with SCR in UR5 or not.

Microsoft Security Bulletin MS09-003 explains the two vulnerabilities in general terms.  Sounds bad, generally speaking.

This security update resolves two privately reported vulnerabilities in Microsoft Exchange Server.

The first vulnerability could allow remote code execution if a specially crafted TNEF message is sent to a Microsoft Exchange Server. An attacker who successfully exploited this vulnerability could take complete control of the affected system with Exchange Server service account privileges.

The second vulnerability could allow denial of service if a specially crafted MAPI command is sent to a Microsoft Exchange Server. An attacker who successfully exploited this vulnerability could cause the Microsoft Exchange System Attendant service and other services that use the EMSMDB32 provider to stop responding.

MS KB 959241 contains the full list of updates and fixes.

Update Rollup 6 for Exchange Server 2007 SP1 fixes the issues that are described in the following Microsoft Knowledge Base articles:

950675:  Downloaded .xls file attachments are empty when you open the files by using Outlook Web Access on Exchange Server 2007 Service Pack 1

955443:  Some free/busy messages are not replicated from Exchange 2007 to Exchange 2003 servers after some mailboxes are migrated from Exchange Server 2003 to Exchange Server 2007

956536:  The Microsoft Exchange File Distribution service uses lots of memory and processor time when Exchange Server 2007 processes many OABs

956624:  The Microsoft Exchange Transport service crashes continuously after you enable journal rule or deploy an antivirus application on an Exchange Server 2007 server

957748:  The custom message class of contact object is overwritten by the normal IPM.Contact class when an Exchange 2007 server replicates the contact object to any other public store

959239:  MS09-003: Vulnerabilities in Microsoft Exchange could allow remote code execution

  • Share/Save/Bookmark

Next Page »