Location: List Archives

List Archives

This forum is an archive of all posts to our mailing list over the past few years.  The forum is set read only therefore to contribute you will need to join our list community.  See more info about this here.

 

When subscribed to the list you should use your standard email client to send your posts to ActiveDir@mail.activedir.org.

List Archives

Subject: RE: [ActiveDir] OT: Parameters property from WinNT provider
Prev Next
You are not authorized to post a reply.

AuthorMessages
michael@xxxx.yyy

10/07/2005 7:00 AM  
Interestingly enough, joe, it was a posting that you made
in November of 2002 in microsoft.public.win2000.active_directory, that led me to
this:

http://msdn.microsoft.com/library/en-us/sdo/sdo/changing_dial_in_settings.asp

I fixed a couple of bugs, added a couple more attributes,
and voila' -- it does what I need. It is a damned shame it was so hard to find.
I've spent way too many hours on this project this week.

The IAS, RRAS, and WTS attributes are all stored in that
blob. I came across another, similar ActiveX object for dealing with WTS
stuff.

Thanks!

(This isn't formatted the way I would've done so, but I
stuck with the formatting of the example:

    a =
PROPERTY_USER_RADIUS_FRAMED_IP_ADDRESS    v = u.getproperty
(a)    msg = msg & "Static IP address: "
    If IsEmpty(v)
Then        msg = msg & ""   
Else        e = Right ("00000000" &
Hex (v), 8)        msg = msg &
_            CInt
("&h" & Mid (e, 1, 2)) & "." &
_            CInt
("&h" & Mid (e, 3, 2)) & "." &
_            CInt
("&h" & Mid (e, 5, 2)) & "." &
_            CInt
("&h" & Mid (e, 7, 2)) & " (" &
_            v &
" " & typename (v) & ")"    End
If    msg = msg & vbCrLf

    a =
PROPERTY_USER_RADIUS_FRAMED_ROUTE    v = u.getproperty
(a)    msg = msg & "Static Routes:
"    If IsEmpty (v)
Then        msg = msg & ""   
Else        If typename (v) = "Variant()"
Then            For
Each e in v      
         msg = msg & e & ",
"         
  Next           
msg = Left (msg, Len (msg) - 2)       
Else            msg =
msg & e        End
If    End If       
    wscript.echo msg

)
From: ActiveDir-owner@xxxxxxxxxxxxxxxxxx
[mailto:ActiveDir-owner@xxxxxxxxxxxxxxxxxx] On Behalf Of
joeSent: Thursday, October 06, 2005 9:12 PMTo:
ActiveDir@xxxxxxxxxxxxxxxxxxSubject: RE: [ActiveDir] OT: Parameters
property from WinNT provider

The parameters aka userParameters attribute sucks, I
don't think I have seen any docs where anyone has decoded it. If you are just
looking to read it, you could pull the value, change it, then pull it again and
see what is different. Make sure you understand the label that is used as well
as the value's position in relation to the label so you can find it on other
machines because the position in the string will not be
absolute.


From: ActiveDir-owner@xxxxxxxxxxxxxxxxxx
[mailto:ActiveDir-owner@xxxxxxxxxxxxxxxxxx] On Behalf Of Michael B.
SmithSent: Wednesday, October 05, 2005 9:12 PMTo:
ActiveDir@xxxxxxxxxxxxxxxxxxSubject: [ActiveDir] OT: Parameters
property from WinNT provider

I need to know how
to decode the parameters property on a user object from the WinNT provider. This
is not an A/D environment; but I figure that one of you expert scripters must've
run into this before.

Specifically, I'm
trying to retrieve the msRADIUSFramedIPAddress value. In A/D, this is just a
normal attribute. In a non-domain environment, it appears to be wrapped in the
parameters attribute.

(This is the "Assign
a Static IP address" field on the Dial-In tab of a user object in Computer
Management.)

The below is
what I'm getting back (the first number is the offset into the string, second
number is the decimal value of that byte, third number is the hexadecimal value
of the byte, a "-", and finally the character).

Thanks for any help
you can offer!

Michael
You are not authorized to post a reply.
Forums >ActiveDir Mail List Archive >List Archives > RE: [ActiveDir] OT: Parameters property from WinNT provider



ActiveForums 3.7
Friends

Friends

VisualClickButoton
Members

Members

MembershipMembership:
Latest New UserLatest:cajoe64
New TodayNew Today:0
New YesterdayNew Yesterday:0
User CountOverall:5291

People OnlinePeople Online:
VisitorsVisitors:36
MembersMembers:0
TotalTotal:36

Online NowOnline Now:

Ads

Copyright 2012 ActiveDir.org
Terms Of Use