Dial-In Property

M

Matthew Ciantar

Hi,

I am trying to modify the the Active Directory Dial-In Property
programatically. I have created a test application which is succesfully
working on SBS2003 (default Installation), ie if I change the propery from
my test Application it also changes in the Active Directory Dial-In Tab.
But, when I am running the application on a Windows 2003 Server Standard x64
Edition, without RRAS installed, but with IAS installed, this test
Application seems not the be working. The property "msNPAllowDialin"
property is being correcly updated (as I can see this from ADSI Edit), but
it seems that AD Dial-In Tab is using a different source to define this
value in the case of this server.

Anyone know what the problem might be?

Best Regards,

Matthew.
 
J

Joe Richards [MVP]

Sounds like it is using a different attribute possibly or something else is wrong.

Monitor the user object you are working with, use the correct tool (aduc?) to
modify the state and then look at what changed on the object.

--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net


---O'Reilly Active Directory Third Edition now available---

http://www.joeware.net/win/ad3e.htm
 
C

Christoffer Andersson [MVP]

Hello, try the sample below:

<snip>
Const ADS_PROPERTY_UPDATE = 2

Set objUser = GetObject _
("LDAP://cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com")

objUser.Put "msNPAllowDialin", TRUE
objUser.PutEx ADS_PROPERTY_UPDATE, _
"msNPSavedCallingStationID", Array("555-0100", "555-0111")
objUser.PutEx ADS_PROPERTY_UPDATE, _
"msNPCallingStationID", Array("555-0100", "555-0111")
objUser.Put "msRADIUSServiceType", 4
objUser.Put "msRADIUSCallbackNumber", "555-0112"
objUser.Put "msRASSavedFramedIPAddress", 167903442
objUser.Put "msRADIUSFramedIPAddress", 167903442 'value of 10.2.0.210
objUser.PutEx ADS_PROPERTY_UPDATE, _
"msRASSavedFramedRoute", _
Array("10.1.0.0/16 0.0.0.0 1", "192.168.1.0/24 0.0.0.0 3")
objUser.PutEx ADS_PROPERTY_UPDATE, _
"msRADIUSFramedRoute", _
Array("10.1.0.0/16 0.0.0.0 1", "192.168.1.0/24 0.0.0.0 3")

objUser.SetInfo
--
Regards
Christoffer Andersson
Microsoft MVP - Directory Services


No email replies please - reply in the newsgroup
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top