<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>iBlog</title>
        <link>http://geekswithblogs.net/TJ/Default.aspx</link>
        <description>Trevor Johnson</description>
        <language>en-AU</language>
        <copyright>TJ</copyright>
        <managingEditor>trevor.johnson@tafensw.edu.au</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <image>
            <title>iBlog</title>
            <url>http://geekswithblogs.net/images/RSS2Image.gif</url>
            <link>http://geekswithblogs.net/TJ/Default.aspx</link>
            <width>77</width>
            <height>60</height>
        </image>
        <item>
            <title>Google Search, Get a better Page Rank</title>
            <link>http://geekswithblogs.net/TJ/archive/2010/08/24/google-search-get-a-better-page-rank.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/TJ/archive/2010/08/24/google-search-get-a-better-page-rank.aspx'&gt;http://geekswithblogs.net/TJ/archive/2010/08/24/google-search-get-a-better-page-rank.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Google uses something called a page rank to determine your position on the search page.&lt;br /&gt;
To get a better Google Page Rank, there are a couple of key objects Google looks at.&lt;br /&gt;
 &lt;br /&gt;
The first and most important is page content.&lt;br /&gt;
If you don’t have the content being searched for, it can’t rank your site.&lt;br /&gt;
It’s very basic requirement really, but some people just don’t get this part. :)&lt;br /&gt;
 &lt;br /&gt;
And the second is how many people link to your page content, combined with how their page rank is, i.e. the page rank of the page that is linking to your page.&lt;br /&gt;
Another words, if someone links to your page, from a page that has a low page rank, it won’t help you much.&lt;br /&gt;
But if someone links to your page, from a page that has a high page rank (Google sees them as an expert), that will help increase your page rank.&lt;/p&gt; &lt;img src="http://geekswithblogs.net/TJ/aggbug/141460.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>TJ</dc:creator>
            <guid>http://geekswithblogs.net/TJ/archive/2010/08/24/google-search-get-a-better-page-rank.aspx</guid>
            <pubDate>Tue, 24 Aug 2010 09:01:06 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TJ/comments/141460.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TJ/archive/2010/08/24/google-search-get-a-better-page-rank.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/TJ/comments/commentRss/141460.aspx</wfw:commentRss>
        </item>
        <item>
            <title>MVC &amp; Windows Authentication</title>
            <link>http://geekswithblogs.net/TJ/archive/2010/06/17/mvc--windows-authentication.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/TJ/archive/2010/06/17/mvc--windows-authentication.aspx'&gt;http://geekswithblogs.net/TJ/archive/2010/06/17/mvc--windows-authentication.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Okay so basically all we are doing here is changing the ValidateUser function so that it makes an LDAP connection using the username and password passed from the LogOn view form.&lt;/p&gt;
&lt;p&gt;If it succeeds, we have a vaild user and password combination.&lt;/p&gt;
&lt;p&gt;Changed ValidateUser function.&lt;/p&gt;
&lt;pre style="font-family: consolas"&gt;&lt;code&gt;&lt;span style="color: green"&gt;// new for authentication &lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue"&gt;using&lt;/span&gt; System.DirectoryServices;&lt;br /&gt;&lt;span style="color: blue"&gt;using&lt;/span&gt; System.DirectoryServices.Protocols;&lt;br /&gt;&lt;span style="color: blue"&gt;using&lt;/span&gt; System.Net;

&lt;/code&gt;&lt;code&gt;&lt;span style="color: blue"&gt;public&lt;/span&gt; &lt;span style="color: blue"&gt;bool&lt;/span&gt; ValidateUser(&lt;span style="color: blue"&gt;string&lt;/span&gt; userName, &lt;span style="color: blue"&gt;string&lt;/span&gt; password)&lt;br /&gt;        {&lt;br /&gt;            &lt;span style="color: blue"&gt;bool&lt;/span&gt; validation;&lt;br /&gt;            &lt;span style="color: blue"&gt;try&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                &lt;span style="color: #2b91af"&gt;LdapConnection&lt;/span&gt; ldc = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;LdapConnection&lt;/span&gt;(&lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;LdapDirectoryIdentifier&lt;/span&gt;((&lt;span style="color: blue"&gt;string&lt;/span&gt;)&lt;span style="color: blue"&gt;null&lt;/span&gt;, &lt;span style="color: blue"&gt;false&lt;/span&gt;, &lt;span style="color: blue"&gt;false&lt;/span&gt;));&lt;br /&gt;                &lt;span style="color: #2b91af"&gt;NetworkCredential&lt;/span&gt; nc = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;NetworkCredential&lt;/span&gt;(userName, password, &lt;span style="color: #a31515"&gt;"domainname.com"&lt;/span&gt;);&lt;br /&gt;                ldc.Credential = nc;&lt;br /&gt;                ldc.AuthType = &lt;span style="color: #2b91af"&gt;AuthType&lt;/span&gt;.Negotiate;&lt;br /&gt;                ldc.Bind(nc); &lt;span style="color: green"&gt;// user has authenticated at this point, as the credentials were used to login to the dc. &lt;/span&gt;&lt;br /&gt;                &lt;span style="color: blue"&gt;string&lt;/span&gt; myvar = ldc.SessionOptions.DomainName;&lt;br /&gt;                validation = &lt;span style="color: blue"&gt;true&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;            &lt;span style="color: blue"&gt;catch&lt;/span&gt; (&lt;span style="color: #2b91af"&gt;LdapException&lt;/span&gt;)&lt;br /&gt;            {&lt;br /&gt;                validation = &lt;span style="color: blue"&gt;false&lt;/span&gt;;&lt;br /&gt;            }&lt;br /&gt;            &lt;span style="color: blue"&gt;return&lt;/span&gt; validation;&lt;br /&gt;        } &lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt; &lt;/code&gt;&lt;/p&gt; &lt;img src="http://geekswithblogs.net/TJ/aggbug/140454.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>TJ</dc:creator>
            <guid>http://geekswithblogs.net/TJ/archive/2010/06/17/mvc--windows-authentication.aspx</guid>
            <pubDate>Wed, 16 Jun 2010 23:13:15 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TJ/comments/140454.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TJ/archive/2010/06/17/mvc--windows-authentication.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/TJ/comments/commentRss/140454.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>