<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>BDBits Bytes</title>
	<atom:link href="http://bdbits.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://bdbits.wordpress.com</link>
	<description>my blog, my opinions</description>
	<lastBuildDate>Mon, 19 Dec 2011 22:42:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='bdbits.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>BDBits Bytes</title>
		<link>http://bdbits.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://bdbits.wordpress.com/osd.xml" title="BDBits Bytes" />
	<atom:link rel='hub' href='http://bdbits.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How to log in to a SharePoint site as a particular user with server-side code</title>
		<link>http://bdbits.wordpress.com/2010/08/26/how-to-log-in-to-a-sharepoint-site-as-a-particular-user-with-server-side-code/</link>
		<comments>http://bdbits.wordpress.com/2010/08/26/how-to-log-in-to-a-sharepoint-site-as-a-particular-user-with-server-side-code/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 20:40:37 +0000</pubDate>
		<dc:creator>bdbits</dc:creator>
				<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://bdbits.wordpress.com/?p=185</guid>
		<description><![CDATA[I needed to integrate content from a back-end system with an anonymous, public SharePoint site. The back-end system came with web parts for the purpose, but trusted that SharePoint had authenticated the user and simply pulled that logon name to &#8230; <a href="http://bdbits.wordpress.com/2010/08/26/how-to-log-in-to-a-sharepoint-site-as-a-particular-user-with-server-side-code/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bdbits.wordpress.com&amp;blog=2017114&amp;post=185&amp;subd=bdbits&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I needed to integrate content from a back-end system with an anonymous, public SharePoint site. The back-end system came with web parts for the purpose, but trusted that SharePoint had authenticated the user and simply pulled that logon name to pass through the web part to the server for access control. This was an issue because the anonymous site by definition had no logged-in user. The back-end system also had an anonymous capability, but the system administrator was not comfortable turning it on for fear of inadvertently exposing confidential data (and rightly so). In short, my &#8220;anonymous site&#8221; needed to be logged in as some actual logon account. This had to happen behind the scenes without prompting the user for credentials. It was time to hit Google.</p>
<p>I found a number of articles on the web with similar-but-not-quite-the-same needs. I also found these articles sometimes making things more complicated than it seemed it should be. Well, after a lot of reading and much trial and tribulation and lots of errors, I eventually found something that worked. I will give you step-by-step instructions, but first I will give you with a little background. I have always found it a good idea to try and understand what I am doing rather than blindly following a recipe, so I will try to explain how this works.</p>
<p>Generally speaking, SharePoint is configured to use the authentication mechanisms built in to Windows, i.e. Active Directory integration. There is another supported mechanism called <em>forms based authentication</em>, usually abbreviated as <em>FBA</em>. When using FBA, you can specify custom authentication providers. There are a few built in providers, one of which is Active Directory (AD). Why would you turn on FBA only to use AD? Keep in mind that there is only ever one authentication provider being used within a SharePoint site zone (a URL, this will be explained); you can&#8217;t use Windows and Forms authentication at the same time. With Windows authentication, I could not find a straightforward way to override the integrated security to log in as someone other than an actual Windows-authenticated user. Even Microsoft articles pointed me in the general direction of FBA. So the AD provider via FBA is what I have used, and in fact thus far it appears to be working for me just fine.</p>
<p>Now about those SharePoint <em>zones</em>&#8230; You can &#8220;extend&#8221; a SharePoint application from Central Administration. Among other things, when you do this, you must select an unused zone (there are five all together). SharePoint will create a new IIS site for each such zone you extend into, each with its own URL, web.config and app pool process, but serving pages from the same content database. The authentication provider is defined in the web.config for a site (zone). So extending the site into a new zone gives you the option of logging into the  site with &#8216;normal&#8217; integrated Windows authentication using one URL, and having completely different authentication for users coming in through another URL. I recommend you maintain a SharePoint-standard, Windows-integrated zone so you can easily ensure you have administrative access to the site, restorable through Central Administration settings if necessary, without the complications of a custom authentication configuration. It can also simplify problem-solving if you do run into issues with the non-integrated authentication.</p>
<p><span style="text-decoration:underline;">Assumptions</span></p>
<ul>
<li>The existing Windows-authenticated site: <strong>internal.example.com</strong></li>
<li>The new FBA-authenticated site: <strong>external.example.com</strong></li>
</ul>
<p><span style="text-decoration:underline;">Extend the web application</span></p>
<ul>
<li>Open Central Administration and select <em>Application Management</em>.</li>
<li>Click <em>Create or extend Web application</em>, and choose <em>Extend an existing Web application</em>.</li>
<li>Make sure you have the proper Web Application selected, i.e. <strong>internal.example.com</strong>.</li>
<li>Choose to create a new (IIS) site called <strong>external.example.com</strong>.</li>
<li>You can use the same port 80, but be sure to add the host header for <strong>external.example.com</strong>.</li>
<li>Update the path if necessary for your standards. You will need to know the path for later steps.</li>
<li>Leave <em>NTLM</em> as the provider; leave <em>Allow Anonymous</em> set to <strong>No</strong>.</li>
<li>Set <em>Zone </em>to <strong>Internet</strong>. Note: you can use another zone, just make sure you pick the same one throughout these procedures.</li>
<li>Click <em>OK </em>and wait for the site to be created.</li>
</ul>
<p><span style="text-decoration:underline;">Set up a new provider for the extended site, and for Central Administration<br />
</span></p>
<ul>
<li>Open the <strong>web.config</strong> for <strong>external.example.com</strong> (located in the path you set when extending the app).</li>
<li>Find the <em>&lt;PeoplePicker&gt;</em> element and add this as a child node.</li>
</ul>
<blockquote>
<pre>&lt;add key="MyADProvider" value="%" /&gt;</pre>
</blockquote>
<ul>
<li>Add the following just above the <em>&lt;system.web&gt;</em> element. You should of course change <em>some-dc</em> to an appropriate domain controller.</li>
</ul>
<blockquote>
<pre>&lt;connectionStrings&gt;
  &lt;add name="MyADConnection" connectionString="LDAP://some-dc" /&gt;
&lt;/connectionStrings&gt;</pre>
</blockquote>
<ul>
<li>Add the following just above the <em>&lt;authentication mode=&#8221;Windows&#8221; /&gt;</em> element. <em>connectionUsername</em> and <em>connectionPassword</em> are for an account that can read Active Directory. If the application pool identity for this app can already do that, you can omit these attributes. However, be sure to leave the other attributes in place.</li>
</ul>
<blockquote>
<pre>&lt;membership defaultProvider="MyADProvider"&gt;
&lt;providers&gt;
&lt;add name="MyADProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
     attributeMapUsername="sAMAccountName"
     connectionStringName="MyADConnection"
     connectionUsername="someusername" connectionPassword="somepassword" /&gt;
&lt;/providers&gt;
&lt;/membership&gt;</pre>
</blockquote>
<ul>
<li>Now make all the changes you just made to set up the new provider in the <strong>web.config</strong> for <strong>external.example.com</strong> to the <strong>web.config</strong> for Central Aministration. This will allow Central Administration to find users that belong to the new provider.</li>
</ul>
<p><span style="text-decoration:underline;">Set up forms-based authentication</span></p>
<ul>
<li> Back in Central Administration <em>Application Management</em> and click <em>Authentication providers</em>.</li>
<li> Make sure <strong>internal.example.com</strong> is the selected web app (see the upper right part of the page).</li>
<li> Click the <strong>Internet </strong>zone.</li>
<li> Change <em>Authentication Type</em> to <em>Forms</em>.</li>
<li>Uncheck <em>Enable anonymous access</em>.</li>
<li> Enter <strong>MyADProvider</strong> in <em>Membership provider name</em>.</li>
<li> Click <em>Save</em>.</li>
<li> Go to Central Administration <em>Application Management </em>and click <em>Policy for Web application</em>.</li>
<li> Make sure <strong>internal.example.com</strong> is the selected web app in the upper right.</li>
<li> Click <em>Add Users</em>.</li>
<li> Make sure <strong>internal.example.com </strong>is the selected web app and choose the <strong>Internet </strong>zone.</li>
<li> Add an administrative logon and give it <em>Full Control</em>, then click <em>Finish</em>.</li>
<li> You should now be able to log in to <strong>external.example.com </strong>and authenticate as the (internal) administrative user you just added.</li>
<li> You can now add users and grant permissions as always. The difference is that you can now add users from either the Windows or the FBA provider. It can be confusing when the FBA provider is also Active Directory, as in this case. When selecting names use the <em>People Picker </em>as it will show you the account name prefixed with <strong>MyADProvider:</strong> on the <em>Account Name </em>column.</li>
<li>You can also modify the <em>User Information List </em>view to display the <em>Account </em>column, which also displays the prefix.</li>
<li> Note that you cannot use wildcards in the <em>People Picker </em>to locate FBA users &#8211; you must enter their full logon username to &#8220;find&#8221; it.</li>
<li>Add an FBA user and make sure you can log in as that user.</li>
</ul>
<p><span style="text-decoration:underline;">Override the SharePoint login to use a specific user</span></p>
<ul>
<li>Make sure you have a working FBA-enabled extended site before going any further.</li>
<li>In Windows Explorer, navigate to <strong>TEMPLATE\LAYOUTS</strong> inside the 12-hive folder; by default the full path would thus be <strong>C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS</strong>.</li>
<li> Create a new folder we will call <strong>ext</strong>. You should make the name something non-obvious as it will be a valid URL that can be seen in the HTTP headers when a user accesses the site.</li>
<li>Create a new empty text file in <strong>ext </strong>and rename it <strong>extlogin.aspx</strong>. Note the relative URL of this new file is thus <strong>/_layouts/ext/extlogin.aspx</strong>.</li>
</ul>
<ul>
<li>Now save the following code in <strong>extlogin.aspx</strong>, substituting <strong>somelogon</strong> and <strong>somepassword</strong> with the credentials of the user to be logged in.</li>
</ul>
<blockquote>
<pre>&lt;%@ Page Language="C#" MasterPageFile="/_layouts/simple.master" %&gt;
&lt;%@ Import Namespace="Microsoft.SharePoint" %&gt;
&lt;%@ Import Namespace="System.Web.Security" %&gt;
&lt;%@ Import Namespace="System" %&gt;
&lt;script runat="server"&gt;
public void Page_Load(object sender, EventArgs e)
{
  if (Membership.ValidateUser("somelogon","somepassword"))
  {
    FormsAuthentication.SetAuthCookie("somelogon", true);
    FormsAuthentication.RedirectFromLoginPage("somelogon", true);
  }
}
&lt;/script&gt;
&lt;asp:Content ID="PageTitle" runat="server" contentplaceholderid="PlaceHolderPageTitle" &gt;
Let me see your identification.
&lt;/asp:Content&gt;
&lt;asp:Content ID="PageTitleInTitleArea" runat="server" contentplaceholderid="PlaceHolderPageTitleInTitleArea" &gt;
This isn't the page you're looking for.
&lt;/asp:Content&gt;
&lt;asp:Content ID="Main" runat="server" contentplaceholderid="PlaceHolderMain" &gt;
Move along.
&lt;/asp:Content&gt;</pre>
</blockquote>
<ul>
<li>In the <strong>web.config </strong>for <strong>external.example.com</strong>, set this custom page as the default login page, like this:</li>
</ul>
<blockquote>
<pre>&lt;authentication mode="Forms"&gt;
&lt;forms loginUrl="/_layouts/ext/extlogin.aspx" /&gt;
&lt;/authentication&gt;</pre>
</blockquote>
<ul>
<li>Close all browsers, then open <strong>external.example.com</strong>. The site&#8217;s default page should open and assuming the site is a standard SharePoint template, should show <strong>somelogon</strong> in the upper right. If it takes you to the <strong>extlogin.aspx</strong> page then the login failed and you should double-check all the steps above, and the status of the <strong>somelogon</strong> account to be sure it is not locked or disabled. Also be sure that you added the <strong>MyProvider:somelogon</strong> user and not the <strong>NT Authority\somelogon</strong> user.</li>
</ul>
<p>That should be all you need to do to get a site to automatically log in a particular user. You&#8217;re done!</p>
<br />Filed under: <a href='http://bdbits.wordpress.com/category/microsoft-windows/sharepoint/'>SharePoint</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bdbits.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bdbits.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bdbits.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bdbits.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bdbits.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bdbits.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bdbits.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bdbits.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bdbits.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bdbits.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bdbits.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bdbits.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bdbits.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bdbits.wordpress.com/185/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bdbits.wordpress.com&amp;blog=2017114&amp;post=185&amp;subd=bdbits&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bdbits.wordpress.com/2010/08/26/how-to-log-in-to-a-sharepoint-site-as-a-particular-user-with-server-side-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/77198cdbd92e186193d7d53b4467ee43?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">bdbits</media:title>
		</media:content>
	</item>
		<item>
		<title>How to prevent Firefox closing when you close the last tab</title>
		<link>http://bdbits.wordpress.com/2010/08/25/how-to-prevent-firefox-closing-when-you-close-the-last-tab/</link>
		<comments>http://bdbits.wordpress.com/2010/08/25/how-to-prevent-firefox-closing-when-you-close-the-last-tab/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 20:17:20 +0000</pubDate>
		<dc:creator>bdbits</dc:creator>
				<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://bdbits.wordpress.com/?p=188</guid>
		<description><![CDATA[Maybe I&#8217;m just getting old, but I am still a heavy keyboard user. So sometimes I am cleaning up my Firefox sessions using Ctrl-W to close windows and I get a little itchy and close that last tab and boom &#8230; <a href="http://bdbits.wordpress.com/2010/08/25/how-to-prevent-firefox-closing-when-you-close-the-last-tab/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bdbits.wordpress.com&amp;blog=2017114&amp;post=188&amp;subd=bdbits&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Maybe I&#8217;m just getting old, but I am still a heavy keyboard user. So sometimes I am cleaning up my Firefox sessions using Ctrl-W to close windows and I get a little itchy and close that last tab and boom &#8211; Firefox closes. Ok, it is a little thing, but still annoying. But there is a solution using our good friend about:config. Just set the following to <strong>false</strong>, which is not the default.</p>
<blockquote><p><em>browser.tabs.closeWindowWithLastTab</em></p></blockquote>
<p>If you are not familiar with about:config, just enter that in the address bar. Promise to be careful, then in the Filter box enter the first part of the string above, say <em>browser.tabs</em> and you should see that preference listed. Double-click it to change the value, at which point it will go bold indicating it is no longer at the default setting. You&#8217;re done.</p>
<br />Filed under: <a href='http://bdbits.wordpress.com/category/firefox/'>Firefox</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bdbits.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bdbits.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bdbits.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bdbits.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bdbits.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bdbits.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bdbits.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bdbits.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bdbits.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bdbits.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bdbits.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bdbits.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bdbits.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bdbits.wordpress.com/188/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bdbits.wordpress.com&amp;blog=2017114&amp;post=188&amp;subd=bdbits&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bdbits.wordpress.com/2010/08/25/how-to-prevent-firefox-closing-when-you-close-the-last-tab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/77198cdbd92e186193d7d53b4467ee43?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">bdbits</media:title>
		</media:content>
	</item>
		<item>
		<title>Open a SharePoint document library in Windows Explorer</title>
		<link>http://bdbits.wordpress.com/2010/08/25/open-a-sharepoint-document-library-in-windows-explorer/</link>
		<comments>http://bdbits.wordpress.com/2010/08/25/open-a-sharepoint-document-library-in-windows-explorer/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 17:48:13 +0000</pubDate>
		<dc:creator>bdbits</dc:creator>
				<category><![CDATA[Microsoft Windows]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://bdbits.wordpress.com/?p=190</guid>
		<description><![CDATA[Document libraries are a SharePoint feature that for many people looks and works just like a fileshare or &#8220;network drive&#8221;. Of course you are accessing it through a browser, so while functional, the SharePoint pages are somewhat limiting if you &#8230; <a href="http://bdbits.wordpress.com/2010/08/25/open-a-sharepoint-document-library-in-windows-explorer/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bdbits.wordpress.com&amp;blog=2017114&amp;post=190&amp;subd=bdbits&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Document libraries are a SharePoint feature that for many people looks and works just like a fileshare or &#8220;network drive&#8221;. Of course you are accessing it through a browser, so while functional, the SharePoint pages are somewhat limiting if you are used to using Windows Explorer. Fortunately, you can work with a SharePoint document library in Windows Explorer. As you might expect, this is easiest if you use Internet Explorer (IE), but I&#8217;ll show you how you can get to any library by copying part of the URL shown when the library is open in your browser.</p>
<p>For IE, open your site and navigate to the document library. Make sure your view in the upper right is set to <em>All Documents</em>. On the toolbar, under <em>Actions</em>, select <em>Open with Windows Explorer</em>. That should take you straight to Windows Explorer opened to your document library.</p>
<p>If you are using another browser, it is a little extra work. You still navigate to the library and make sure it is set to <em>All Documents</em> view. In your address bar, you should see something like <em>https://yoursite.example.com/sitecollection/bla/bla/bla/DocumentLibraryName/Forms/AllItems.aspx</em>. Copy to the clipboard everything from the URL except for the trailing <em>/Forms/AllItems.aspx</em>.</p>
<p>Now open Windows Explorer. If you are using Windows 7 navigate to <em>Computer</em> and right-click in the right-hand panel and select <em>Add a network location</em>. For XP, navigate to <em>Network Places</em> and open <em>Add Network Place</em> . In either case you&#8217;ll now get a wizard. Select <em>Choose a custom network location</em> (XP is <em>Choose another network location</em>) and click <em>Next</em>. Paste in the address you copied earlier, click <em>Next</em>, then accept or modify the descriptive name and click <em>Next</em>. Click <em>Finish</em> and you should see your document library in Windows Explorer. This will also add a shortcut to <em>Computer</em> (or for XP <em>My Network Places</em>) so next time you can just open that directly.</p>
<p>For those still using Vista, I no longer have a working box to test out this process. It should be very similar, since as you can see the process is not much different between Windows 7 and Windows XP.</p>
<p>That&#8217;s all there is to it. Enjoy.</p>
<br />Filed under: <a href='http://bdbits.wordpress.com/category/microsoft-windows/'>Microsoft Windows</a>, <a href='http://bdbits.wordpress.com/category/microsoft-windows/sharepoint/'>SharePoint</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bdbits.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bdbits.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bdbits.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bdbits.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bdbits.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bdbits.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bdbits.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bdbits.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bdbits.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bdbits.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bdbits.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bdbits.wordpress.com/190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bdbits.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bdbits.wordpress.com/190/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bdbits.wordpress.com&amp;blog=2017114&amp;post=190&amp;subd=bdbits&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bdbits.wordpress.com/2010/08/25/open-a-sharepoint-document-library-in-windows-explorer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/77198cdbd92e186193d7d53b4467ee43?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">bdbits</media:title>
		</media:content>
	</item>
		<item>
		<title>Displaying the real SharePoint error</title>
		<link>http://bdbits.wordpress.com/2010/08/17/displaying-the-real-sharepoint-error/</link>
		<comments>http://bdbits.wordpress.com/2010/08/17/displaying-the-real-sharepoint-error/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 22:16:10 +0000</pubDate>
		<dc:creator>bdbits</dc:creator>
				<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://bdbits.wordpress.com/?p=180</guid>
		<description><![CDATA[I am picking up some coding for SharePoint at work again and starting to remember all the stuff I forgot. :-P You have to love SharePoint error messages. For example, &#8220;an error has occurred&#8221;. I&#8217;m all for not intimidating the &#8230; <a href="http://bdbits.wordpress.com/2010/08/17/displaying-the-real-sharepoint-error/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bdbits.wordpress.com&amp;blog=2017114&amp;post=180&amp;subd=bdbits&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am picking up some coding for SharePoint at work again and starting to remember all the stuff I forgot. :-P</p>
<p>You have to love SharePoint error messages. For example, &#8220;an error has occurred&#8221;. I&#8217;m all for not intimidating the user but that is a bit terse. They could at least put the &#8220;technical information&#8221; somewhere on the screen for the poor guy who has to figure out the problem.  Ah well, fortunately there is a fix to get much more information. You just need a modification to the web.config file for your web app.</p>
<p>Search for <em>&lt;customErrors mode=&#8221;on&#8221;&gt;</em> and replace it with <em>&lt;customErrors mode=&#8221;<strong>off</strong>&#8220;</em>&gt;<em>.</em></p>
<p>Search for <em>callStack=&#8221;false&#8221;</em> (it should be in a <em>SafeMode</em> tag) and replace it with <em>callStack=&#8221;<strong>true</strong>&#8220;.</em></p>
<p>Now you should get somewhat more helpful messages. Good luck!</p>
<br />Filed under: <a href='http://bdbits.wordpress.com/category/microsoft-windows/sharepoint/'>SharePoint</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bdbits.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bdbits.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bdbits.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bdbits.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bdbits.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bdbits.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bdbits.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bdbits.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bdbits.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bdbits.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bdbits.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bdbits.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bdbits.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bdbits.wordpress.com/180/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bdbits.wordpress.com&amp;blog=2017114&amp;post=180&amp;subd=bdbits&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bdbits.wordpress.com/2010/08/17/displaying-the-real-sharepoint-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/77198cdbd92e186193d7d53b4467ee43?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">bdbits</media:title>
		</media:content>
	</item>
		<item>
		<title>Firefox and NTLM authentication</title>
		<link>http://bdbits.wordpress.com/2010/07/21/firefox-sharepoint-and-ntlm-authentication/</link>
		<comments>http://bdbits.wordpress.com/2010/07/21/firefox-sharepoint-and-ntlm-authentication/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 14:14:50 +0000</pubDate>
		<dc:creator>bdbits</dc:creator>
				<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://bdbits.wordpress.com/?p=171</guid>
		<description><![CDATA[As is common to many large organizations, my employer has many sites that ask for your Windows logon credentials, using a process often referred to as &#8220;NTLM authentication&#8221;. On Windows, the idea is that the credentials will be passed through &#8230; <a href="http://bdbits.wordpress.com/2010/07/21/firefox-sharepoint-and-ntlm-authentication/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bdbits.wordpress.com&amp;blog=2017114&amp;post=171&amp;subd=bdbits&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As is common to many large organizations, my employer has many sites that ask for your Windows logon credentials, using a process often referred to as &#8220;NTLM authentication&#8221;. On Windows, the idea is that the credentials will be passed through to the requester and you won&#8217;t have to enter them yourself. Firefox can support but does not by default allow this out of security concerns, but annoyingly does not provide a GUI way to change it. Instead, you will need use the infamous <em>about:config</em> page to fix this.</p>
<p>If you&#8217;ve never used it before, you simply open a tab and type <em>about:config</em> where you would normally enter a web site address. You may get a warning; that&#8217;s ok, just click the <em>I’ll  be  careful, I promise!!</em> button. You&#8217;ll then get a slew of options that control pretty much everything about Firefox. Fortunately, there is that <em>Filter</em> text box &#8211; enter <strong>ntlm</strong> in there. You should now see an entry below named <em>network.automatic-ntlm-auth.trusted-uris</em>; double-click that. Firefox checks this string for a match with the host name portion of the site wanting to authenticate &#8211; that&#8217;s the part between the <strong>http://</strong> or <strong>https://</strong> and the first solitary <strong>/</strong>. You can have multiple sites separated by a comma and space. So let&#8217;s say you have two internal sites, <em>https://first.example.com</em>/ and <em>http://last.example.com</em>/. In the text box, you would enter <strong>first.example.com, last.example.com</strong>. Unfortunately, as far as I know there is no way to specify a wild card such that everything ending in say <em>example.com</em> authenticates.  <span style="text-decoration:underline;"><em>Update</em></span><em>:</em> actually, I just experimented with this a bit. It turns out it only appears to match a substring. So if you use just <strong>example.com</strong> it would match both <strong>first.example.com</strong> and <strong>last.example.com</strong>.</p>
<p>When you have what you need in the text box, click <em>OK</em>. If you want to test it out but have already authenticated to the site, close Firefox and re-open it. Just closing the tab will likely not test it, as Firefox will cache the credentials you provided when prompted. When you re-open the site, you should no longer be prompted to enter your credentials.</p>
<br />Filed under: <a href='http://bdbits.wordpress.com/category/firefox/'>Firefox</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/bdbits.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/bdbits.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/bdbits.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/bdbits.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/bdbits.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/bdbits.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/bdbits.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/bdbits.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/bdbits.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/bdbits.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/bdbits.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/bdbits.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/bdbits.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/bdbits.wordpress.com/171/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bdbits.wordpress.com&amp;blog=2017114&amp;post=171&amp;subd=bdbits&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://bdbits.wordpress.com/2010/07/21/firefox-sharepoint-and-ntlm-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/77198cdbd92e186193d7d53b4467ee43?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">bdbits</media:title>
		</media:content>
	</item>
	</channel>
</rss>
