<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://forum.yubico.com/feed.php?f=16&amp;t=63" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2010-02-23T10:35:29+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=16&amp;t=63</id>
<entry>
<author><name><![CDATA[network-marvels]]></name></author>
<updated>2010-02-23T10:35:29+01:00</updated>
<published>2010-02-23T10:35:29+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=63&amp;p=2071#p2071</id>
<link href="https://forum.yubico.com/viewtopic.php?t=63&amp;p=2071#p2071"/>
<title type="html"><![CDATA[Re: My own OpenID server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=63&amp;p=2071#p2071"><![CDATA[
Yubico development team has recently updated it's OpenID server. The latest source code of the updated OpenID server can be downloaded from the following link:<br /><br /><!-- m --><a class="postlink" href="http://code.google.com/p/yubico-openid-server/">http://code.google.com/p/yubico-openid-server/</a><!-- m --> <br /><br />Please use the updated OpenID server and try again.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=280">network-marvels</a> — Tue Feb 23, 2010 10:35 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mat]]></name></author>
<updated>2010-02-22T15:29:53+01:00</updated>
<published>2010-02-22T15:29:53+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=63&amp;p=2067#p2067</id>
<link href="https://forum.yubico.com/viewtopic.php?t=63&amp;p=2067#p2067"/>
<title type="html"><![CDATA[Re: My own OpenID server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=63&amp;p=2067#p2067"><![CDATA[
Along with the above information, please send us the exact error messages you are getting while using the Yubico OpenID server (online and locally hosted).[/quote]<br /><br /><ul>1) Currently we are testing it using the example consumer page which was packaged with the server. Eventually the server will be used to authenticate to a secure web server.<br />2) On the Windows server HTTP identifiers from other providers work, HTTPS identifiers do not. On the Linux server both HTTP and HTTPS identifiers work from other providers.<br />3) Yes, using the Linux machine, the HTTP and HTTPS identifiers from the Yubico OpenID server (openid.yubico.com) both work.<br />4) Yes, using the Linux machine, the HTTP and HTTPS identifiers from our locally hosted Yubico OpenID server both work.<br />5) No, using the Windows machine, the HTTP identifier provided by the Yubico OpenID server (openid.yubico.com) works, the HTTPS identifier does not.<br />6) No, using the Windows machine, the HTTP identifier provided by our locally hosted Yubico OpenID server works, the HTTPS identifier does not.<br /></ul><br />We get the same error message regardless of provider (your own (openid.yubico.com), someone elses, or locally hosted). It is as follows:<br /><br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />Authentication error; not a valid OpenID.<br /></div><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1031">mat</a> — Mon Feb 22, 2010 3:29 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[network-marvels]]></name></author>
<updated>2010-02-19T14:45:29+01:00</updated>
<published>2010-02-19T14:45:29+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=63&amp;p=2054#p2054</id>
<link href="https://forum.yubico.com/viewtopic.php?t=63&amp;p=2054#p2054"/>
<title type="html"><![CDATA[Re: My own OpenID server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=63&amp;p=2054#p2054"><![CDATA[
It would be helpful if you can provide us following information:<br /><br /><ul>1) The application for which you are trying to configure Yubico OpenID based authentication<br />2) Are you able to login to your application when you use other OpenID providers using both http and https identifiers?<br />3) Are you able to login to your application when you use online Yubico OpenID server (openid.yubico.com) from a Linux machine using both http and https identifiers?<br />4) Are you able to login to your application when you use your locally hosted Yubico OpenID server from a Linux machine using both http and https identifiers?<br />5) Are you able to login to your application when you use online Yubico OpenID server (openid.yubico.com) from a Windows machine using both http and https identifiers?<br />6) Are you able to login to your application when you use your locally hosted Yubico OpenID server from a Windows machine using both http and https identifiers?<br /></ul><br />Along with the above information, please send us the exact error messages you are getting while using the Yubico OpenID server (online and locally hosted).<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=280">network-marvels</a> — Fri Feb 19, 2010 2:45 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mat]]></name></author>
<updated>2010-02-18T15:06:15+01:00</updated>
<published>2010-02-18T15:06:15+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=63&amp;p=2051#p2051</id>
<link href="https://forum.yubico.com/viewtopic.php?t=63&amp;p=2051#p2051"/>
<title type="html"><![CDATA[Re: My own OpenID server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=63&amp;p=2051#p2051"><![CDATA[
If it's a certificate issue on my end then should an HTTPS identifer provided by your own server @ <!-- m --><a class="postlink" href="https://openid.yubico.com">https://openid.yubico.com</a><!-- m --> still work since it would be dealing with your certificate?<br /><br />Even while using self-signed certificates the Linux machine still had no issues with HTTPS identifiers from other OpenID providers.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1031">mat</a> — Thu Feb 18, 2010 3:06 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[network-marvels]]></name></author>
<updated>2010-02-18T11:13:33+01:00</updated>
<published>2010-02-18T11:13:33+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=63&amp;p=2050#p2050</id>
<link href="https://forum.yubico.com/viewtopic.php?t=63&amp;p=2050#p2050"/>
<title type="html"><![CDATA[Re: My own OpenID server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=63&amp;p=2050#p2050"><![CDATA[
From the information provided by you, it seems that the CACert certificate authority is not added to the trusted root certificate authorities in web browsers running on your Windows box. CACert is not present in the default list of trusted root certificate authorities in IE 8 and FireFox 3.5.7. <br /><br />As the identifier is correctly working with http, it seems that this is not an issue with the Yubico OpenID server. As identifier is not working only with https, it seems to be some sort of certificate issue.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=280">network-marvels</a> — Thu Feb 18, 2010 11:13 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mat]]></name></author>
<updated>2010-02-18T15:00:06+01:00</updated>
<published>2010-02-17T17:19:54+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=63&amp;p=2046#p2046</id>
<link href="https://forum.yubico.com/viewtopic.php?t=63&amp;p=2046#p2046"/>
<title type="html"><![CDATA[Re: My own OpenID server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=63&amp;p=2046#p2046"><![CDATA[
You were correct about the Self Signed Certificates, we're now using certificates signed by CACert.org, the Linux server works flawlessly with both HTTP and HTTPS identifiers.<br /><br />We're still having issues with the Windows Server, however. I've tried using the Yubico hosted OpenID Server, the consumer on the Windows machine still doesn't like the HTTPS identifier (the Linux machine will accept it from your hosted server as well, however). HTTP identifiers do work on the Windows machine.<br /><br />For the record we've also changed the Windows server to use MySQL Community Server version 5.1.42 rather than the Filesystem.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1031">mat</a> — Wed Feb 17, 2010 5:19 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[network-marvels]]></name></author>
<updated>2010-02-16T16:49:23+01:00</updated>
<published>2010-02-16T16:49:23+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=63&amp;p=2043#p2043</id>
<link href="https://forum.yubico.com/viewtopic.php?t=63&amp;p=2043#p2043"/>
<title type="html"><![CDATA[Re: My own OpenID server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=63&amp;p=2043#p2043"><![CDATA[
We successfully installed Yubico OpenID server in our environment on Ubuntu server 9.10.  Depending on our observation, the error you are getting seems be due to certificate error. It seems that you are using self signed certificates. If you use self signed certificate, OpenID enabled application seems to reject the OpenID server. <br /><br />We would appreciate if you can confirm the followings:<br /><ul>1) Are you using self signed certificates?<br />2) Are you able to successfully use your hosted Yubico openid server in case you use identifier in http? <br />3) Are you facing this problem only when you use https in identifier?<br /></ul><br />We would also appreciate if you can use Yubico hosted OpenID server available at <!-- m --><a class="postlink" href="https://openid.yubico.com">https://openid.yubico.com</a><!-- m --> and try again.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=280">network-marvels</a> — Tue Feb 16, 2010 4:49 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mat]]></name></author>
<updated>2010-01-27T16:13:09+01:00</updated>
<published>2010-01-27T16:13:09+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=63&amp;p=2013#p2013</id>
<link href="https://forum.yubico.com/viewtopic.php?t=63&amp;p=2013#p2013"/>
<title type="html"><![CDATA[Re: My own OpenID server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=63&amp;p=2013#p2013"><![CDATA[
I've installed the server on both Ubuntu Server 9.10 64-bit using Apache 2.2.14 and Windows Server 2008 R2 using IIS 7.5, both are using PHP version 5.2.12. The Linux machine is running MySQL Community Server version 5.1.42, the Windows machine is currently using the Filesystem (will be changing to the same version of MySQL at a later point in time).<br /><br />I'm having the same issue on both machines.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1031">mat</a> — Wed Jan 27, 2010 4:13 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[network-marvels]]></name></author>
<updated>2010-01-27T12:49:33+01:00</updated>
<published>2010-01-27T12:49:33+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=63&amp;p=2011#p2011</id>
<link href="https://forum.yubico.com/viewtopic.php?t=63&amp;p=2011#p2011"/>
<title type="html"><![CDATA[Re: My own OpenID server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=63&amp;p=2011#p2011"><![CDATA[
We would appreciate if you can provide us the following information:<br /><br /><ul>1) Operating system details like Linux or Windows, version number etc.<br />2) Web Server details like Apache or IIS, version number etc.<br />3) PHP details like version number<br />5) Database details like version number of MySQL <br /></ul><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=280">network-marvels</a> — Wed Jan 27, 2010 12:49 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mat]]></name></author>
<updated>2010-01-26T20:07:06+01:00</updated>
<published>2010-01-26T20:07:06+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=63&amp;p=2004#p2004</id>
<link href="https://forum.yubico.com/viewtopic.php?t=63&amp;p=2004#p2004"/>
<title type="html"><![CDATA[Re: My own OpenID server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=63&amp;p=2004#p2004"><![CDATA[
Hello, I've installed the Yubico OpenID Server and it all went relatively smoothly. However, when I attempt to use Identifiers using HTTPS instead of HTTP, I get this error: Authentication error; not a valid OpenID.<br /><br />Has anyone else encountered this? If so how did you overcome it? Any help would be greatly appreciated.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1031">mat</a> — Tue Jan 26, 2010 8:07 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[editor]]></name></author>
<updated>2009-07-25T23:14:39+01:00</updated>
<published>2009-07-25T23:14:39+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=63&amp;p=1594#p1594</id>
<link href="https://forum.yubico.com/viewtopic.php?t=63&amp;p=1594#p1594"/>
<title type="html"><![CDATA[Re: My own OpenID server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=63&amp;p=1594#p1594"><![CDATA[
Is there a way to enable checkid_immediate in the Yubico phpopenid server?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=695">editor</a> — Sat Jul 25, 2009 11:14 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Peachy]]></name></author>
<updated>2009-02-26T02:31:40+01:00</updated>
<published>2009-02-26T02:31:40+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=63&amp;p=1186#p1186</id>
<link href="https://forum.yubico.com/viewtopic.php?t=63&amp;p=1186#p1186"/>
<title type="html"><![CDATA[Re: My own OpenID server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=63&amp;p=1186#p1186"><![CDATA[
Thank-you, Simon.<br /><br />I was planning on setting up the OpenID server in Linux this week so this is quite helpful. By the way, I did manage to get the server working in Windows Server 2008, too. I had a typo in the session.php file.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=80">Peachy</a> — Thu Feb 26, 2009 2:31 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Simon]]></name></author>
<updated>2009-02-18T12:16:40+01:00</updated>
<published>2009-02-18T12:16:40+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=63&amp;p=1119#p1119</id>
<link href="https://forum.yubico.com/viewtopic.php?t=63&amp;p=1119#p1119"/>
<title type="html"><![CDATA[Re: My own OpenID server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=63&amp;p=1119#p1119"><![CDATA[
Btw, I have updated the installation instructions as well, please see:<br /><br /><!-- m --><a class="postlink" href="http://code.google.com/p/yubico-openid-server/wiki/ReadMeYubico">http://code.google.com/p/yubico-openid- ... adMeYubico</a><!-- m --><br /><br />Good luck,<br />Simon<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2">Simon</a> — Wed Feb 18, 2009 12:16 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Peachy]]></name></author>
<updated>2009-01-27T20:24:21+01:00</updated>
<published>2009-01-27T20:24:21+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=63&amp;p=973#p973</id>
<link href="https://forum.yubico.com/viewtopic.php?t=63&amp;p=973#p973"/>
<title type="html"><![CDATA[Re: My own OpenID server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=63&amp;p=973#p973"><![CDATA[
Thank-you very much. It works fine now after a weekend and a day of playing around. I have it working in Windows Vista Enterprise SP1 using PHP 5.2.8 and MySQL 5.1.30. The problem I had most of the weekend was that I decided to try and set it up in Windows 7 Beta build 7000. At the moment the server.php file causes a 500.0 internal server error in IIS 7. I chalk this up to it being beta software. Also, PHP seems to require being installed as a FastCGI module rather than an ISAPI module.<br /><br />/Phillip<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=80">Peachy</a> — Tue Jan 27, 2009 8:24 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[network-marvels]]></name></author>
<updated>2008-10-02T08:15:00+01:00</updated>
<published>2008-10-02T08:15:00+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=63&amp;p=725#p725</id>
<link href="https://forum.yubico.com/viewtopic.php?t=63&amp;p=725#p725"/>
<title type="html"><![CDATA[Re: My own OpenID server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=63&amp;p=725#p725"><![CDATA[
We have installed OPENID server on Windows Vista platform. Please see the below document for installation and configuration steps along with test cases.<br /><br /><ul>1. About this document<br /><br />The purpose of this document is to guide readers through the configuration steps to host Yubico OPENID server on IIS7 (Internet Information Server) on Windows Vista 32 and 64 bit Platform. (Even though this document targets the Vista platform, functionality has also been verified on Windows Server 2008 and Windows Server 2003 – 32 and 64bit platforms ). <br /><br />This document assumes that the reader has advanced knowledge and experience in Windows system administration, particularly how a PHP based application is hosted on IIS 7 Windows Vista Platform.<br /><br />2. Prerequisites<br /><br />Hosting Yubico OPENID server on IIS 7 Vista platform requires following prerequisites:<br /><br /><ul>1)Operating System: Windows Vista Service Pack 1<br />2)IIS: IIS Version 7<br />3)PHP: PHP Version 5.2.6. PHP can be downloaded from the following link:<br /><br />        <!-- m --><a class="postlink" href="http://www.php.net/downloads.php">http://www.php.net/downloads.php</a><!-- m --><br /><br />4)Yubico OPENID Server: php-openid-2.0.1.yubico.0. It can be downloaded from the following link: <br /><br />        <!-- m --><a class="postlink" href="http://code.google.com/p/yubico-openid-server/downloads/list">http://code.google.com/p/yubico-openid- ... loads/list</a><!-- m --><br /><br />5)Auth_Yubico: Auth_Yubico-1.2. It can be downloaded from the following link:<br /><br />        <!-- m --><a class="postlink" href="http://code.google.com/p/php-yubico/downloads/list">http://code.google.com/p/php-yubico/downloads/list</a><!-- m --><br /></ul><br />3.Configuration<br /><br />         We assume that IIS 7 is configured correctly to host and support PHP based applications.<br /><br /><ul>•Installation of Auth_Yubico<br /><br />Download the Auth_Yubico PHP class from the link provided above. <br />It is written as a PEAR module. User needs to install PEAR module before installing the Auth_Yubico. The following steps describe how to install PEAR module:<br /><br />1) Open command prompt <br />2) Change to the PHP installation directory (In our test environment it is C:\php)<br />3) Run the “go-pear.bat” batch file and follow the on-screen installation steps <br />4) This will install PEAR in the specified installation path (In our test environment it is C:\php)  <br /><br />Next, follow the steps below to install Auth_Yubico:<br /><br />1) Open command prompt<br />2) Change to the directory where Auth_Yubico-1.2.tgz is downloaded<br />3) Type &quot;pear install Auth_Yubico-1.1.tgz&quot; at command prompt<br />4) This will install Yubico.php to the &quot;PEAR Installation Path\Auth&quot; directory (In our test environment it is C:\php\Auth\Yubico.php)<br /><br />•Installation of  Yubico OPENID Server<br /><br />Download the Yubico OPENID server from the link provided above. <br />Then follow the steps below to configure Yubico OPENID Server:<br /><br />1)Unzip the “php-openid-2.0.1.yubico.0.tar.bz2”. <br />2)Follow the instructions given in README file and <!-- m --><a class="postlink" href="http://code.google.com/p/yubico-openid-server/wiki/ReadMeYubico">http://code.google.com/p/yubico-openid- ... adMeYubico</a><!-- m --><br />3)Edit the php.ini file to enable the curl extension. Uncomment the line “extension=php_curl.dll”.   <br />4)The OpenID server code is found in examples\server\. The IIS 7 web server should be configured to use this directory as the document root.<br />5)Edit the session.php (stored in examples\server\lib directory) to change the login url. Replace the line 34 with the code given below:<br /><br />{$s = (isset($_SERVER['HTTPS']) &amp;&amp; ($_SERVER['HTTPS'] == &quot;on&quot;))? 's' : '';}<br /><br />(This step will allow requests coming over HTTP and HTTPS.) <br /></ul><br />4. Test Setup<br /><br />Our test environment is as follows:<br /><br /><ul>A)Operating System: Windows Vista Ultimate Server Pack 1<br />B)IIS Server: IIS Server 7.0.6000.16386<br />C)PHP Version: PHP Version 5.2.6<br />D)Config.php file:<br /><br />&lt;?php<br />/**<br /> * Set any extra include paths needed to use the library<br /> */<br />set_include_path(get_include_path() . PATH_SEPARATOR . &quot;C:\\inetpub\\wwwroot\\openid&quot;);<br /><br />/**<br /> * The URL for the server.<br /> *<br /> * This is the location of server.php. For example:<br /> *<br /> * $server_url = 'http://example.com/~user/server.php';<br /> *<br /> * This must be a full URL.<br /> */<br />$server_url = &quot;http://192.168.1.36/openid/examples/server/server.php&quot;;<br /><br />/**<br /> * Initialize an OpenID store<br /> *<br /> * @return object $store an instance of OpenID store (see the<br /> * documentation for how to create one)<br /> */<br />function getOpenIDStore()<br />{<br />    require_once &quot;Auth/OpenID/FileStore.php&quot;;<br />    return new Auth_OpenID_FileStore(&quot;D:\\Auth&quot;);<br />}<br /><br />require_once 'C:\php\Auth\Yubico.php';<br />$yubi = &amp;new Auth_Yubico('241', 'GAqX76BW8IbqdwVqQIDfB8aBmDM=');<br /><br />(The above text in bold font needs to be added to the configuration file.)<br />?&gt;<br /><br />E)Session.php file:<br /><br />&lt;?php<br /><br />require_once &quot;config.php&quot;;<br />require_once &quot;lib/render.php&quot;;<br />require_once &quot;Auth/OpenID/Server.php&quot;;<br /><br />/**<br /> * Set up the session<br /> */<br />function init()<br />{<br />    session_name('openid_server');<br />    session_start();<br />}<br /><br />/**<br /> * Get the style markup<br /> */<br />function getStyle()<br />{<br />    $parent = rtrim(dirname(getServerURL()), '/');<br />    $url = htmlspecialchars($parent . '/openid-server.css', ENT_QUOTES);<br />    return sprintf('&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;%s&quot; /&gt;', $url);<br />}<br /><br />/**<br /> * Get the URL of the current script<br /> */<br />function getServerURL()<br />{<br />    $path = $_SERVER['SCRIPT_NAME'];<br />    $host = $_SERVER['HTTP_HOST'];<br />    $port = $_SERVER['SERVER_PORT'];<br />    $s = (isset($_SERVER['HTTPS']) &amp;&amp; ($_SERVER['HTTPS'] == &quot;on&quot;))? 's' : '';<br />/*<br />(The above text in bold font needs to be added to the session.php at line 34.)<br />*/<br />    if (($s &amp;&amp; $port == &quot;443&quot;) || (!$s &amp;&amp; $port == &quot;80&quot;)) {<br />        $p = '';<br />    } else {<br />        $p = ':' . $port;<br />    }<br /><br />    return &quot;http$s://$host$p$path&quot;;<br />}<br /><br />/**<br /> * Build a URL to a server action<br /> */<br />function buildURL($action=null, $escaped=true)<br />{<br />    $url = getServerURL();<br />    if ($action) {<br />        $url .= '/' . $action;<br />    }<br />    return $escaped ? htmlspecialchars($url, ENT_QUOTES) : $url;<br />}<br /><br />/**<br /> * Extract the current action from the request<br /> */<br />function getAction()<br />{<br />    $path_info = @$_SERVER['PATH_INFO'];<br />    $action = ($path_info) ? substr($path_info, 1) : '';<br />    $function_name = 'action_' . $action;<br />    return $function_name;<br />}<br /><br />/**<br /> * Write the response to the request<br /> */<br />function writeResponse($resp)<br />{<br />    list ($headers, $body) = $resp;<br />    array_walk($headers, 'header');<br />    header(header_connection_close);<br />    print $body;<br />}<br /><br />/**<br /> * Instantiate a new OpenID server object<br /> */<br />function getServer()<br />{<br />    static $server = null;<br />    if (!isset($server)) {<br />        $server =&amp; new Auth_OpenID_Server(getOpenIDStore(),<br />                                          buildURL());<br />    }<br />    return $server;<br />}<br /><br />/**<br /> * Return a hashed form of the user's password<br /> */<br />function hashPassword($password)<br />{<br />    return bin2hex(Auth_OpenID_SHA1($password));<br />}<br /><br />/**<br /> * Check the user's login information.  Return OpenID URL for user.<br /> */<br />function checkLogin($yubikey)<br />{<br />  // from config.php<br />  global $yubi;<br /><br />  $token_size = 32;<br />  $min_identity_size = 12;<br /><br />  if (strlen ($yubikey) &lt; $token_size + $min_identity_size) {<br />    return array(array('Authentication failure: too short input'), false);<br />  }<br /><br />  $identity = substr ($yubikey, 0, strlen ($yubikey) - $token_size);<br />  $openid_url = $identity;<br /><br />  $auth = $yubi-&gt;verify($yubikey);<br />  if (PEAR::isError($auth)) {<br />    return array(array('Authentication failure: ' . $auth-&gt;getMessage() . <br />     '&lt;!-- Debug output from server: ' . $yubi-&gt;getLastResponse() . '--&gt;'),<br />     false);<br />  }<br /><br />  return array(array(), $openid_url);<br />}<br /><br />/**<br /> * Get the openid_url out of the cookie<br /> *<br /> * @return mixed $openid_url The URL that was stored in the cookie or<br /> * false if there is none present or if the cookie is bad.<br /> */<br />function getLoggedInUser()<br />{<br />    return isset($_SESSION['openid_url'])<br />        ? $_SESSION['openid_url']<br />        : false;<br />}<br /><br />/**<br /> * Set the openid_url in the cookie<br /> *<br /> * @param mixed $identity_url The URL to set. If set to null, the<br /> * value will be unset.<br /> */<br />function setLoggedInUser($identity_url=null)<br />{<br />    if (!isset($identity_url)) {<br />        unset($_SESSION['openid_url']);<br />    } else {<br />        $_SESSION['openid_url'] = $identity_url;<br />    }<br />}<br /><br />function getRequestInfo()<br />{<br />    return isset($_SESSION['request'])<br />        ? unserialize($_SESSION['request'])<br />        : false;<br />}<br /><br />function setRequestInfo($info=null)<br />{<br />    if (!isset($info)) {<br />        unset($_SESSION['request']);<br />    } else {<br />        $_SESSION['request'] = serialize($info);<br />    }<br />}<br /><br /><br />function getSreg($identity)<br />{<br />    // from config.php<br />    global $openid_sreg;<br /><br />    if (!is_array($openid_sreg)) {<br />        return null;<br />    }<br /><br />    return $openid_sreg[$identity];<br /><br />}<br /><br />function idURL($identity)<br />{<br />    return buildURL('idpage') . &quot;?user=&quot; . $identity;<br />}<br /><br />function idFromURL($url)<br />{<br />    if (strpos($url, 'idpage') === false) {<br />        return null;<br />    }<br /><br />    $parsed = parse_url($url);<br /><br />    $q = $parsed['query'];<br /><br />    $parts = array();<br />    parse_str($q, $parts);<br /><br />    return @$parts['user'];<br />}<br /><br />?&gt;<br /></ul><br />5.Testing the configuration<br /><br />We have tested the Yubico OPENID server on following Windows sever platforms:<br /><br /><ul>1)     Windows Server 2008:<br /><ul>a)     Operating system: Windows Server 2008 Standard Edition Service Pack1<br />b)     IIS Version: IIS version 7.0.6000.16386 <br /></ul>2)     Windows Server 2003:<br /><ul>a)     Operating system: Windows Server 2003 Standard Edition Service Pack 1<br />b)     IIS Version: IIS version 6.0 <br /></ul>3)Windows Vista Ultimate:<br /><ul>a)  Operating System: Windows Vista Ultimate Service Pack 1<br />b)  IIS Version: IIS version 7.0<br /></ul></ul></ul><br />Yubico OPENID server is working fine on with any OS (Windows Vista and Windows Server 2008) having IIS 7.0 but not on any OS (windows server 2003, windows XP) with IIS 6.0. (Note: IIS is a part of the OS, the version is determined by what OS is installed.  To get IIS7 we must upgrade to Windows Vista or Server 2008.)<br /><br />There is problem with URL rewriting handled by IIS server version 6.0 which affects Yubico OPENID server functionality. This is fixed in Version 7.0.   <br /><br />We can successfully host Yubico OPENID server on any latest windows operating system (Windows Vista and Server 2008) installed with IIS server version 7.0.<br /><br />Please follow the procedure below to use the Yubikey OPENID authentication:<br /><br /><ul>•From any web browser go to the Yubico OPENID server. The OPENID server home page should be seen as (see picture below):<br />                                                               Image1.JPG<br /><br />•Focus the cursor at Yubikey field and press the Yubikey to emit the OTP:<br />                   Image2.JPG<br /><br />•Ones the Yubikey generated OTP is authenticated successfully, users are logged in to the OPENID server.<br />                   Image3.JPG<br /></ul><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=280">network-marvels</a> — Thu Oct 02, 2008 8:15 am</p><hr />
]]></content>
</entry>
</feed>