Forum Index   -   Topic Index
   Modules
     OpenID '/dev/urandom' Error
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
plusangel
Posted on: 2008/2/12 17:32
Home away from home
Joined: 2006/3/8
From: Athens, Greece
Posts: 237
OpenID '/dev/urandom' Error
Today I read the announcement for the new feature (openid) from nat.

I followed his steps.
I'm on the top page, as guest.

Type into textbox me verisign openid username, then submit.
After that, I got


Notice [PHP]: Only variable references should be returned by reference in file modules/openid/occommon.php line 72
Notice [PHP]: Only variable references should be returned by reference in file modules/openid/occommon.php line 81
Error [Xoops]: Define Auth_OpenID_RAND_SOURCE as null to continue with an insecure random number generator. in file modules/openid/library/Auth/OpenID/CryptUtil.php line 52


----------------
Regards Angelos,

xoopsCube.gr, the greek support site!

nat
Posted on: 2008/2/12 20:26
Just popping in
Joined: 2008/2/10
From:
Posts: 6
Re: OpenID error
First two Notices, you can ignore. I knew about them and I am going to fix in the next version, but it works anyways.

The thrid one: You probably are using Windows as the web server. It is saying that it cannot find the /dev/urandom, which of course is right. I am going to report this to JanRain, the writer of the library, but in the mean time, you can change the line to something like define('Auth_OpenID_RAND_SOURCE', null);

Then, you should be able to go forward.

plusangel
Posted on: 2008/2/12 20:42
Home away from home
Joined: 2006/3/8
From: Athens, Greece
Posts: 237
Re: OpenID error
As far as I saw from the cpanel of my ISP, it's linux server (kernel 2.6.9).

Regarding

define('Auth_OpenID_RAND_SOURCE', null); 

In which file I have to add this line?

Thanks for your reply :)


----------------
Regards Angelos,

xoopsCube.gr, the greek support site!

plusangel
Posted on: 2008/2/13 3:32
Home away from home
Joined: 2006/3/8
From: Athens, Greece
Posts: 237
Re: OpenID error
You have to edit CryptUtil.php.

It's working now

I got only an intermediate page with notices and warnings like


Notice [PHP]: Only variable references should be returned by reference in file modules/openid/occommon.php line 72
Notice [PHP]: Only variable references should be returned by reference in file modules/openid/occommon.php line 81
Warning [PHP]: in_array() [function.in-array]: Wrong datatype for second argument in file modules/openid/library/Auth/Yadis/ParanoidHTTPFetcher.php line 63
Notice [PHP]: Undefined index: policies in file modules/openid/try_auth.php line 43



----------------
Regards Angelos,

xoopsCube.gr, the greek support site!

nat
Posted on: 2008/2/13 11:53
Just popping in
Joined: 2008/2/10
From:
Posts: 6
Re: OpenID error
Thanks. I will either fix the notice generating code in the next release or notify the developper of the OpenID liberary so that they can fix them.

Actually, if you can post your fix here, that is great.

But it is good to hear that it is working now.

Regards,

Nat
plusangel
Posted on: 2008/2/13 17:13
Home away from home
Joined: 2006/3/8
From: Athens, Greece
Posts: 237
Re: OpenID error
Probably this error depends on the hosting environment.

The change is in /modules/openid/library/Auth/OpenID/CryptUtil.php

at the beginning


if (!defined('Auth_OpenID_RAND_SOURCE')) {
    /**
     * The filename for a source of random bytes. Define this yourself
     * if you have a different source of randomness.
     */
     define('Auth_OpenID_RAND_SOURCE', null); 
     //define('Auth_OpenID_RAND_SOURCE', '/dev/urandom');
}


Now xoopsCube.gr is OpenID enabled


----------------
Regards Angelos,

xoopsCube.gr, the greek support site!

nat
Posted on: 2008/2/14 2:42
Just popping in
Joined: 2008/2/10
From:
Posts: 6
Re: OpenID error
Congratulations.

By the way, whe I access your site, and try to login with OpenID, I just get a blank screen. Do you sometimes have a same kind of problem?
gibaphp
Posted on: 2008/2/14 3:21
Just popping in
Joined: 2006/1/6
From:
Posts: 9
Re: OpenID error
For me login OpenId work sucessful

http://www.xoopscube.gr/index.php

Who's Online
3 user(s) are online

Μέλη: 1
Επισκέπτες: 2

GibaPhp περισσότερα...

Very good
plusangel
Posted on: 2008/2/14 21:00
Home away from home
Joined: 2006/3/8
From: Athens, Greece
Posts: 237
Re: OpenID error
Quote:

By the way, whe I access your site, and try to login with OpenID, I just get a blank screen. Do you sometimes have a same kind of problem?


When I click submit, I get an intermediate white page with a button ('Continue") for a couple of seconds. Then I connected to me openid provider.

That's what I noticed so far...

By the way my configuration is
MySQL 4.1.22-standard, php 4.4.7


----------------
Regards Angelos,

xoopsCube.gr, the greek support site!

Threaded | Newest First Previous Topic | Next Topic | Top

Register To Post
 

Who's Online
66 user(s) are online (10 user(s) are browsing Forums)

Members: 0
Guests: 66

more...

Welcome | News | Overview | Documentation | Forum | Tutorialstop
Brasilian | French | German | Greek | Japanese | Korean | Russian | T-Chinese
Powered by XOOPS Cube © 2001-2011 The XOOPS Cube Project