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