I am having to enter a static IP address for all of our VPN users, which is
about 1,000.

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...

Re: Converting IP Address to 9 Digit Decimal Number for msRADIUSFramed by Paul

Paul
Fri Feb 29 12:24:38 CST 2008

Can you enter a Hexidecimal number like AC1DFF82?
If you put the windows calculator in scientific view, you can convert
between hex and decimal easily. If you enter either -1407320190 or
2887647106 in decimal mode, you will see that the least significant
digits in hexidecimal are AC1DFF82

-Paul Randall

"Don B." <DonB@discussions.microsoft.com> wrote in message
news:276DEE59-4225-4EB3-99AE-C2B51F958C9F@microsoft.com...
>I am having to enter a static IP address for all of our VPN users,
>which is
> about 1,000.
>
> 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...



Re: Converting IP Address to 9 Digit Decimal Number for msRADIUSFr by DonB

DonB
Fri Feb 29 18:28:00 CST 2008

Thank you, I believe I have the formula that will work in by vbscript or i
can even convert using Excel first.

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



"Paul Randall" wrote:

> Can you enter a Hexidecimal number like AC1DFF82?
> If you put the windows calculator in scientific view, you can convert
> between hex and decimal easily. If you enter either -1407320190 or
> 2887647106 in decimal mode, you will see that the least significant
> digits in hexidecimal are AC1DFF82
>
> -Paul Randall
>
> "Don B." <DonB@discussions.microsoft.com> wrote in message
> news:276DEE59-4225-4EB3-99AE-C2B51F958C9F@microsoft.com...
> >I am having to enter a static IP address for all of our VPN users,
> >which is
> > about 1,000.
> >
> > 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...
>
>
>

Re: Converting IP Address to 9 Digit Decimal Number for msRADIUSFr by Wiseman82

Wiseman82
Sun Mar 02 07:32:00 CST 2008

From my website:
http://www.wisesoft.co.uk/Scripts/activedirectoryschema.aspx?Page=DialIn
(Click the user dialog for script examples)

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

--
http://www.wisesoft.co.uk


"Don B." wrote:

> Thank you, I believe I have the formula that will work in by vbscript or i
> can even convert using Excel first.
>
> 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
>
>
>
> "Paul Randall" wrote:
>
> > Can you enter a Hexidecimal number like AC1DFF82?
> > If you put the windows calculator in scientific view, you can convert
> > between hex and decimal easily. If you enter either -1407320190 or
> > 2887647106 in decimal mode, you will see that the least significant
> > digits in hexidecimal are AC1DFF82
> >
> > -Paul Randall
> >
> > "Don B." <DonB@discussions.microsoft.com> wrote in message
> > news:276DEE59-4225-4EB3-99AE-C2B51F958C9F@microsoft.com...
> > >I am having to enter a static IP address for all of our VPN users,
> > >which is
> > > about 1,000.
> > >
> > > 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...
> >
> >
> >