<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Chillispot Forum — Login page in ASP .Net]]></title>
		<link>http://www.chillispot.org/chilliforum/topic337-login-page-in-asp-net.html</link>
		<atom:link href="http://www.chillispot.org/chilliforum/feed-rss-topic337.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Login page in ASP .Net.]]></description>
		<lastBuildDate>Fri, 13 Nov 2009 02:22:56 +0000</lastBuildDate>
		<generator>PunBB 1.4.4</generator>
		<item>
			<title><![CDATA[Re: Login page in ASP .Net]]></title>
			<link>http://www.chillispot.org/chilliforum/post1172.html#p1172</link>
			<description><![CDATA[<p>Hi, I&#039;m trying to write it in Asp.Net as well. There is a piece of the code I can&#039;t understand. Could you tell me how it works?</p><div class="codebox"><pre><code>  $hexchal = pack (&quot;H32&quot;, $challenge);
  if ($uamsecret) {
    $newchal = pack (&quot;H*&quot;, md5($hexchal . $uamsecret));
  } else {
    $newchal = $hexchal;
  }
  $response = md5(&quot;\0&quot; . $password . $newchal);
  $newpwd = pack(&quot;a32&quot;, $password);
  $pappassword = implode (&quot;&quot;, unpack(&quot;H32&quot;, ($newpwd ^ $newchal)));</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (eduardobcastro)]]></author>
			<pubDate>Fri, 13 Nov 2009 02:22:56 +0000</pubDate>
			<guid>http://www.chillispot.org/chilliforum/post1172.html#p1172</guid>
		</item>
		<item>
			<title><![CDATA[Re: Login page in ASP .Net]]></title>
			<link>http://www.chillispot.org/chilliforum/post978.html#p978</link>
			<description><![CDATA[<p>Well that does help although I&#039;m a way off yet</p><p>Ok so I get a page rquest from chillisoft like this</p><p>http://someip/hotspotlogin.aspx?res=notyet&amp;uamip=ip-address and a bunch of stuff</p><p>I return a webpage with a username and password feild and that same querrystring at the top</p><p>they post back the login page and (this is the important bit I&#039;m unsure on)</p><p>a) chillisoft strips out the username and pasword and goes to the radius server</p><p>b)It comes back to the IIS server I take the uasername password put them into hidden feilds having incripted the password then return the page with res now changed in the querrystring to DoLogin.</p><p>My question now is whats the name of the feilds chillispoft is looking for.</p><p>If it&#039;s a whats the name of the input feilds and for that matter what type?</p><p>If it&#039;s b whats the name of the hidden feilds got to be?</p><p>Second thought<br />I have to say that even reading this now it seems you are suggesting a third method where the returned page includes a link like this http://router-ip/login?username=user&amp;password=encryptedpassword and thats what send chillisoft off to the radius server to authenticate.&nbsp; In which case do I even do anything with the res var?&nbsp; Or store anything in hidden varibles?</p><p>Clearly I&#039;m still confused</p>]]></description>
			<author><![CDATA[null@example.com (barbary)]]></author>
			<pubDate>Fri, 05 Jun 2009 17:18:27 +0000</pubDate>
			<guid>http://www.chillispot.org/chilliforum/post978.html#p978</guid>
		</item>
		<item>
			<title><![CDATA[Re: Login page in ASP .Net]]></title>
			<link>http://www.chillispot.org/chilliforum/post967.html#p967</link>
			<description><![CDATA[<p>It should be possible to make one in ASP. I&#039;ve rebuilt my own from scratch in PHP.</p><p>There are variety of get Vars that Chilli sends to the page. One of them is the ip and port chillispot is running on. Its a matter of hashing hte password and username they type and sending a aheader to givert to that address:portnumber?var1=stuff&amp;var2=stuff.</p><p>At the top of hotspotlogin.php is a list of get vars it uses. In addition to the ones chilli sends. There&#039;s one called &quot;res&quot;</p><p>various values of res and what they do:<br />notyet - user not logged in diplay form<br />doLogin -process the login form, diverts the encrypted result to chilli for authentication<br />failled - not logged in for good reason<br />sucess - logged in sucessfully<br />logoff - diverts to chillispot with code for logout <br />already - already logded in </p><p>if you call your uam server with res=oneOfTheAbove its easier to figure out what its doing.</p><p>It should be realtively easy to write an asp one (Ive never done ASP).</p><p>The way the default PHP one works is to populate hidden fields of the form with all the data chilli sends as get vars. Submits the form to itself, used the hidden fields to write a http header diverting the users browser to the chillispot deamon, with the username and password as encryped vars <br />[pre]<br /> header(&#039;Location: http://&#039;.$_POST[&#039;uamip&#039;].&#039;:&#039;.$_POST[&#039;uamport&#039;].&#039;/logon?username=&#039;.$_POST[&#039;UserName&#039;].&#039;&amp;password=&#039;.$pappassword);<br />[/pre]<br />is the clever bit. $_POST is form data in PHP. $pappasswrord is the form password encrypeted and hased using the UAM secret.</p><p>Hope this helps your figure out how to do in in ASP.</p>]]></description>
			<author><![CDATA[null@example.com (oceanhippie)]]></author>
			<pubDate>Tue, 02 Jun 2009 13:42:31 +0000</pubDate>
			<guid>http://www.chillispot.org/chilliforum/post967.html#p967</guid>
		</item>
		<item>
			<title><![CDATA[Login page in ASP .Net]]></title>
			<link>http://www.chillispot.org/chilliforum/post953.html#p953</link>
			<description><![CDATA[<p>Hello,</p><p>I&#039;m trying to write a login page in ASP .NET and failing badly.</p><p>Can anyone point me at an example of an ASP .Net login page for chillispot?</p><p>I can only find cgi and php versions.</p><p>Thanks for any help or suggestions.</p>]]></description>
			<author><![CDATA[null@example.com (barbary)]]></author>
			<pubDate>Wed, 27 May 2009 16:17:14 +0000</pubDate>
			<guid>http://www.chillispot.org/chilliforum/post953.html#p953</guid>
		</item>
	</channel>
</rss>
