PC Review


Reply
Thread Tools Rate Thread

dialinPrivilege w/ VB.NET

 
 
Tyler
Guest
Posts: n/a
 
      19th Nov 2004
I have a small vb.net app that is used to create new users on our
domain. All works well until I try to change it to allow them access
to VPN in (Remote Access Permission). Our server is in mixed mode, so
setting the property msNPAllowDialin does not work. According to MS,
I need to get a user object and set dialinPrivilege to true. When I
try to do this I get a Cannot create ActiveX component. I have the
ActiveDS referenced in the project. Any ideas on how to fix this, or
better yet do this with directoryServices?


Dim usr As ActiveDs.IADs
usr = getObject("winnt://domain/cn=user,cn=users,dc=domain,dc=com)
usr.dialinprivilege = True 'error occurs here!
usr.setinfo()
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:37 AM.