<?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>Pål Amundsens blog</title>
	<atom:link href="http://paalam.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://paalam.wordpress.com</link>
	<description>Just another Wordpress.com weblog</description>
	<lastBuildDate>Fri, 28 Jul 2006 10:21:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='paalam.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Pål Amundsens blog</title>
		<link>http://paalam.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://paalam.wordpress.com/osd.xml" title="Pål Amundsens blog" />
	<atom:link rel='hub' href='http://paalam.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How To Create A SPList Of An Existing Type</title>
		<link>http://paalam.wordpress.com/2006/07/17/how-to-create-a-splist-of-an-existing-type/</link>
		<comments>http://paalam.wordpress.com/2006/07/17/how-to-create-a-splist-of-an-existing-type/#comments</comments>
		<pubDate>Mon, 17 Jul 2006 19:33:14 +0000</pubDate>
		<dc:creator>paalam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://paalam.wordpress.com/2006/07/17/how-to-create-a-splist-of-an-existing-type/</guid>
		<description><![CDATA[I’ve found that creating lists in site definitions using CAML is fearly well documented. However, when it comes to creating a list programmatically, I didn’t find what I was looking for –until this enum emerged on a russian site: SPListTemplateType. Of course, I’ve later found it in the SDK as well, but again – I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paalam.wordpress.com&amp;blog=305432&amp;post=11&amp;subd=paalam&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal">I’ve found that creating lists in site definitions using CAML is fearly well documented. However, when it comes to creating a list programmatically, I didn’t find what I was looking for –until this enum emerged on a russian site: SPListTemplateType. Of course, I’ve later found it in the SDK as well, but again – I didn’t find it where I’d expect it to be.</p>
<p>So here you go:<br />
<img src="http://paalam.files.wordpress.com/2006/07/splisttempltype1.PNG?w=500" /></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/paalam.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/paalam.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/paalam.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/paalam.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/paalam.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/paalam.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/paalam.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/paalam.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/paalam.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/paalam.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/paalam.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/paalam.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/paalam.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/paalam.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/paalam.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/paalam.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paalam.wordpress.com&amp;blog=305432&amp;post=11&amp;subd=paalam&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://paalam.wordpress.com/2006/07/17/how-to-create-a-splist-of-an-existing-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/65e95d57377ca51316c8e4e489b30bcb?s=96&#38;d=identicon" medium="image">
			<media:title type="html">paalam</media:title>
		</media:content>

		<media:content url="http://paalam.files.wordpress.com/2006/07/splisttempltype1.PNG" medium="image" />
	</item>
		<item>
		<title>How To Sign Up For Events On A List Using Javascript</title>
		<link>http://paalam.wordpress.com/2006/07/17/how-to-sign-up-for-events-on-a-list-using-javascript/</link>
		<comments>http://paalam.wordpress.com/2006/07/17/how-to-sign-up-for-events-on-a-list-using-javascript/#comments</comments>
		<pubDate>Mon, 17 Jul 2006 19:26:43 +0000</pubDate>
		<dc:creator>paalam</dc:creator>
				<category><![CDATA[SharePoint 2003]]></category>

		<guid isPermaLink="false">https://paalam.wordpress.com/2006/07/17/how-to-sign-up-for-events-on-a-list-using-javascript/</guid>
		<description><![CDATA[The object model actually only supports event handling on document libraries. However, you can easily hook up to events on other lists using javascript. Let’s say you want your own code to run whenever a listitem is deleted by a user, like in the picture below: The easiest way to do this is to add [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paalam.wordpress.com&amp;blog=305432&amp;post=6&amp;subd=paalam&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The object model actually only supports event handling on document libraries. However, you can easily hook up to events on other lists using javascript. Let’s say you want your own code to run whenever a listitem is deleted by a user, like in the picture below:<br />
<img src="http://paalam.files.wordpress.com/2006/07/events.PNG?w=500" /><br />
The easiest way to do this is to add a Content Editor Web Part and add the appropriate javascript code in the Source Editor:<img src="http://paalam.files.wordpress.com/2006/07/srcedit.PNG?w=500" /></p>
<p>You can now get the ID of the listitem that the user selected for deletion by referencing the object id : currentItemID.</p>
<p class="MsoNormal">Doing this will actually override the original deletion of the item that is done by ows.js. This means that you also have to write code in the DeleteAndDoSomethingElse-page to actually delete the item.<br />
 </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/paalam.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/paalam.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/paalam.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/paalam.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/paalam.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/paalam.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/paalam.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/paalam.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/paalam.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/paalam.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/paalam.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/paalam.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/paalam.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/paalam.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/paalam.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/paalam.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paalam.wordpress.com&amp;blog=305432&amp;post=6&amp;subd=paalam&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://paalam.wordpress.com/2006/07/17/how-to-sign-up-for-events-on-a-list-using-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/65e95d57377ca51316c8e4e489b30bcb?s=96&#38;d=identicon" medium="image">
			<media:title type="html">paalam</media:title>
		</media:content>

		<media:content url="http://paalam.files.wordpress.com/2006/07/events.PNG" medium="image" />

		<media:content url="http://paalam.files.wordpress.com/2006/07/srcedit.PNG" medium="image" />
	</item>
		<item>
		<title>Sharepoint Profile Import With Trusted ADs? Specify The Wanted Domain Controller &#8211; Don&#8217;t Use Auto Discover</title>
		<link>http://paalam.wordpress.com/2006/07/14/sharepoint-profile-import-with-trusted-ads-specify-the-wanted-domain-controller-dont-use-auto-discover/</link>
		<comments>http://paalam.wordpress.com/2006/07/14/sharepoint-profile-import-with-trusted-ads-specify-the-wanted-domain-controller-dont-use-auto-discover/#comments</comments>
		<pubDate>Fri, 14 Jul 2006 16:24:08 +0000</pubDate>
		<dc:creator>paalam</dc:creator>
				<category><![CDATA[SharePoint 2003]]></category>

		<guid isPermaLink="false">https://paalam.wordpress.com/2006/07/14/sharepoint-profile-import-with-trusted-ads-specify-the-wanted-domain-controller-dont-use-auto-discover/</guid>
		<description><![CDATA[A company I work for recently added a trust between two domains. This gave me some challenges on how to import user profiles from both domains. I set up two different connections on the Manage Connections page (http://server/_layouts/1033/MgrDSServer.aspx), set the Search Base with no OUs (just DCs), but soon realized that the trusted domain had a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paalam.wordpress.com&amp;blog=305432&amp;post=3&amp;subd=paalam&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A company I work for recently added a trust between two domains. This gave me some challenges on how to import user profiles from both domains. I set up two different connections on the <strong>Manage Connections</strong> page (<a href="http://server/_layouts/1033/MgrDSServer.aspx">http://server/_layouts/1033/MgrDSServer.aspx</a>), set the <strong>Search Base</strong> with no OUs (just DCs), but soon realized that the trusted domain had a different structure &#8211; giving me over 7000 new users in stead of 300! Stupid me. It turned out that the trusted domain had contact objects for people from all over the world &#8211; and these were of course imported into Sharepoint together with the rest.</p>
<p><img src="http://paalam.files.wordpress.com/2006/07/dc1.JPG?w=500" /></p>
<p><a rel="attachment" href="https://paalam.wordpress.com/2006/07/14/sharepoint-profile-import-with-trusted-ads-specify-the-wanted-domain-controller-dont-use-auto-discover/dc/" title="dc" class="imagelink"></a></p>
<p>The solution seemed easy enough &#8211; just add an OU to the Search Base. -Mistake no. 2. There were <u>two</u> top-level OUs &#8211; not one. So how could I combine the two sets of users in one connection? (You cannot add two connections to the same AD in Sharepoint) I found a great solution in this blog: <a href="http://mindsharpblogs.com/wayne/archive/2005/06/15/497.aspx">http://mindsharpblogs.com/wayne/archive/2005/06/15/497.aspx</a> and this page: <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/search_filter_syntax.asp">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/search_filter_syntax.asp</a></p>
<p>This lead me to changing the LDAP search filter (<b>User Filter</b> in Sharepoint) in stead of the Search Base, so that it combined users by getting them from two AD groups. Here is the search filter I ended up with:</p>
<p><font size="2" color="#008000">(&amp;(objectCategory=Person)(objectClass=User)(|(memberOf=CN=UserGroup1, OU=Groups, OU=Accounts, OU=OUGroup1, DC=local, DC=dk)(memberOf=CN=UserGroup2, OU=Groups, OU=Accounts, OU=OUGroup2, DC=local, DC=dk)))</font></p>
<p>Great! Except one thing &#8211; this syntax worked only when <strong>specifying a domain controller</strong> &#8211; not when letting Sharepoint <strong>auto discover</strong> it. Why beats me. I&#8217;m sure there&#8217;s some AD expert who could answer why, but I&#8217;m just glad I found out! By the way &#8211; the same thing happened when using LDIFDE &#8211; also there I had to specify the domain controller (with the -s operator).</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/paalam.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/paalam.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/paalam.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/paalam.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/paalam.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/paalam.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/paalam.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/paalam.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/paalam.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/paalam.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/paalam.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/paalam.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/paalam.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/paalam.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/paalam.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/paalam.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paalam.wordpress.com&amp;blog=305432&amp;post=3&amp;subd=paalam&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://paalam.wordpress.com/2006/07/14/sharepoint-profile-import-with-trusted-ads-specify-the-wanted-domain-controller-dont-use-auto-discover/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/65e95d57377ca51316c8e4e489b30bcb?s=96&#38;d=identicon" medium="image">
			<media:title type="html">paalam</media:title>
		</media:content>

		<media:content url="http://paalam.files.wordpress.com/2006/07/dc1.JPG" medium="image" />
	</item>
	</channel>
</rss>
