Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
Biz Modules provides professional business modules and solutions for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Authentication ...  Auto Login IP Addresses
Previous Previous
 
Next Next
New Post 4/23/2008 7:54 AM
Unresolved
User is offline Simon Mason
54 posts
10th Ranked


Auto Login IP Addresses 

Mike,

I've been testing the auto login IP address from different clients and IP address. I think I've come accross a bug (but hope not) where the last octet has three digits - e.g. 10.10.10.100  and the exclusion IP only has two digits in the last octet. 
I hope I've not totally missed the issue and have looked too hard into the proble but here goes...

I've looked at source code and coppied it to do some testing (see below). The issue appears where you are comparing a string. With a string compare 99 will always be greater than 100, but 099 will be less than 100

For the following parameters I got these results.

TEST1:
strAutoIP = "10.244.210.90-10.244.210.110"
myip = "10.244.210.102"
Results: 
10.244.210.102 < 10.244.210.90 - Thus I'm not logged in
10.244.210.102 <= 10.244.210.110 - correct

TEST2: You can change it to 090 and it works if the client IP is 102
strAutoIP = "10.244.210.090-10.244.210.110"
myip = "10.244.210.102"
Results:
10.244.210.102 >= 10.244.210.090 - correct
10.244.210.102 <= 10.244.210.110 - correct

TEST3: But, if the clien IP .89  you can't use .090
10.244.210.89 >= 10.244.210.090 - error
10.244.210.89 > 10.244.210.110

 

 

Dim arrIPRange() = strAutoIP.Split("-")
If myip >= Trim(arrIPRange(0))
Then  
result += myip & " >= " & Trim(arrIPRange(0))
Else
result += myip & " < " & Trim(arrIPRange(0))
End If 

 

If myip <= Trim(arrIPRange(1)) Then 
result += " <br /> " & myip &" <= "& Trim(arrIPRange(1))
Else
result +=" <br /> "& myip &" > "& Trim(arrIPRange(1))
End If 

Exit
For
End If
Next

New Feature Request?:  Although we have a large network, there are only 3 IP addresses (proxy servers from other areas of the business) we would like to exclude from Auto Login. It would be a great if in the future we would list the IP address to exclude or use a NOT option to exclude auto login as apposed to include auto login.

 

Thanks for your help.

Simon

 

 

 

 
New Post 4/23/2008 10:02 AM
User is offline Brandon Haynes
698 posts
everysport.net
7th Ranked


Re: Auto Login IP Addresses 

Hi Simon,

This is indeed somewhat of a sloppy error.  Have you logged it in Gemini at support.dotnetnuke.com? 

If, while looking over the code, you were able to fix your problem, make sure to include the code fix in your work item description.  In my experience, work items with coded solutions tend to be adopted with greater frequency.

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post 4/28/2008 2:47 AM
User is offline Simon Mason
54 posts
10th Ranked


Re: Auto Login IP Addresses 

Ok, will do if I can find the 'Add Bug' button.

I've created an account in Gemini and I'm in the 'Authentication Providers ' project  but can't work out how to submit a bug?

any help welcomed.

 

simon

 
New Post 4/28/2008 7:29 AM
User is offline Brandon Haynes
698 posts
everysport.net
7th Ranked


Re: Auto Login IP Addresses 

Hi Simon,

Use the "Create Issue" link on the *public* DNN core framework project.  Within the work item you'll be able to specify the module that's exhibiting the error.  Once the work item is approved and/or validate, it will be moved across to the appropriate project.

A little counter-intuitive, eh?  But it helps weed out the irrelevant and poorly-documented submissions.

Brandon


Brandon Haynes
BrandonHaynes.org
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Authentication ...  Auto Login IP Addresses
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Dnaxp.Net
Dnaxp.Net offers a comprehensive base of information, resources, and support for DotNetNuke.
www.dnaxp.net
DNNMasters - modules, consulting, development
DNNMasters developers are involved in DNN development since DNN 1.0.9 and today we offer a broad range of DNN related products and services including custom development of modules, help with ing third party modules for specific needs, general DNN technical support and administrative services.
www.dnnmasters.com
Cygnusoft Custom Software
Cygnusoft has been providing cutting-edge custom software solutions for 20 years. Cygnusoft is also a leading start-up incubator, helping our partners build successful new businesses.
www.cygnusoft.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP