Showing posts with label IIS. Show all posts
Showing posts with label IIS. Show all posts

Wednesday, June 20, 2012

How to enable kerberos authentication on your SharePoint Website

Open the central admin website

Go to web application management, select your website and click on authentication providers

clip_image001

Select the provider you want to modify

clip_image002

Change the NTLM to Negotia (Kerberos) authentication mode

clip_image003

Run inetmgr, select your website and configure the authentication providers

clip_image004

Right click on Windows Authentication and select providers

clip_image005

Add the Negociate:Kerberos authentication mode to the list of enabled providers

clip_image006

Move the Negociate:Kerberos provider to the top of the list

clip_image007

Right click on Windows Authentication and select advanced settings

clip_image008

In the extended protection drop down list, select "Accept" and check the "Enable Kernel-mode" authentication checkbox

clip_image009

Now, you can connect to the website using kerberos authentication !

Friday, March 2, 2012

HTTP Error 500.21 - Internal Server Error Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list

I just deployed a brand new .Net 4 website in IIS on my machine and get this error:

image

It seems that some .Net 4 modules have not been installed properly on this machine…

I managed to fix the issue quickly by running those two commands:

%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i

%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i


 



image

Monday, February 6, 2012

How to generate a self-signed certificate from IIS

For test purposes, it is sometime useful to generate a dummy certificate on your test environment. You can do that by using different ways:

- Create a certificate request and send it to a trusted Certifcate Autority (verisign, thawte etc.).

- Create a Domain certificate. To do that, you will need to setup a Certificate Autority on your domain.

- Create a self signed certificate. IIS has the ability to generate a had oc certificate on your machine. Note that this certificate will only be known and trusted on your machine. For example, you cannot use it over the web to sign your production website.

Here is the procedure to generate a self-signed certificate on IIS 7.x:

1. run inetmgr command

clip_image001

2. Go to the server level and select Server Certificates

image

3. On the right panel, click on Create Self-Signed Certificate.

clip_image003

4. specify a frendly name for your certificate

clip_image004

5. {Your certificate is beeing signed by your machine and placed in the personal certificate store on your machine}

image

Now your certificate can be now used on your machine !

Wednesday, March 30, 2011

Attach Visual Studio to an application using Powershell

This script can be used to run the Visual Studio just in time debugger for debugging your website. It gets the name of the application pool running the website and then attach the JIT to the w3wp process.

$filter = "*MyWebsite*"

$w3wp = get-WmiObject Win32_Process -Filter "Name='w3wp.exe'"
$prid = $w3wp | where { $_.CommandLine -like $filter }

c:\Windows\System32\vsjitdebugger.exe -p $prid.ProcessId