Geeks With Blogs


INauseous() Shawn Cicoria - Solution Architect, Craftsman and Artisan - INauseous() - Main Blog Here: June 2011 Entries
Identity Claims Encoding for SharePoint
Just to remind myself, the list of claim types and their encodings are listed here at the bottom. Where for example: i:0#.w|contoso\scicoria ‘i’ = identity, could be ‘c’ for others # == SPClaimTypes.UserLogonName . == Microsoft.IdentityModel.Cla... Table for reference: Table 1. Claim types encoding Character Claim Type ! SPClaimTypes.IdentityProvider ” SPClaimTypes.UserIdentifier # SPClaimTypes.UserLogonName $ SPClaimTypes.DistributionLi... ......

Posted On Thursday, June 30, 2011 11:42 AM

Creating Wildcard Certificates with makecert.exe
Be nice to be able to make wildcard certificates for use in development with makecert – turns out, it’s real easy. Just ensure that your CN= is the wildcard string to use. The following sequence generates a CA cert, then the public/private key pair for a wildcard certificate REM make the CA makecert -pe -n "CN=*" -a sha1 -len 2048 -sky exchange -eku -ic CA.cer -iv CA.pvk -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12 -sv wildcard.pvk wildcard.cer pvk2pfx ......

Posted On Tuesday, June 28, 2011 9:14 PM

Lorem Ipsum–Generating in Word 2010
Well, apparently I missed this hidden feature having used the Lorem Ipsum website for some time, but if you enter the following in blank Word document – you’ll get 10 paragraphs of generated text: =Lorem(10) Such as: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna. Nunc viverra imperdiet enim. Fusce est. Vivamus a tellus. Pellentesque habitant ......

Posted On Monday, June 27, 2011 3:17 PM

HACK: Forcing FBA Token Refresh against SPClaimProvider with No Credential Challenge
The approach takes advantage of the SP 2010 OOB Session Token handler and FBA claims provider implementation that during a period of token lifetime, if there is activity during the period of time that can be defined as "EW" in the image in the section "Background" below, that the SPSecurityTokenManager will, with the FBA provider, reissue a Session Token with new SessionToken ValidTo and ValidFrom times without forcing a re-challenge for user credentials (username and password). Additionally, it ......

Posted On Wednesday, June 15, 2011 4:48 PM

SharePoint 2010 FBA and Sliding Sessions
This is to provide a little bit of explanation on the implementation of FBA authentication with SP 2010. There have been blog posts that indicate there are no sliding sessions, but with a little manipulation and understanding of some of the settings, there is somewhat of support for sliding sessions and re-issuance of tokens. The current model provides for a little trade-off on performance as re-requests to the FBA providers and also any SP Custom Claim providers can have impact on overall performance. ......

Posted On Friday, June 10, 2011 4:41 PM

Adding and Removing SPClaimProvider via PowerShell
There are really 2 ways to get a SPClaimProvider registered – 1 via a Farm Feature activation. The other is via PowerShell. However, the documentation on how to remove is not that clear. The following code will remove it based upon a TypeName. Other identifiers can be used. In order to remove: Get-SPClaimProvider | ForEach-Object { Write-Host $_.TypeName IF ( $_.TypeName -eq "SimpleClaimsProvider.LVCla... { Write-Host "Found" $cp = $_ } } $cp.DisplayName Remove-SPClaimProvider $cp ......

Posted On Thursday, June 9, 2011 3:51 PM

Know what Process is calling your SPClaimProvider
If you’re writing a custom SharePoint Claims Provider (SPClaimProvider) in order to augment claims, it’s important to also understand what process is executing your specific code path. In the situation where you are making calls to a DB or service endpoint you will need to understand which process actually makes that call. In situations when running in a Trusted Subsystem model, you’ll also need to RunWithElevated in order to have that code path execute in the context of the Windows Principal for ......

Posted On Monday, June 6, 2011 9:56 AM

Forcing use of the same Master Page in sub-sites without Publishing
This seems to come up a few times. The following sample script in PS applies a common master page across all SPWebs in a site collection. $site = Get-SPSite $site | Get-SPWeb -limit all | ForEach-Object { $_.MasterUrl = "/dv1/_catalogs/masterpage/... } $site.Dispose() Thanks to Phil Childs - ......

Posted On Thursday, June 2, 2011 12:20 PM

Copyright © Shawn Cicoria | Powered by: | Join free