Archive for November, 2009

Search Server Express 2008 Requires SP2 on Windows Server 2008 R2 November 30th, 2009

Mike

I recently installed Windows SharePoint Services (WSS) 3.0 with SP2 on Windows Server 2008 R2, with the intention of adding Search Server Express 2008 for enterprise search functionality. However, when I tried to run the Search Server install I was greeted with the following unfriendly message:

Program Compatibility Assistant

Program Compatibility Assistant

After some digging around and Googling, I discovered that Search Server wouldn’t install on Server 2008 R2 without Service Pack 2. Unfortunately, it doesn't appear possible (at this time) to download it with SP2 so what do you do? I did a little experimenting and found out that you can slipstream the The 2007 Microsoft Office Servers Service Pack 2 (SP2) into the install. Note that the download page actually specifies the service pack will update Search Server. Here's how to slipstream it:

  1. Open a command prompt, navigate to the location of the file SearchServerExpress.exe and run SearchServerExpress.exe /extract:SearchServer. This extracts (but doesn't install) Search Server Express to the folder SearchServer.
  2. Download the 2007 Microsoft Office Servers Service Pack 2 to the same location as the install file for Search Server Express.
  3. From the same command window, run officeserver2007sp2-kb953334-x64-fullfile-en-us.exe /extract:SearchServer\Updates (you will have downloaded the 64–bit version as Windows Server 2008 R2 is 64–bit only). This extracts the service pack files into the Updates folder of the Search Server install.
  4. Run setup.exe from within the SearchServer folder

 

You should find that the Search Server install now runs happily without complaining and pauses for a period of time to apply updates towards the end of the process.

Happy searching!

Continue reading...


 

Install PowerShell on Windows Server 2008 R2 Core November 18th, 2009

Mike

Today I installed Windows Server 2008 R2 Standard Core, expecting to be presented with PowerShell. Wrong. I was presented with good old cmd.exe. It took me a while to find this information, so I thought I'd blog it here. To install PowerShell, you need to run the following commands:


DISM /Online /Enable-Feature /FeatureName:NetFx2–ServerCore
DISM /Online /Enable-Feature /FeatureName:MicrosoftWindowsPowerShell

Now you can launch powershell.exe from C:\Windows\System32\WindowsPowerShell\v1.0. Although the path would suggest PowerShell 1.0, a quick Get-Host indicates PowerShell 2.0:

Get-Host output

Get-Host output

A little more about DISM, for those that are interested. DISM is the "Deployment Image Servicing and Management tool" and can be used to perform various configuration tasks on offline or running images. Hence the /Online switch is used to tell DISM it must target the running operating system. The following command will list all features and their status (suggest you pipe it through more):


DISM /Online /Get-Features | more

Note that PowerShell requires .NET Framework 2.0, hence the first DISM command.

Thanks to Vincent Hu for his post on TechNet, which I finally found. There is a slight mistake, though, as there should be no space between /FeatureName: and the feature you want to install.

Continue reading...


 

Blended Beats November 18th, 2009

Mike

Having been very impressed with WordPress since installing it on this domain, I decided to make use of it to promote my Internet radio show, Blended Beats. If you have an interest in electronic music (or just funky looking WordPress blogs!) then please visit www.blendedbeats.co.uk and let me know what you think.

Continue reading...


 

Working With Kerberos Authentication Part 4 – Shared Services Provider November 2nd, 2009

Mike

In this part I will talk about configuring your SSP to use Kerberos.

The next step (if required in your environment) is to configure Kerberos for the Shared Services Provider. This includes root and virtual directory level Shared Services. A prerequisite for this step is the SharePoint Infrastructure Update (which was released post SP1).

Configuring the SSP Web Application is very similar to a normal Web Application, so we'll keep it brief. Assume we have the SSP's Web Application running on port 1234 not using a host header. Then, the commands to map the SPNs are as follows:


setspn –A HTTP/servername:1234 yourdomain\UserRunningAppPool
setspn –A HTTP/servername.yourdomain.com:1234 yourdomain\UserRunningAppPool

Turn on Kerberos authentication for the SSP Web Application as described for the content Web Application (previous post) and perform the same test, ensuring you see a successful Kerberos logon event in the Security log on the server hosting the SSP.

In order to fully configure Kerberos for the SSP and Excel Calculation Services, further SPNs must be set using a new, custom format. There are also STSADM commands to run and a change to be made to the registry of each server.

Map the SPNs with the following commands:


setspn –A MSSP/servername:56737/SSPName yourdomain\SSPServiceAccount
setspn –A MSSP/servername:56738/SSPName yourdomain\SSPServiceAccount

SSPName is simply the name you gave your SSP. It cannot contain extended characters so be sure to name your SSP with care at install time! You must also generate a pair of SPNs for each server in your farm. I.e. in a standard medium server farm (2 WFEs and 1 App server), you will set 6 SPNs, 2 for each server name.

Now run the necessary STSADM commands on a server in the farm:


stsadm –o setsharedwebserviceauthn –negotiate
stsadm –o set-ecssecurity –accessmodel delegation –ssp
stsadm –o execadmsvcjobs

In order, this sets the Shared Services Web Service to use Kerberos, Excel Calculation Services to use delegation and then forces the timer jobs to run immediately.

Lastly, each SharePoint Server will need a registry key adding to allow it to use the new custom format SPNs.

  1. Run regedit
  2. Go to the registry path HKLM\Software\Microsoft\Office Server\12.0 and right click 12.0 >> New >> DWORD Value
  3. For Name type in KerberosSpnFormat and change the value from 0 (default) to 1.

After this step, you must reboot your server.

There is some additional configuration required within Component Services. In order to prevent the occurrence of DCOM errors, all of your Application Pool service accounts should have Local Launch and Local Activation permissions on the IIS WAMREG Admin Service object, most easily achieved by giving the permissions to the local groups: WSS_WPG and WSS_ADMIN_WPG (this ensures that newly created Application Pool service accounts are granted the permissions, since SharePoint adds them to this group). This is well documented elsewhere.

However, there's also a modification to be made to the servers in the farm within Component Services. Click on Start > Administrative Tools > Component Services. Expand Component Services > Computers, right click on My Computer and select Properties. On the Default Properties tab, change the Default Impersonation Level to Delegate and click on OK.

My Computer Properties

My Computer Properties

References

There are a huge number of references for configuring Kerberos. Here is a useful selection:

That concludes my guide to Kerberos for SharePoint. I hope you have found it useful and if you have any queries, please send them to me.

Continue reading...