ID: 28905
Comment by: bradshaw at mcs dot anl dot gov
Reported By: screen at brainkrash dot com
Status: Open
Bug Type: Unknown/Other Function
Operating System: Win32/Linux
PHP Version: 4.3.6
New Comment:
I am seeing this exact same problem with the 4.3.8 that we just started
using on our linux server running apache 2.0.50.
Is there a fix or workaround for this cause it is really affecting our
account creation system.
Previous Comments:
------------------------------------------------------------------------
[2004-06-24 01:57:16] screen at brainkrash dot com
Description:
------------
Upgraded to 4.3.6 from 4.3.4 and cracklib crack_check errors on
crack_check when passed the result from a successful crack_openict.
I've tested on a linux build and on win32 (binary distro).
crack_opendict appears does return a "resource" with no errors but
crack_check returns the following error:
Warning: crack_check(): 209064108 is not a valid cracklib dictionary
resource in...
a subsequent call to crack_getlastmessage gives the following warning:
Warning: crack_getlastmessage(): No obscure checks in this session
in...
Reproduce code:
---------------
$dict = crack_opendict("/usr/lib/cracklib_dict");
$strong = crack_check($dict, 'password');
print("dict: $dict<br>");
print("strong: $strong<br>");
Expected result:
----------------
dict: Resource id #60
strong: 0
Actual result:
--------------
Warning: crack_check(): 216275340 is not a valid cracklib dictionary
resource in
c:\usr\local\www\v2\common\auth\classes\class.BrainKrash_Auth.php on
line 704
dict: Resource id #60
strong:
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28905&edit=1