Closed (fixed)
Project:
ipAuthenticator
Version:
6.x-1.3
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 May 2008 at 11:50 UTC
Updated:
31 Oct 2008 at 19:44 UTC
This is happening to me with both the module for Drupal 6 & Drupal 5 on different sites. Whether I enter one IP address or a range, when I click 'Save Configuration' it adds 0.0.0.0 authenticates to: authenticated user to the list of Current IP Authenticators.
My Drupal 6 is a fresh install (6.2) with only TinyMCE and IMCE installed as additional modules. I'm testing using the Garland theme.
Let me know if I can provide any more info.
Any help would be appreciated - would be great module if I can get it to work for me.
All the best,
~ Dave
Comments
Comment #1
jonfrancisskydiver commentedI am working with the development version made for drupal 6. There is a slight problem. I have included a new version of the ipauth.install file here. After you overwrite your current .install file, please run the update.php script. The update will make certain that your ip_authenticator database table is named properly.
Looking again at your description of the problem, I am uncertain if this will fix your problem however. Are you certain that you're using the development version of Drupal 6?
Update:
Alright, I can't attach the file since drupal won't let me so I'll include it here (just cut and paste it). You can alternatively download it from the CVS:
Comment #2
nico059 commentedSorry for not checking the issue queue before submitting the solution here:
http://drupal.org/node/272572
I had the same problem, due to negative ip2long conversion and database want integer unsigned.
Comment #3
jonfrancisskydiver commentedCould you give me your PHP version that you're using? I am using the un altered version and am not having this issue. Perhaps it is a PHP thing?
Comment #4
nico059 commentedmy php version is 5.2.4 on Mac OSX (same probleme on Windows XP)
Regards.
Comment #5
jonfrancisskydiver commentedI have updated the code to properly use ip2long(). So I updated all occurrences of ip2long() to sprintf("%u", ip2long($ip)) That way the unsigned integer will be treated as a string and not an int at all. I had fixed this on the drupal5 version, but I guess I didn't do the same on drupal6. Once the dev snapshop of the module updates on 10/18/2008, try it out. You may have to update your database to include the unsigned integer and not the signed integer.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.