Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationAuto Login IP AddressesAuto Login IP Addresses
Previous
 
Next
New Post
4/23/2008 9:54 AM
 

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 12:02 PM
 

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 4:47 AM
 

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 9:29 AM
 

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
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationAuto Login IP AddressesAuto Login IP Addresses


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out