I am not a math person, but when I convert my IP address to a decimal
number, it is a 10 digit number which is 1 digit to many to be added to
msRADIUSFramedIPAddress attribute. I receive an error, it only takes up to 9
digits. Somehow Active Directory converts the decimal number to a 9 digit
negitive number, I have no clue on how to get the 9 digit negitive number, If
you already have a vbscript to convert an IP address to
msRADIUSFramedIPAddress format. That would be awsome. But just even able to
convert the 10 digit positive number to a 9 digit negitive number would be
great! Thank you for you help!! Don
My IP Address is 172.29.255.130
Converts to: 2887647106 (BUT it is 10 digits and can not be entered, even
manually with ADSI Edit)
Active Directory Converts the Number to a negitive value. This is where I am
stuck.
From ADSI Edit: msRADIUSFramedIPAddress = -1407320190
In Microsoft Forum Example Script to modify the attribute they used IP
10.2.0.210
which converts to: 167903442 (It is a 9 digit number and will work!)
Again thank you for helping out, this will be so appriciated...
-Paul Randall
"Don B." <Do...@discussions.microsoft.com> wrote in message
news:276DEE59-4225-4EB3...@microsoft.com...
If I convert my IP address to a Hex value then subtract the HEX value of
(FFFFFFFF + 1) will convert to the negitive number (minus the negitive sign)
which I can add through my script.
When IP Address to Decimal Number is > 9 Digits
172.29.255.130 = AC.1D.FF.82 = AC1DFF82
(FFFFFFFF - AC1DFF82) + 1 = 1407320190
Then add neg sign number = -1407320190
msRADIUSFramedIPAddress = -1407320190
Or you can visit these links:
http://www.wisesoft.co.uk/Scripts/display_script.aspx?id=353
http://www.wisesoft.co.uk/Scripts/display_script.aspx?id=354
Includes "IP Address to Integer" and "Integer to IP Address" functions.
Hope this helps,
David